Skip to navigation

Generate a token for usage with authenticating via OAuth2 in subsequent API calls.

Generate a token

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
grant_typeenumRequired
Allowed values:
client_idstringOptional
ID of client to request token for. Leave off if client ID and secret are being supplied through Authorization header.
client_secretstringOptional
Leave off if client ID and secret are being supplied through Authorization header.

Response

Generated token
access_tokenstringOptional
expires_inintegerOptional
Number of seconds that token is valid for
token_typeenumOptional
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error