Request a user token
POST/v0/token
Request a User Token. This endpoint requires a Partner Token for authentication.
Request
- application/json
Body
Token request
userId stringrequired
End user id. UUID, numeric or matching ^[a-zA-Z0-9_-]+$
Example:
afd1a05c-36c3-4507-a768-a4ce4ffc2a95
Responses
- 201
- 400
- 401
- 429
User access token
- application/json
- Schema
- Example (from schema)
- Example
Schema
accessToken stringrequired
{
"accessToken": "string"
}
{
"accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyVGllciI6ImJhc2VfdGllciIsImF1ZCI6ImVuZC11c2VyIiwiaXNzIjoiRXBpZGVtaWMgU291bmQiLCJwYXJ0bmVySWQiOiJlcGlkZW1pY3NvdW5kIiwiZXhwIjoxNjIwMTA5MDkyLCJ1c2VySWQiOiJ1c2VyX2lkIn0"
}
Bad request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Bad request"
}
Unauthorized. Most likely your access token has expired.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Invalid credentials"
}
Rate limit exceeded.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Rate limit exceeded"
}
Loading...