v1
latestOpenAPI 3.0.32026-08-06150495.9 KBPartner Authentication
Refresh Access Tokens
Refresh Token API
Request URL
POST {{base-url}}/v1/partnerApi/auth/refresh
Request Body
The request body must be in JSON format and should include the following parameter:
| Field | Type | Description |
|---|---|---|
| refresh | string | The refresh token that is used to obtain a new access token. |
Example Request Body:
{
"refresh": "YourToken"
}
Response
Upon a successful request, the API returns a JSON response with the following structure:
| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates whether the request was successful. |
| statusCode | integer | The status code of the response. |
| message | string | A message providing additional information about the response. |
| result | object | Contains the result of the request. |
| token | string | The newly issued access token. |
| error | null or object | Contains error information if any occurred during the request. |
Example Response:
{
"status": true,
"statusCode": 200,
"message": "Token refreshed successfully",
"result": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzU4LTQ4NDg3V5cyIsImlhdCI6MTc1MTk4MDA4OSwiZXhwIjoxNzUyMDY2NDg5fQ.TLm0D4ZO4tNwNTCygFIzg0QwXZmeD_3KEKWpWkU"
},
"error": null
}
Status Codes
-
200 OK: The request was successful, and the token has been refreshed.
-
Other status codes may indicate different types of errors or issues with the request.
This endpoint is essential for maintaining user sessions without requiring frequent logins, enhancing user experience while ensuring security.
post/v1/partnerApi/auth/refresh
Request body
Example request
{
"refresh": "YourToken"
}Response
200
Example response
{
"message": "Token refreshed successfully",
"result": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzU4LTQ4NDg3V5cyIsImlhdCI6MTc1MTk4MDA4OSwiZXhwIjoxNzUyMDY2NDg5fQ.TLm0D4ZO4tNwNTCygFIzg0QwXZmeD_3JHRNKEKWpWkU"
},
"status": true,
"statusCode": 200
}