[Beta] Exchange auth code for user's access and refresh token
post
/v1/oauth/tokenSupports authorization_code, refresh_token, and urn:ietf:params:oauth:grant-type:jwt-bearer grant types. The jwt-bearer grant type (IDJAG — identity-directed JWT assertion) is in beta and available on Team and Enterprise plans only.
Body
- grant_typeOptionalenum
- client_idOptionalstring
- client_secretOptionalstring
- codeOptionalstring
- code_verifierOptionalstring
- redirect_uriOptionalstring
- refresh_tokenOptionalstring
- assertionOptionalstring
- resourceOptionalstring
- scopeOptionalstring
Response codes
- 200
Response (200)
1{2 "access_token": "lorem",3 "refresh_token": "lorem",4 "expires_in": 42,5 "token_type": "Bearer"6}