Get access token

Response Codes
  • 200 OK
  • 400 Bad Request
Example Request Body
Request {
client_id (string): Client ID to be authorized,
client_secret (string): Client's secret,
code (string, optional): Code if application was authorized via /oauth/authorize,
grant_type (string, enum: authorization_code, client_credentials): Grant type,
realm (string, optional, enum: customer, contributor): User type
Example Response
Response {
access_token (string): Access token that can be used for future requests,
expires_in (integer, optional): Number of seconds before token expires (tokens generated via `authorization_code` do not expire),
token_type (string): Type of token