v1

latestOpenAPI 3.1.02026-08-04151221521.2 KB
OAuth

Exchange Token

Exchange authorization code for access token.

post/v1/oauth/token

Query parameters

codestring required

Authorization code from OAuth callback

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