Skip to main content
POST
/
api
/
v2
/
auth
/
refresh
Refresh Token
curl --request POST \
  --url https://api.example.com/api/v2/auth/refresh \
  --header 'Content-Type: application/json' \
  --data '
{
  "refresh_token": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.elumenta.ru/llms.txt

Use this file to discover all available pages before exploring further.

refresh_token
string
required
The refresh token returned from login, register, or a previous refresh.

Request

curl -X POST https://elumenta.ru/api/v2/auth/refresh \
  -H "Content-Type: application/json" \
  -d '{"refresh_token": "eyJhbGciOiJIUzI1NiJ9..."}'

Response

{
  "access_token": "eyJhbGciOiJIUzI1NiJ9...",
  "refresh_token": "eyJhbGciOiJIUzI1NiJ9...",
  "token_type": "bearer"
}
Access tokens expire in 15 minutes. Refresh tokens are valid for 30 days and rotate on each use — always store the latest one.

Errors

CodeMeaning
401Refresh token expired or invalid