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
| Field | Type | Required | Description |
|---|---|---|---|
| refresh | string | 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
| Code | Error | Description |
|---|---|---|
| 400 | Bad Request | Refresh field not provided |
| 401 | Unauthorized | Invalid, 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.