Obtain an access token
Obtain a new OAuth 2.0 access token using an OAuth 2.0 client ID/secret pair.
- application/x-www-form-urlencoded
Request Body
- scope string
List of OAuth2 scopes, delimited with spaces.
- grant_type string required
Possible values: [
client_credentials]
Responses
- 200
- 400
- 403
OK
- application/json
- Schema
- Example (from schema)
Schema
- access_token string
- expires_in integer
Number of seconds until the token expires.
- scope string
List of OAuth2 scopes, delimited with spaces.
- token_type string
Possible values: [
bearer]
{
"access_token": "string",
"expires_in": 0,
"scope": "string",
"token_type": "bearer"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}