post
https://apis.elai.io/api/v1/sso
Creates the workspace's single AuthIntegration and links the calling admin's user record to it.
Constraints:
- Enterprise plans only — any other plan gets
403. - One integration per workspace; a second create attempt returns
409. redirectUrl, when supplied, is validated against the allowed-host rules and must be a secure URL.configis validated per protocol; the required keys differ between providers.
A generated 16-character integrationId is returned; that value identifies the integration in the SSO login URLs.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
curl -X POST 'https://apis.elai.io/api/v1/sso' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"protocol": "oidc",
"config": {
"issuer": "https://login.example.com",
"clientId": "elai-web",
"clientSecret": "s3cr3t-value"
},
"authByInvite": false,
"anonymizeUsers": false,
"redirectUrl": "https://app.example.com/after-login"
}'
400The request was rejected. message explains why.
400The request was rejected. message explains why.
403Not a workspace admin, or the organization is not on an Enterprise plan.
403Not a workspace admin, or the organization is not on an Enterprise plan.
409An SSO integration already exists for this workspace. Use PUT /sso to change it.
409An SSO integration already exists for this workspace. Use PUT /sso to change it.
