Refresh — Renew Access Token

Renews the access token using the refresh token. No need to log in again.


🔄
Use this endpoint when the access token expires to get a new one without re-authenticating.

Renew Token

Authorizations

The x-api-key header is required for authorization.

Endpoint

POSThttps://dev.backend.colurs.co/token/refresh/

Required Headers

Content-Type: application/jsonAccept: application/jsonx-api-key: [API_KEY]

Request Body

FieldTypeRequiredDescription
refreshstring✓Refresh token obtained during login

cURL Example

curl -X POST https://dev.backend.colurs.co/token/refresh/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "x-api-key: [API_KEY]" \
-d '{"refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'

Response

response.json
{
"access": 
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}

Possible Errors

CodeErrorDescription
400Bad RequestRefresh field not provided
401UnauthorizedInvalid, expired, or already used refresh token
💡
The refresh token lasts **10,000 days**. Store it securely - it can be used to generate a new access token at any time.