POST /v1/auth/refresh
Refresh access token
Request
POST /v1/auth/refresh
Parameters
[]
Response
{
"200": {
"description": "Token refreshed successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"access_token": {
"type": "string"
},
"refresh_token": {
"type": "string"
},
"expires_in": {
"type": "number"
}
},
"required": [
"access_token",
"refresh_token",
"expires_in"
]
}
},
"required": [
"success",
"data"
]
}
}
}
},
"401": {
"description": "Invalid or expired refresh token",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"success",
"error"
]
}
}
}
}
}
View in Interactive API Reference