Auth

Get WorkOS client id

GET
/api/auth/workos/client-id

Public endpoint that returns the WorkOS client id the SPA needs to bootstrap AuthKit. Returns 500 when WORKOS_CLIENT_ID is not configured on the server.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/auth/workos/client-id"
{  "clientId": "client_01HX9R3K4N6P8QZBVTYM2D5A7C"}