Skip to main content
POST
/
api
/
auth
/
workos
/
callback
Handle WorkOS callback (API response mode)
curl --request POST \
  --url https://your-instance.example.com/api/auth/workos/callback \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "state": "<string>",
  "error": "<string>",
  "redirect_uri": "<string>",
  "organizationId": "<string>"
}
'
{}

Body

application/json
code
string
state
string
error
string
redirect_uri
string
organizationId
string

Response

Auth session created

Generic response envelope. Endpoint-specific fields are intentionally open.