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
Key | Datatype | Required | Description |
---|---|---|---|
client_id | string | This value can be obtained from the SSO Configuration page in the WorkOS dashboard. | |
client_secret | string | You can view and manage your API keys in the WorkOS Dashboard | |
grant_type | string | The grant type should always be authorization_code. | |
code | string | An access token that can be exchanged for a user profile. Access tokens are one-time use and expire 10 minutes after they’re created. |