Get OAuth2 access token

Exchange CorpX-issued client credentials for an access token. Use the returned access_token as a Bearer token when calling other API endpoints.

Request

This endpoint expects an object.
grant_typeenumRequired

OAuth2 grant type. Only client_credentials is supported.

Allowed values:
client_idstringRequired

CorpX-issued client ID.

client_secretstringRequired

CorpX-issued client secret.

scopestringOptional

Optional space-delimited scopes. Leave blank to request default scopes.

Response

Access token issued successfully.
access_tokenstring
Access token to be provided in the Authorization header.
token_typestring
expires_ininteger
Expiration time in seconds.
scopestringOptional
Scopes granted to the token.

Errors

400
Bad Request Error