Authentication

Authenticate

Grant access to the API getting an OAuth2Token.

post/oauth/authorize

Request

Request body application/x-www-form-urlencoded

client_idstring required

The client ID issued while Setting up the API, this works as a username.

client_secretstring required

The client secret issued while Setting up the API, this works as a password.

Example request

{
  "client_id": "{{client_id}}",
  "client_secret": "{{client_secret}}"
}

Response

The OAuth2Token.

refresh_tokenstring

The token used to refresh the session (this operation is not currently supported).

token_typestring

All requests must be always authenticated using the 'Bearer' scheme.

access_tokenstring

The bearer token to be included in all requests sent to our Business API as part of the Authorization header.

expires_instring

The access_token expiration, expressed in seconds. Once the access_token is expired your session will be invalidate, you will have to re-authenticate to get a fresh access_token.

Example response

{
  "refresh_token": "{{refresh_token}}",
  "token_type": "Bearer",
  "access_token": "{{access_token}}"
}

Changes

No recorded changes to this operation across all 10 revisions of this API.