Generate or refresh an auth token

Exchanges API client credentials for a JWT access token. Authenticate with HTTP Basic using your client_id (username) and client_secret (password). Use grant_type authorization_code with the code issued for your OrgApiClient to obtain the first token, or grant_type refresh_token with a previously issued refresh token to renew one. The returned access_token is used as the Bearer token on all other endpoints.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
enum
required

The OAuth2 grant type being used.

Allowed:
string

Required when grant_type is authorization_code. The authorization code issued for your org API client (returned as clientId/id when the API client was authorized for the org).

string

Required when grant_type is refresh_token. A refresh token returned by a previous token request.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json