Request OAuth token⁠

POST /api/beta/oauth/token

Endpoint for token requests as described in the OAuth2 spec. Clients must be authenticated using a HTTP basic authentication to access this endpoint.

Example:

    Authorization: Basic [base64({KEY}:{SECRET})]

    POST http://{GATEWAY_HOST}/api/v1/oauth/token

where:

  • {KEY} - Corresponding OAuth credentials key

  • {SECRET} - Secret known during OAuth credentials creation

For more details related to OAuth protocol please refer the following links: https://tools.ietf.org/html/rfc6749 https://www.oauth.com/oauth2-servers/access-tokens/

Parameters⁠

Name

In

Type

Required

Description

client_id

query

string

true

client_id

client_secret

query

string

true

client_secret

grant_type

query

string

true

grant_type

Responses⁠

Status

Meaning

Description

200

OK

OK

201

Created

Entity created

400

Bad Request

Bad Request

401

Unauthorized

Unauthorized

403

Forbidden

Access Forbidden

404

Not Found

Not Found

406

Not Acceptable

Not Acceptable

429

Too Many Requests

Too Many Requests

500

Internal Server Error

Internal Server Error

{
  "access_token": "string",
  "expires_in": 0,
  "scope": "string",
  "token_type": "string"
}