post https://api.einstein.ai/v2/oauth2/token
Returns an OAuth access token or a refresh token. You must pass a valid access token in the header of each API call.
For information about how to create an access token, see Generate an OAuth Token Using Your Key. For information about how to create a refresh token, see Generate an OAuth Token Using a Refresh Token.
Response Body
Name | Type | Description | Available Version |
---|---|---|---|
| string | Access token for authorization. | 1.0 |
| integer | Number of seconds that the token will expire from the time it was generated. | 1.0 |
| string | Refresh token that can be used to generate an access token. Only returned when you pass the | 2.0 |
| string | Type of token returned. Always | 1.0 |