Auth
Token endpoint for OAuth2.0 Client Credentials Grant using your OAuth2.0 machine-to-machine client credentials for programmatic access to this API. See https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
Authorizations
Body
grant_typestringRequiredExample:
The OAuth2.0 Grant Type that shall be used for authorization. Supported values: 'client_credentials'
client_credentials
client_idstringRequiredExample:
The client id of your OAuth2.0 machine-to-machine client
ABCAAAAAAAAAAAAAAAAAAAAAAAAAA123
client_secretstringRequiredExample:
The client secret of your OAuth2.0 machine-to-machine client
supersecret
Responses
200
Access token response as defined in https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.3
application/json
400Error
401Error
post
POST /auth/machine-to-machine-clients/token HTTP/1.1
Host: api.tradeaware.live-eo.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 112
{
"grant_type": "client_credentials",
"client_id": "ABCAAAAAAAAAAAAAAAAAAAAAAAAAA123",
"client_secret": "supersecret"
}
{
"access_token": "text",
"token_type": "Bearer",
"expires_in": 86400,
"scope": "create:example manage:users read:example"
}
Last updated