Exchange the issued access token for an access token
POST/api/v2/exchange
Exchange the issued access token for an access token
Request
Query Parameters
ttl string
The duration for the access token to live
Default value:
30m
Responses
- 200
- 401
- 403
- 404
- 500
The access token
- application/json
- Schema
- Example (from schema)
Schema
expiresint64
refresh-tokenstring
tokenstring
{
"expires": 0,
"refresh-token": "string",
"token": "string"
}
If not authenticated
If authenticated but not authorized
The access token does not exist
A generic API error containing the cause of the error
- application/json
- Schema
- Example (from schema)
Schema
codeint32required
detailstringrequired
messagestringrequired
uristringrequired
verbstringrequired
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}