smplkit SSO API
The SSO API from smplkit — 4 operation(s) for sso.
The SSO API from smplkit — 4 operation(s) for sso.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/smplkit-com:smplkit-com-sso-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: smplkit SSO API
description: API for the smplkit platform.
version: 0.1.0
tags:
- name: SSO
paths:
/api/v1/accounts/current/sso_connection:
get:
tags:
- SSO
summary: Get SSO Connection
description: Return the SSO connection for the current account, including computed Service Provider metadata. Returns `404` when no connection has been configured.
operationId: get_sso_connection
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSOConnectionResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- HTTPBearer: []
put:
tags:
- SSO
summary: Create or Replace SSO Connection
description: Create-or-replace the account's SSO connection. The OIDC `client_secret` is write-only; supply it on first creation, omit on subsequent updates to retain the stored value.
operationId: put_sso_connection
requestBody:
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSOConnectionRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSOConnectionResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- HTTPBearer: []
delete:
tags:
- SSO
summary: Delete SSO Connection
description: Soft-delete the account's SSO connection. Domains are preserved.
operationId: delete_sso_connection
responses:
'204':
description: Successful Response
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- HTTPBearer: []
/api/v1/accounts/current/sso_domains:
get:
tags:
- SSO
summary: List SSO Domains
description: List the domains claimed by the current account, including each row's verification status.
operationId: list_sso_domains
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSODomainListResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- HTTPBearer: []
/api/v1/accounts/current/sso_domains/{domain}:
put:
tags:
- SSO
summary: Claim SSO Domain
description: Claim a domain for SSO routing. Idempotent — re-claiming a domain already held by the account is a no-op success. The response includes the DNS TXT token to publish.
operationId: claim_sso_domain
security:
- HTTPBearer: []
parameters:
- name: domain
in: path
required: true
schema:
type: string
title: Domain
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSODomainRequest'
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSODomainResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- SSO
summary: Release SSO Domain
description: Release a previously-claimed SSO domain.
operationId: release_sso_domain
security:
- HTTPBearer: []
parameters:
- name: domain
in: path
required: true
schema:
type: string
title: Domain
responses:
'204':
description: Successful Response
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/accounts/current/sso_domains/{domain}/actions/verify:
post:
tags:
- SSO
summary: Verify SSO Domain
description: Run the DNS TXT check for a claimed domain. Returns the updated resource on success. Returns `409` if a different account has already verified this domain. Returns `422` when the DNS TXT record has not yet been published or does not match the expected token.
operationId: verify_sso_domain
security:
- HTTPBearer: []
parameters:
- name: domain
in: path
required: true
schema:
type: string
title: Domain
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/SSODomainResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
SSOConnection:
properties:
protocol:
type: string
enum:
- saml
- oidc
title: Protocol
description: Federation protocol. `oidc` for OpenID Connect; `saml` for SAML 2.0. Determines which set of IdP fields below are required.
oidc_issuer:
type:
- string
- 'null'
maxLength: 2048
title: Oidc Issuer
description: OIDC issuer URL — the base from which `.well-known/openid-configuration` is discovered. Required when `protocol` is `oidc`; ignored when `protocol` is `saml`.
oidc_client_id:
type:
- string
- 'null'
maxLength: 512
title: Oidc Client Id
description: OIDC client identifier issued by the IdP for smplkit. Required when `protocol` is `oidc`; ignored otherwise.
oidc_client_secret:
type:
- string
- 'null'
title: Oidc Client Secret
description: OIDC client secret. Write-only — supplied on PUT, never returned by the API. Stored envelope-encrypted at rest. Required on first creation of an OIDC connection; on subsequent PUTs, omit to retain the existing value.
saml_idp_entity_id:
type:
- string
- 'null'
maxLength: 2048
title: Saml Idp Entity Id
description: SAML IdP EntityID (typically a URI). Required when `protocol` is `saml`; ignored otherwise.
saml_idp_sso_url:
type:
- string
- 'null'
maxLength: 2048
title: Saml Idp Sso Url
description: SAML IdP single sign-on URL (HTTP-Redirect or HTTP-POST endpoint). Required when `protocol` is `saml`.
saml_idp_slo_url:
type:
- string
- 'null'
maxLength: 2048
title: Saml Idp Slo Url
description: SAML IdP single logout URL. Optional — when present, smplkit will issue LogoutRequests on user sign-out.
saml_idp_x509_cert:
type:
- string
- 'null'
title: Saml Idp X509 Cert
description: SAML IdP X.509 signing certificate (PEM-encoded). Required when `protocol` is `saml`.
default_role:
type: string
enum:
- OWNER
- ADMIN
- MEMBER
- VIEWER
title: Default Role
description: Role granted to a user provisioned just-in-time on their first SSO login when no group mapping applies. `OWNER` values are downgraded to `ADMIN` for JIT — owner promotion remains an explicit account action.
default: MEMBER
group_role_mappings:
additionalProperties:
type: string
enum:
- OWNER
- ADMIN
- MEMBER
- VIEWER
type: object
title: Group Role Mappings
description: 'Mapping of IdP group claim values to smplkit roles. The first key matching the user''s group claims (in declaration order) decides the JIT role; if none match, `default_role` applies. Example: `{"smplkit-admins": "ADMIN"}`.'
enforced:
type: boolean
title: Enforced
description: When `true`, password and social sign-in are rejected for users whose email domain matches one of the account's verified domains. The account owner is exempt (break-glass).
default: false
sp_entity_id:
type:
- string
- 'null'
title: Sp Entity Id
description: Service Provider EntityID to register with the IdP. Computed from the connection — paste this value into the IdP's smplkit configuration.
readOnly: true
acs_url:
type:
- string
- 'null'
title: Acs Url
description: Assertion Consumer Service URL (SAML) or redirect URI (OIDC) to register with the IdP. Computed.
readOnly: true
slo_url:
type:
- string
- 'null'
title: Slo Url
description: Single Logout URL to register with the IdP. Computed; smplkit accepts logout requests here for the SAML case.
readOnly: true
created_at:
type:
- string
- 'null'
format: date-time
title: Created At
description: When the connection was created.
readOnly: true
updated_at:
type:
- string
- 'null'
format: date-time
title: Updated At
description: When the connection was last modified.
readOnly: true
type: object
required:
- protocol
title: SSOConnection
description: 'An account''s Single Sign-On connection to a customer-controlled
identity provider. Configuring a connection lets the account federate
authentication to its own SAML or OIDC IdP; with `enforced` enabled,
password and social sign-in are disabled for users on the account''s
verified domains.
Each account has at most one SSO connection. The Service Provider
metadata fields (`sp_entity_id`, `acs_url`, `slo_url`) are computed
on every read from the connection identifier and never stored.'
example:
acs_url: https://app.smplkit.com/api/v1/auth/sso/acs
created_at: '2026-05-25T11:02:16.616Z'
default_role: MEMBER
enforced: true
group_role_mappings:
smplkit-admins: ADMIN
oidc_client_id: smplkit-acme
oidc_issuer: https://login.acme.com
protocol: oidc
slo_url: https://app.smplkit.com/api/v1/auth/sso/slo
sp_entity_id: https://app.smplkit.com/sso/sp
updated_at: '2026-05-25T11:02:16.616Z'
ListMeta:
properties:
pagination:
$ref: '#/components/schemas/PaginationMeta'
type: object
required:
- pagination
title: ListMeta
description: Top-level ``meta`` block included on every JSON:API list response.
ErrorResponse:
properties:
errors:
items:
$ref: '#/components/schemas/Error'
type: array
title: Errors
type: object
required:
- errors
title: ErrorResponse
description: JSON:API error response envelope.
SSOConnectionRequest:
properties:
data:
$ref: '#/components/schemas/SSOConnectionResource'
type: object
required:
- data
title: SSOConnectionRequest
description: JSON:API request envelope for creating or replacing the SSO connection.
SSODomainResponse:
properties:
data:
$ref: '#/components/schemas/SSODomainResource'
type: object
required:
- data
title: SSODomainResponse
description: JSON:API single-resource response envelope for an SSO domain.
SSOConnectionResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- sso_connection
title: Type
attributes:
$ref: '#/components/schemas/SSOConnection'
type: object
required:
- type
- attributes
title: SSOConnectionResource
description: 'JSON:API resource envelope for an SSO connection.
`id` is the server-assigned UUID of the singleton connection row on
the account; clients never specify it (the URL is
`/accounts/current/sso_connection` with no id segment).'
example:
attributes:
acs_url: https://app.smplkit.com/api/v1/auth/sso/acs
created_at: '2026-05-25T11:02:16.616Z'
default_role: MEMBER
enforced: true
group_role_mappings:
smplkit-admins: ADMIN
oidc_client_id: smplkit-acme
oidc_issuer: https://login.acme.com
protocol: oidc
slo_url: https://app.smplkit.com/api/v1/auth/sso/slo
sp_entity_id: https://app.smplkit.com/sso/sp
updated_at: '2026-05-25T11:02:16.616Z'
id: c0ffee01-1234-5678-9abc-def012345678
type: sso_connection
SSODomainListResponse:
properties:
data:
items:
$ref: '#/components/schemas/SSODomainResource'
type: array
title: Data
meta:
$ref: '#/components/schemas/ListMeta'
type: object
required:
- data
- meta
title: SSODomainListResponse
description: JSON:API collection response for SSO domains on an account.
SSODomainResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- sso_domain
title: Type
attributes:
$ref: '#/components/schemas/SSODomain'
type: object
required:
- type
- attributes
title: SSODomainResource
description: 'JSON:API resource envelope for an SSO domain.
The resource `id` is the domain string itself per ADR-035 (e.g.
`"acme.com"`). The domain is normalised to lower-case on write.'
example:
attributes:
created_at: '2026-05-25T11:00:00.000Z'
dns_txt_token: smplkit-domain-verification=8c91e7d2a3b4f6e0
status: verified
updated_at: '2026-05-25T11:02:16.616Z'
verified_at: '2026-05-25T11:02:16.616Z'
id: acme.com
type: sso_domain
SSODomainRequest:
properties:
data:
$ref: '#/components/schemas/SSODomainResource'
type: object
required:
- data
title: SSODomainRequest
description: 'JSON:API request envelope for claiming a domain.
The attributes block is intentionally optional/empty — all writeable
data on a domain is the domain string itself (in the URL) and the
server-generated verification token. Claim is idempotent: re-claim
of a domain the account already holds is a no-op success.'
Error:
properties:
status:
type: string
title: Status
title:
type: string
title: Title
detail:
type:
- string
- 'null'
title: Detail
source:
additionalProperties: true
type:
- object
- 'null'
title: Source
type: object
required:
- status
- title
title: Error
description: Single JSON:API error object.
SSODomain:
properties:
dns_txt_token:
type:
- string
- 'null'
title: Dns Txt Token
description: Token to publish on the domain's DNS as a TXT record to prove ownership. The full record value is `smplkit-domain-verification=<token>`.
readOnly: true
verified_at:
type:
- string
- 'null'
format: date-time
title: Verified At
description: When the domain was verified. Null until verification succeeds.
readOnly: true
status:
type:
- string
- 'null'
enum:
- pending
- verified
- null
title: Status
description: Verification status. `pending` means a claim has been registered but DNS TXT verification has not yet succeeded. `verified` means the domain is in use for SSO routing.
readOnly: true
created_at:
type:
- string
- 'null'
format: date-time
title: Created At
description: When the claim was created.
readOnly: true
updated_at:
type:
- string
- 'null'
format: date-time
title: Updated At
description: When the claim was last modified.
readOnly: true
type: object
title: SSODomain
description: 'An email domain claimed by an account for SSO routing. A domain is
not active until it has been verified by publishing a DNS TXT record
containing the `dns_txt_token`. Once verified, sign-in attempts on
that domain route to this account''s SSO connection.
Verified-domain ownership is global across accounts — two accounts
cannot both hold the same verified domain.'
example:
created_at: '2026-05-25T11:00:00.000Z'
dns_txt_token: smplkit-domain-verification=8c91e7d2a3b4f6e0
status: verified
updated_at: '2026-05-25T11:02:16.616Z'
verified_at: '2026-05-25T11:02:16.616Z'
PaginationMeta:
properties:
page:
type: integer
title: Page
description: 1-based page number returned.
size:
type: integer
title: Size
description: Number of items per page.
total:
type:
- integer
- 'null'
title: Total
description: Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
total_pages:
type:
- integer
- 'null'
title: Total Pages
description: Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
type: object
required:
- page
- size
title: PaginationMeta
description: 'Pagination block returned inside ``meta`` on every list response.
``page`` and ``size`` are always present and echo the parameters that
served the response (their defaults when the client omitted them).
``total`` and ``total_pages`` are present only when the request included
``meta[total]=true``.'
SSOConnectionResponse:
properties:
data:
$ref: '#/components/schemas/SSOConnectionResource'
type: object
required:
- data
title: SSOConnectionResponse
description: JSON:API single-resource response envelope for the SSO connection.
securitySchemes:
HTTPBearer:
type: http
description: JWT access token or API key (sk_api_*)
scheme: bearer