Generate an OAuth Token

View as Markdown
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_typestringRequired

The client_credentials OAuth grant type.

installationAuthIdstringRequired
The client's installation authentication ID.
jwtstringRequired

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_tokenstring
A Postman OAuth 2.0 access token.
expires_ininteger
The time the token expires, in milliseconds.
token_typeenum

The Bearer token type.

Errors

400
Bad Request Error
404
Not Found Error