Get an access token

Authenticate using OAuth2 password grant flow to obtain an access token. Use the same endpoint to exchange your refresh_token for a new access_token if it's expired.

Form Data
string
enum
required

Grant type. For password grant flow, this should be 'password'. For refresh token flow, it should be 'refresh_token'.

Allowed:
string

The user's username. Required only for the password flow.

string

The user's password. Required only for the password flow.

string

The refresh token. Required only for refresh token flow.

string
required

The client ID is representing the tenant to which the token will grant access.

Responses

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