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
Default value: 30m
The duration for the access token to live
Responses
- 200
- 401
- 403
- 404
- 500
The access token
- application/json
- Schema
- Example (from schema)
Schema
expires int64
refresh-token string
token string
{
"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
code int32required
detail stringrequired
message stringrequired
uri stringrequired
verb stringrequired
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}
Loading...