Auth

Start WorkOS authorization flow

GET
/api/auth/workos/authorize

Public endpoint invoked by the browser to begin WorkOS AuthKit sign-in. Builds the authorization URL with redirect_uri, state, optional login_hint/organization_id/prompt and responds with a 302 redirect to WorkOS.

Query Parameters

redirect_uri?string
state?string
login_hint?string
organization_id?string

Only forwarded when the value starts with "org_".

prompt?string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/auth/workos/authorize"
Empty