Skip to main content

Sso

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: sso · 17 operations

GET /v1/admin/sso/providers​

List Sso Providers

List SSO providers with their domains, newest first. Secrets are never included.

One page of at most limit providers (1,000 at most); pass next_cursor as cursor until has_more is false (#7196).

Operation id: list_sso_providers_v1_admin_sso_providers_get

Parameters

NameInTypeRequiredDescription
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for list sso providers.application/json SsoProviderListResponse
401No super-admin session presented.—
403Super-admin session invalid or expired.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/admin/sso/providers​

Create Sso Provider

Register an SSO provider, disabled until it has a verified domain and is enabled.

OIDC: the issuer's discovery document is fetched and checked (issuer match, HTTPS authorize / token / JWKS endpoints) and the endpoints are stored. SAML: the IdP metadata is parsed safely; an IdP offering only an unsupported binding is refused with sso-binding-unsupported.

Raises: HTTPException: 422 with a stable sso-* code; 503 when a secret is given but encryption is unconfigured.

Operation id: create_sso_provider_v1_admin_sso_providers_post

Parameters

NameInTypeRequiredDescription
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Request body (required)

Request body for create sso provider.

Responses

StatusDescriptionBody
201Successful response for create sso provider.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
422Refused with a stable sso-* code: {error, message}.—
503Secret encryption not configured.—

GET /v1/admin/sso/providers/{provider_id}​

Get Sso Provider

One SSO provider with its domains. Secrets are never included.

Operation id: get_sso_provider_v1_admin_sso_providers__provider_id__get

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for get sso provider.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider.—
422Refused with a stable sso-* code: {error, message}.—

PATCH /v1/admin/sso/providers/{provider_id}​

Update Sso Provider

Partially update an SSO provider.

Enabling requires a complete provider: an OIDC provider must hold a client secret (sso-enable-incomplete otherwise). A provider with no verified domain may be enabled but is not routable until a domain is verified.

Operation id: update_sso_provider_v1_admin_sso_providers__provider_id__patch

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Request body (required)

Request body for update sso provider.

Responses

StatusDescriptionBody
200Successful response for update sso provider.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider.—
422Refused with a stable sso-* code: {error, message}.—
503Secret encryption not configured.—

DELETE /v1/admin/sso/providers/{provider_id}​

Delete Sso Provider

Remove an SSO provider and its domains. Its sealed secrets are destroyed with it.

Identities already linked through it (external_auth_providers rows sso:<slug>) are kept, so those users can still sign in another way; the provider simply stops routing.

Operation id: delete_sso_provider_v1_admin_sso_providers__provider_id__delete

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for delete sso provider.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/admin/sso/providers/{provider_id}/domains​

Add Sso Domain

Attach an email domain, unverified. A domain another provider has verified is refused.

Operation id: add_sso_domain_v1_admin_sso_providers__provider_id__domains_post

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Request body (required)

Request body for add sso domain.

Responses

StatusDescriptionBody
201Successful response for add sso domain.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider.—
409sso-domain-claimed or sso-domain-exists.—
422Refused with a stable sso-* code: {error, message}.—

DELETE /v1/admin/sso/providers/{provider_id}/domains/{domain}​

Remove Sso Domain

Detach a domain. Sign-ins from it stop routing to this IdP at once.

Operation id: remove_sso_domain_v1_admin_sso_providers__provider_id__domains__domain__delete

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
domainpathstringyesPath parameter identifying the domain segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for remove sso domain.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider or domain.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/admin/sso/providers/{provider_id}/domains/{domain}/verify​

Verify Sso Domain

Mark a domain verified on the admin's word.

A workspace owner proves a domain with a DNS TXT record instead (POST /v1/tenants/{tenant}/sso/providers/{id}/domains/{domain}/verify).

Operation id: verify_sso_domain_v1_admin_sso_providers__provider_id__domains__domain__verify_post

Parameters

NameInTypeRequiredDescription
provider_idpathstringyesPath parameter identifying the provider id segment.
domainpathstringyesPath parameter identifying the domain segment.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for verify sso domain.application/json SsoProviderView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
404No such provider or domain.—
409sso-domain-claimed: another provider has verified this domain.—
422Refused with a stable sso-* code: {error, message}.—

GET /v1/tenants/{tenant_slug}/sso/providers​

List the workspace's SSO providers

Every identity provider of this workspace with its domains, newest first. Secrets are never included.

Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: list_tenant_sso_providers_v1_tenants__tenant_slug__sso_providers_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list the workspace's sso providers.application/json TenantSsoProviderListResponse
403Not a signed-in owner or tenant administrator of this workspace.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/tenants/{tenant_slug}/sso/providers​

Register an SSO provider

Register this workspace's identity provider: OIDC by issuer (the discovery document is fetched and checked) or SAML 2.0 by metadata URL or XML. It starts disabled, and routes no sign-in until it is enabled and has a verified domain.

Audited as sso.provider.created. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: create_tenant_sso_provider_v1_tenants__tenant_slug__sso_providers_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for register an sso provider.

Responses

StatusDescriptionBody
201Successful response for register an sso provider.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
422Refused with a stable sso-* code: {error, message}.—
503Secret encryption not configured.—

GET /v1/tenants/{tenant_slug}/sso/providers/{provider_id}​

Read one SSO provider

One provider with its domains and how many members sign in through it.

Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: get_tenant_sso_provider_v1_tenants__tenant_slug__sso_providers__provider_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for read one sso provider.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider in this workspace.—
422Refused with a stable sso-* code: {error, message}.—

PATCH /v1/tenants/{tenant_slug}/sso/providers/{provider_id}​

Change an SSO provider

Partially update a provider; omitted fields are left alone. enabled: false stops sign-ins reaching the identity provider at once. Enabling an OIDC provider needs its client secret (sso-enable-incomplete).

Audited as sso.provider.updated with the names of the changed fields. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: update_tenant_sso_provider_v1_tenants__tenant_slug__sso_providers__provider_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for change an sso provider.

Responses

StatusDescriptionBody
200Successful response for change an sso provider.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider in this workspace.—
422Refused with a stable sso-* code: {error, message}.—
503Secret encryption not configured.—

DELETE /v1/tenants/{tenant_slug}/sso/providers/{provider_id}​

Remove an SSO provider

Remove a provider, its domains and its sealed secrets. Members who signed in through it keep their accounts but can no longer sign in this way; member_count in the response says how many.

Audited as sso.provider.deleted. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: delete_tenant_sso_provider_v1_tenants__tenant_slug__sso_providers__provider_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for remove an sso provider.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider in this workspace.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/tenants/{tenant_slug}/sso/providers/{provider_id}/domains​

Add an email domain

Attach an email domain, unverified, and issue the DNS challenge for it: publish verification_token as a TXT record at record_name, then call verify. An unverified domain routes no sign-in.

Refused: a public mailbox domain (sso-domain-public), a domain another workspace has verified (sso-domain-claimed), a domain already on this provider (sso-domain-exists).

Audited as sso.provider.updated. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: add_tenant_sso_domain_v1_tenants__tenant_slug__sso_providers__provider_id__domains_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for add an email domain.

Responses

StatusDescriptionBody
201Successful response for add an email domain.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider in this workspace.—
409sso-domain-claimed or sso-domain-exists.—
422Refused with a stable sso-* code: {error, message}.—

DELETE /v1/tenants/{tenant_slug}/sso/providers/{provider_id}/domains/{domain}​

Remove an email domain

Detach a domain. Sign-ins from it stop reaching this identity provider at once, and another workspace may then verify it.

Audited as sso.provider.updated. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: remove_tenant_sso_domain_v1_tenants__tenant_slug__sso_providers__provider_id__domains__domain__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
domainpathstringyesPath parameter identifying the domain segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for remove an email domain.application/json TenantSsoProviderView
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider or domain in this workspace.—
422Refused with a stable sso-* code: {error, message}.—

POST /v1/tenants/{tenant_slug}/sso/providers/{provider_id}/domains/{domain}/verify​

Verify an email domain by DNS

Look up the TXT record _apiome-challenge.<domain> and mark the domain verified when it holds the domain's verification_token. Always answers 200 with check.status:

  • verified — the domain now routes sign-ins (once the provider is enabled);
  • not-found — no TXT record at that name yet;
  • mismatch — a TXT record is there with another value (check.observed lists what was found);
  • could-not-check — the lookup itself failed (check.observed says why). Nothing is changed, and the domain is not verified.

An already verified domain answers verified without a lookup. Limited to three checks an hour per domain.

A successful verification is audited as sso.domain.verified. Requires a signed-in owner or tenant administrator; API keys are refused.

Operation id: verify_tenant_sso_domain_v1_tenants__tenant_slug__sso_providers__provider_id__domains__domain__verify_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
domainpathstringyesPath parameter identifying the domain segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for verify an email domain by dns.application/json SsoDomainVerifyResponse
403Not a signed-in owner or tenant administrator of this workspace.—
404No such provider or domain in this workspace.—
409sso-domain-claimed: another workspace has verified this domain.—
422Refused with a stable sso-* code: {error, message}.—
429sso-verify-rate-limited: three checks an hour per domain.—

POST /v1/tenants/{tenant_slug}/sso/providers/{provider_id}/provision​

Provision a member on SSO sign-in (service-to-service)

Called by apiome-ui with the internal service token after a sign-in through this provider succeeded. Makes that person a member of the provider's workspace, idempotently on (workspace, user), and answers 200 with outcome:

  • provisioned — first sign-in: an active membership with the provider's default role (viewer when none is set; never owner), recorded as provisioned_by: sso:<slug> and audited as member.provisioned, source sso;
  • activated — a pending invitation was accepted by signing in; the invited role is kept;
  • existing — already a member; nothing changes and the member keeps their role;
  • suspended — the membership is suspended; nothing changes;
  • seat-cap-blocked — every licensed member seat is in use. No membership is created; the block is audited as member.provision_blocked and every owner receives a seat_cap_blocked_sso notification (once per person per 24 hours).

{tenant} is the workspace's id or slug and must be the provider's own workspace: a provider of one workspace cannot provision into another (404). Only an account that holds this provider's sso:<slug> identity and whose email is in one of the provider's verified domains is provisioned.

Operation id: provision_tenant_sso_member_v1_tenants__tenant_slug__sso_providers__provider_id__provision_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
provider_idpathstringyesPath parameter identifying the provider id segment.
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for provision a member on sso sign-in (service-to-service).

Responses

StatusDescriptionBody
200Successful response for provision a member on sso sign-in (service-to-service).application/json SsoProvisionResponse
401No internal service token presented.—
403Internal service token invalid; or sso-identity-missing / sso-email-domain-mismatch: this person did not sign in through this provider.—
404sso-provider-not-found in this workspace, or sso-user-not-found.—
409sso-provider-disabled: a disabled provider provisions nobody.—
422Validation Errorapplication/json HTTPValidationError
503Internal service path disabled (no INTERNAL_SERVICE_TOKEN).—

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

SsoDomainCreateRequest​

Body of POST /v1/admin/sso/providers/{id}/domains.

PropertyTypeRequiredDescription
domainstringyesAn email domain such as acme.com (an address is accepted).

SsoDomainVerifyResponse​

Payload of the verify route: the provider as it now stands, and what the check found.

PropertyTypeRequiredDescription
providerTenantSsoProviderViewyesProvider.
checkSsoDomainCheckViewyesCheck.

SsoProviderCreateRequest​

Body of POST /v1/admin/sso/providers.

OIDC needs issuer + client_id + client_secret; SAML needs metadata_url or metadata_xml plus email_source (and email_attribute when that is attribute). Secrets are write-only.

PropertyTypeRequiredDescription
protocolstringyesoidc or saml.
slugstringyes2–28 lower-case letters, digits and hyphens.
display_namestringyesDisplay Name.
tenant_idstring or nullnoThe workspace this IdP signs in to and provisions members into. Required (sso-tenant-required).
presetstring or nullnoPreset.
default_role_slugstring or nullnoDefault Role Slug.
issuerstring or nullnoOIDC issuer URL (https).
client_idstring or nullnoClient ID.
client_secretstring or nullnoWrite-only; sealed at rest. Never returned.
metadata_urlstring or nullnoSAML IdP metadata URL (https).
metadata_xmlstring or nullnoSAML IdP metadata XML, pasted.
email_sourcestring or nullnoSAML: nameid or attribute.
email_attributestring or nullnoEmail Attribute.
sp_private_keystring or nullnoSAML SP signing key (PEM). Write-only; sealed at rest.

SsoProviderListResponse​

Payload of GET /v1/admin/sso/providers.

PropertyTypeRequiredDescription
providersarray of SsoProviderViewnoProviders.
has_morebooleannoWhether another page exists.
next_cursorstring or nullnoPass as cursor to read the next page; null on the last page.

SsoProviderUpdateRequest​

Body of PATCH /v1/admin/sso/providers/{id} — a partial update, by field presence.

An omitted field is left as stored. client_secret / sp_private_key are write-only: a value replaces the sealed secret, null clears it. Sending metadata_url or metadata_xml re-reads the SAML metadata; sending client_id re-runs OIDC discovery.

PropertyTypeRequiredDescription
display_namestring or nullnoDisplay Name.
tenant_idstring or nullnoTenant that owns the resource.
enabledboolean or nullnoWhether the resource is active.
presetstring or nullnoPreset.
default_role_slugstring or nullnoDefault Role Slug.
client_idstring or nullnoClient ID.
client_secretstring or nullnoClient Secret.
metadata_urlstring or nullnoMetadata URL.
metadata_xmlstring or nullnoMetadata Xml.
email_sourcestring or nullnoEmail Source.
email_attributestring or nullnoEmail Attribute.
sp_private_keystring or nullnoSp Private Key.

SsoProviderView​

A provider as admins see it. Never carries a secret.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
slugstringyesURL-safe identifier.
plugin_provider_idstringyessso-<slug>: the id in sign-in URLs.
identity_kindstringyessso:<slug>: the provider recorded on identities and auth events.
protocolstringyesoidc or saml.
display_namestringyesDisplay Name.
issuerstringyesOIDC issuer, or the SAML IdP entity id.
tenant_idstring or nullnoTenant that owns the resource.
tenant_namestring or nullnoTenant Name.
oidc_configobject or nullnoClient id and discovered endpoints; no secret.
saml_configobject or nullnoIdP entity id, SSO URL, binding, certificates and email source.
has_client_secretbooleanyesWhether client secret.
has_sp_private_keybooleanyesWhether sp private key.
enabledbooleanyesWhether the resource is active.
routablebooleanyesEnabled and at least one verified domain: sign-ins reach the IdP.
presetstring or nullnoPreset.
default_role_slugstring or nullnoDefault Role Slug.
domainsarray of SsoDomainViewnoDomains.
created_bystring or nullnoCreated By.
updated_bystring or nullnoUpdated By.
created_atstring (date-time) or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or nullnoLast update timestamp (ISO 8601).

SsoProvisionRequest​

Body of the provision route: who just signed in through the provider.

PropertyTypeRequiredDescription
user_idstringyesThe signed-in account's id.

SsoProvisionResponse​

What provisioning decided for one sign-in.

PropertyTypeRequiredDescription
outcomestringyesprovisioned, activated, existing, suspended or seat-cap-blocked.
tenant_idstringyesTenant that owns the resource.
tenant_slugstringyesURL-safe tenant slug used in path parameters.
tenant_namestringyesTenant Name.
role_slugstring or nullnoThe member's role after the call, if they hold one.
role_namestring or nullnoRole Name.
seat_limitinteger or nullnoThe workspace's licensed member seats; null when seat enforcement is off.

TenantSsoProviderCreateRequest​

Body of POST /v1/tenants/{t}/sso/providers.

OIDC needs issuer + client_id + client_secret; SAML needs metadata_url or metadata_xml plus email_source (and email_attribute when that is attribute). Secrets are write-only. The provider belongs to the caller's workspace.

PropertyTypeRequiredDescription
protocolstringyesoidc or saml.
slugstringyes2–28 lower-case letters, digits and hyphens. Unique installation-wide.
display_namestringyesDisplay Name.
presetstring or nullnoPreset.
default_role_slugstring or nullnoA role of this workspace, other than owner.
issuerstring or nullnoOIDC issuer URL (https).
client_idstring or nullnoClient ID.
client_secretstring or nullnoWrite-only; sealed at rest. Never returned.
metadata_urlstring or nullnoSAML IdP metadata URL (https).
metadata_xmlstring or nullnoSAML IdP metadata XML, pasted.
email_sourcestring or nullnoSAML: nameid or attribute.
email_attributestring or nullnoEmail Attribute.
sp_private_keystring or nullnoSAML SP signing key (PEM). Write-only; sealed at rest.

TenantSsoProviderListResponse​

Payload of GET /v1/tenants/{t}/sso/providers.

PropertyTypeRequiredDescription
providersarray of TenantSsoProviderViewnoProviders.
has_morebooleannoWhether another page exists.
next_cursorstring or nullnoPass as cursor to read the next page; null on the last page.

TenantSsoProviderUpdateRequest​

Body of PATCH /v1/tenants/{t}/sso/providers/{id} — a partial update, by field presence.

An omitted field is left as stored. client_secret / sp_private_key are write-only: a value replaces the sealed secret, null clears it. Sending metadata_url or metadata_xml re-reads the SAML metadata; sending client_id re-runs OIDC discovery.

PropertyTypeRequiredDescription
display_namestring or nullnoDisplay Name.
enabledboolean or nullnoWhether the resource is active.
presetstring or nullnoPreset.
default_role_slugstring or nullnoDefault Role Slug.
client_idstring or nullnoClient ID.
client_secretstring or nullnoClient Secret.
metadata_urlstring or nullnoMetadata URL.
metadata_xmlstring or nullnoMetadata Xml.
email_sourcestring or nullnoEmail Source.
email_attributestring or nullnoEmail Attribute.
sp_private_keystring or nullnoSp Private Key.

TenantSsoProviderView​

A provider as its workspace's owners see it. Never carries a secret.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
slugstringyesURL-safe identifier.
plugin_provider_idstringyessso-<slug>: the id in sign-in URLs.
identity_kindstringyessso:<slug>: the provider recorded on identities and auth events.
protocolstringyesoidc or saml.
display_namestringyesDisplay Name.
issuerstringyesOIDC issuer, or the SAML IdP entity id.
tenant_idstring or nullnoTenant that owns the resource.
tenant_namestring or nullnoTenant Name.
oidc_configobject or nullnoClient id and discovered endpoints; no secret.
saml_configobject or nullnoIdP entity id, SSO URL, binding, certificates and email source.
has_client_secretbooleanyesWhether client secret.
has_sp_private_keybooleanyesWhether sp private key.
enabledbooleanyesWhether the resource is active.
routablebooleanyesEnabled and at least one verified domain: sign-ins reach the IdP.
presetstring or nullnoPreset.
default_role_slugstring or nullnoDefault Role Slug.
domainsarray of SsoDomainViewnoDomains.
created_bystring or nullnoCreated By.
updated_bystring or nullnoUpdated By.
created_atstring (date-time) or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or nullnoLast update timestamp (ISO 8601).
member_countintegernoMembers of this workspace who have signed in through this provider.