Auth
Exchange WorkOS authorization code
Completes the authorization-code exchange server-side with the WorkOS API key, then returns the desktop token bundle.
post/v1/auth/workos/exchange
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/auth/workos/exchange
- Auth: none declared
Request body
Example request
{
"code": "auth_code_123",
"codeVerifier": "pkce-verifier"
}Response
WorkOS token bundle.
Example response
{
"access_token": "example-access-token",
"email": "user@example.com",
"expires_at": 1790784000,
"refresh_token": "refresh_token_123",
"token_type": "Bearer",
"user_id": "user_01HABCDEF"
}Changes
No operation changes recorded.