latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

OauthToken

Fetch an Oauth Token

Used to exchange an Oauth Code for an Oauth Token from an Oauth service provider

post/oauth/exchange

Request body

token_type'slack' | 'jira' | 'segment'

Type of token

codestring

Friendly name for this Oauth Token

redirect_uristring

The redirect uri used to generate the code

organization_idstring

The ID of the organization associated with this Oauth Code

Response

The new Oauth Token

idstring

The ID of the Oauth Token

created_timeinteger

Time at which the organization Oauth Token was created

created_by_idstring

The ID of the user who created this OAuth token

last_updated_timeinteger

Time at which the organization Oauth Token was last updated

last_updated_by_idstring

The ID of the user who last updated this OAuth token

organization_idstring

The ID of the organization associated with this Oauth Token

token_type'segment' | 'slack' | 'jira'

Type of token

namestring

Friendly name for this Oauth Token

access_tokenstring

The Oauth Token value

scopestring

The Oauth Token scope

refresh_tokenstring

The refresh token value

expires_ininteger

The Oauth Token expiration value

raw_responsestring

The raw access token result from the issuer