Get a Profile and Token

POST {{base_url}}/sso/token?client_id={{client_id}}&client_secret={{api_key}}&grant_type=authorization_code&code={{authorization_code}}

Request Params

KeyDatatypeRequiredDescription
client_idstringThis value can be obtained from the SSO Configuration page in the WorkOS dashboard.
client_secretstringYou can view and manage your API keys in the WorkOS Dashboard
grant_typestringThe grant type should always be authorization_code.
codestringAn access token that can be exchanged for a user profile. Access tokens are one-time use and expire 10 minutes after they’re created.