Generate an OAuth Token
Generates an OAuth 2.0 access token for a client application using the `client_credentials` grant type. Use this endpoint with backend services or bots to authenticate and authorize API requests without user interaction.
**Note:**
This endpoint uses Basic Auth. You must pass a valid client ID and client secret for the username and password, respectively.
Authentication
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Request
This endpoint expects an object.
grant_type
The client_credentials OAuth grant type.
installationAuthId
The client's installation authentication ID.
jwt
A signed JWT token. The token must include iss (issuer), aud (audience), iat (issued at), exp (expiration timestamp), and jti (JWT ID).
Response
Successful Response
access_token
A Postman OAuth 2.0 access token.
expires_in
The time the token expires, in milliseconds.
token_type
The Bearer token type.
Errors
400
Bad Request Error
404
Not Found Error