Token
Exchange an authorization code for an access token and refresh token.Method
Parameters
Either
"authorization_code" or "refresh_token".The authorization code. Required when
grant_type is "authorization_code".The redirect URI used in the authorization request.
The refresh token. Required when
grant_type is "refresh_token".External account information.
Your integration’s OAuth client ID.
Your integration’s OAuth client secret.
Response
The access token for making API requests.
Always
"bearer".The refresh token for obtaining a new access token.
null when using refresh_token grant.The ID of the bot user.
The ID of the workspace.
The name of the workspace.
The icon URL of the workspace.
Details about the owner of the integration.
The ID of the duplicated template, if any.
Example
Introspect
Introspect an access token to check its validity and retrieve metadata.Method
Parameters
The access token to introspect.
Your integration’s OAuth client ID.
Your integration’s OAuth client secret.
Response
Whether the token is currently active.
The scopes granted by the token.
The timestamp when the token was issued (Unix timestamp).
Example
Revoke
Revoke an access token.Method
Parameters
The access token to revoke.
Your integration’s OAuth client ID.
Your integration’s OAuth client secret.
Response
The ID of the revocation request.