OAuth

Exchange Token

Exchange authorization code for access token.

post/v1/oauth/token

Request

Query parameters

codestring required

Authorization code from OAuth callback

Response

Successful Response

access_tokenstring required

WorkOS access token

expires_ininteger required

Token expiration in seconds

refresh_tokenstring nullable

Refresh token (if available)

token_typestring

Token type

Changes

No recorded changes to this operation across all 1 revision of this API.