Documentation base URLs use placeholder https://{your-tenant}.sso.id. Log in to show your tenant or custom domain.
Log in for Your Tenant URL
Complete REST & Protocol Specification

SSO.ID v2 REST & Protocol API Reference

Exhaustive request parameter tables, response field schemas, and copy-paste payloads for every endpoint across the Runtime Protocol Engine (https://{your-tenant}.sso.id/auth) and the Core Management & SCIM Engine (https://{your-tenant}.sso.id/api).

Architecture, Base URLs & Authentication

SSO.ID v2 separates high-throughput user authentication ceremonies from administrative and directory management APIs across two dedicated engines. When signed into your tenant workspace, all examples automatically reflect your active tenant or custom domain URL.

Flow Diagram SSO.ID v2 Dual-Engine API Architecture
flowchart LR subgraph Clients["Client Applications & Directories"] SPA["SPAs, Web & Mobile Apps"] BE["Backend Microservices"] IDP["Enterprise IdP (Okta / Entra ID)"] end subgraph Runtime["Runtime Protocol Engine (https://{your-tenant}.sso.id/auth)"] OIDC["/.well-known/openid-configuration & jwks.json"] AUTH["/oauth/authorize & /oauth/token"] PASSKEY["/oauth/passkey/*"] SAML["/Saml/Login & /saml/acs"] end subgraph Management["Core Management API (https://{your-tenant}.sso.id/api)"] APPS["/api/applications & /menus & /apis"] USERS["/api/users, /api/roles & /api/groups"] B2B["/api/organizations & /api/organization-units"] SCIM["/api/scim/v2/Users & /Groups"] AUDIT["/api/audit-logs, /api/compliance & /api/analytics"] end SPA --> OIDC SPA --> AUTH SPA --> PASSKEY SPA --> SAML BE --> APPS BE --> USERS BE --> B2B BE --> AUDIT IDP --> SCIM
Runtime protocol ceremonies execute on the Auth Engine (/auth) while directory, RBAC, SCIM 2.0, and audit operations execute on the Management Engine (/api).

Standard Request Headers

Header Name Required Example Value Purpose & Tenant Resolution
Authorization Required Bearer eyJhbGciOiJSUzI1Ni... RS256-signed JWT Access Token for REST management APIs, or SCIM 2.0 Bearer Token for /api/scim/v2/* endpoints. Tenant context is automatically resolved from the signed JWT token claims and/or the request domain URL.
Content-Type Required application/json Use application/json for REST management endpoints, application/scim+json for SCIM 2.0 endpoints, and application/x-www-form-urlencoded for OAuth 2.0 token exchanges.

1. OpenID Connect (OIDC) & OAuth 2.0 Protocol Endpoints

Standards-compliant OIDC Discovery 1.0, JSON Web Key Set (JWKS), Authorization Code + PKCE (S256), Token Exchange, UserInfo, and RP-Initiated Single Logout endpoints.

GET https://{your-tenant}.sso.id/auth/.well-known/openid-configuration
Public Discovery

OpenID Connect Discovery 1.0 Metadata endpoint. Returns issuer identifier, authorization/token/userinfo/logout endpoints, supported scopes, signing algorithms, and PKCE methods.

Request Parameters
Parameter Type Required Description & Constraints
appId Query string (UUID) Optional Optional Application UUID to scope the JWKS URI and supported claims to a specific application.
Response Fields & Schema
Field Type Description
issuer string (URL) Canonical OIDC Issuer URL.
authorization_endpoint string (URL) OAuth 2.0 / OIDC Authorize URL.
token_endpoint string (URL) OAuth 2.0 / OIDC Token URL.
userinfo_endpoint string (URL) OIDC UserInfo URL.
end_session_endpoint string (URL) RP-Initiated Logout URL.
jwks_uri string (URL) Public JSON Web Key Set URL.
response_types_supported array Supported OAuth response types (code, id_token, token).
grant_types_supported array Supported grant types (authorization_code, refresh_token, client_credentials, password).
code_challenge_methods_supported array Supported PKCE methods (S256, plain).
id_token_signing_alg_values_supported array Supported JWS signing algorithms (RS256).
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/.well-known/openid-configuration?appId=app_7712b"
Expected Response 200 OK
{
  "issuer": "https://{your-tenant}.sso.id/auth",
  "authorization_endpoint": "https://{your-tenant}.sso.id/auth/oauth/authorize",
  "token_endpoint": "https://{your-tenant}.sso.id/auth/oauth/token",
  "userinfo_endpoint": "https://{your-tenant}.sso.id/auth/oauth/userinfo",
  "end_session_endpoint": "https://{your-tenant}.sso.id/auth/oauth/logout",
  "jwks_uri": "https://{your-tenant}.sso.id/auth/.well-known/jwks.json?appId=app_7712b",
  "response_types_supported": ["code", "id_token", "code id_token"],
  "grant_types_supported": ["authorization_code", "refresh_token", "client_credentials", "password"],
  "code_challenge_methods_supported": ["S256"],
  "id_token_signing_alg_values_supported": ["RS256"]
}
GET https://{your-tenant}.sso.id/auth/.well-known/jwks.json
Public Discovery

RFC 7517 JSON Web Key Set (JWKS) endpoint exposing active public RSA signing keys used by applications and API gateways to verify SSO.ID JWT access_token and id_token signatures offline.

Request Parameters
Parameter Type Required Description & Constraints
appId Query string (UUID) Optional Optional Application UUID to include application-specific rotated signing keys.
Response Fields & Schema
Field Type Description
keys array Array of active public JSON Web Keys.
keys[].kty string Key type (RSA).
keys[].use string Public key use (sig for signature verification).
keys[].alg string Algorithm (RS256).
keys[].kid string Unique Key Identifier matching the JWT header kid.
keys[].n string (Base64URL) RSA public modulus.
keys[].e string (Base64URL) RSA public exponent (AQAB).
keys[].x5c array X.509 certificate chain.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/.well-known/jwks.json?appId=app_7712b"
Expected Response 200 OK
{
  "keys": [
    {
      "kty": "RSA",
      "use": "sig",
      "alg": "RS256",
      "kid": "ssoid-2026-key-01",
      "n": "x9v8b7n6m5k4j3h2g1f0d9s8a7p6o5i4u3y2t1r0e9w8q7...",
      "e": "AQAB"
    }
  ]
}
GET https://{your-tenant}.sso.id/auth/oauth/authorize
Browser Redirect

OAuth 2.0 / OIDC Authorization Endpoint. Initiates browser-based Authorization Code + PKCE (S256) flows, direct Social/Enterprise IdP routing via connectionId, or B2B workspace routing via organizationId and organizationUnitId.

Request Parameters
Parameter Type Required Description & Constraints
client_id Query string Required Public Client ID of the target SSO.ID Application.
response_type Query string Required Must be code for Authorization Code flow (or id_token / code id_token).
redirect_uri Query string (URL) Required Callback URI registered in the Application's replyURL allowlist.
scope Query string Required Space-delimited scopes (e.g., openid profile email roles offline_access).
state Query string Required Cryptographically random CSRF protection state token returned unchanged to redirect_uri.
code_challenge Query string (Base64URL) Required PKCE SHA-256 hash of code_verifier (BASE64URL(SHA256(code_verifier))).
code_challenge_method Query string Required PKCE transformation method; always use S256.
nonce Query string Optional Random string bound into the resulting id_token to prevent replay attacks.
connectionId Query string (UUID) Optional Optional Connection UUID (e.g., Google, GitHub, Okta). When provided, bypasses the hosted login chooser and redirects straight to that IdP.
organizationId Query string (UUID) Optional Optional Tier-3 Organization UUID to apply customer-specific branding, MFA policies, and allowed IdPs.
organizationUnitId Query string (UUID) Optional Optional Tier-4 Organization Unit UUID for department-level policy enforcement.
login_hint Query string Optional Pre-populates the user's email address and triggers automatic Home Realm Discovery (HRD).
prompt Query string Optional Controls interactive behavior: login (force re-auth), none (silent SSO check), or select_account (show Multi-Account Switcher).
Response Fields & Schema
Field Type Description
code Query (302 Redirect) One-time authorization code appended to redirect_uri (valid for 5 minutes).
state Query (302 Redirect) Exact state value supplied in the authorization request.
Sample Request
GET https://{your-tenant}.sso.id/auth/oauth/authorize?client_id=cp_crm_prod_99182&response_type=code&redirect_uri=https%3A%2F%2Fcrm.cloudpulse.io%2Fcallback&scope=openid%20profile%20email%20roles%20offline_access&state=st_88192a&code_challenge=E9Melhoa2OwvFrEMTgu3chv2K_t8URXrG2-7_2V3a2Y&code_challenge_method=S256&connectionId=con_google_oauth2_01
Expected Response 302 Found
HTTP/1.1 302 Found
Location: https://crm.cloudpulse.io/callback?code=authcode_9918273645abcdef&state=st_88192a
POST https://{your-tenant}.sso.id/auth/oauth/token
Client Credentials / PKCE

OAuth 2.0 Token Exchange Endpoint (also exposed at POST https://{your-tenant}.sso.id/api/oauth2/token for JSON payloads). Exchanges an authorization code, refresh token, client credentials, or password credentials for signed RS256 JWT tokens.

Request Parameters
Parameter Type Required Description & Constraints
grant_type Form / Body string Required Grant type: authorization_code, refresh_token, client_credentials, or password.
client_id Form / Body string Required Application Client ID.
client_secret Form / Body string Optional Application Client Secret (required for confidential apps, client_credentials, and password grants).
code Form / Body string Optional Authorization code received from /oauth/authorize (required when grant_type=authorization_code).
redirect_uri Form / Body string (URL) Optional Must match the redirect_uri used in /oauth/authorize.
code_verifier Form / Body string Optional Original 43-128 character PKCE plaintext verifier matching code_challenge.
refresh_token Form / Body string Optional Refresh token string (required when grant_type=refresh_token).
username Form / Body string Optional User email address (required when grant_type=password).
password Form / Body string Optional User plaintext password (required when grant_type=password).
scope Form / Body string Optional Requested space-delimited scopes.
Response Fields & Schema
Field Type Description
access_token string (JWT) Signed RS256 JWT access token containing sub, email, roles, tenant_id, and app_id claims.
id_token string (JWT) Signed OIDC ID Token containing user profile claims.
refresh_token string Rotating opaque refresh token (returned when offline_access scope is granted).
token_type string Always Bearer.
expires_in integer Access token lifetime in seconds (default: 3600).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/auth/oauth/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=authorization_code" \
  -d "client_id=cp_crm_prod_99182" \
  -d "code=authcode_9918273645abcdef" \
  -d "redirect_uri=https://crm.cloudpulse.io/callback" \
  -d "code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
Expected Response 200 OK
{
  "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InNzb2lkLTIwMjYta2V5LTAxIn0...",
  "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InNzb2lkLTIwMjYta2V5LTAxIn0...",
  "refresh_token": "rt_881920394857abcdef11223344",
  "token_type": "Bearer",
  "expires_in": 3600
}
GET https://{your-tenant}.sso.id/auth/oauth/userinfo
Bearer Access Token

OIDC Standard UserInfo Endpoint. Returns verified identity claims for the user represented by the Bearer access_token, normalized across direct directory logins and federated OAuth2/OIDC/SAML connections.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
sub string (UUID) Unique immutable SSO.ID User ID.
email string Verified primary email address.
email_verified boolean Whether the email address has been verified.
name string Full display name.
given_name string First name.
family_name string Last name.
picture string (URL) Profile avatar URL.
roles array Application roles assigned to the user.
tenant_id string (UUID) Tenant Workspace UUID.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/oauth/userinfo" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "sub": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
  "email": "[email protected]",
  "email_verified": true,
  "name": "Liam Mercer",
  "given_name": "Liam",
  "family_name": "Mercer",
  "roles": ["Support Specialist"],
  "tenant_id": "8c60a951-7e5c-4f25-8306-b62c7519c97a"
}
GET https://{your-tenant}.sso.id/auth/oauth/logout
Public / Session

OIDC RP-Initiated Logout Endpoint. Terminates the user's SSO session cookie, revokes active tokens for the client application, and redirects the browser to post_logout_redirect_uri.

Request Parameters
Parameter Type Required Description & Constraints
client_id Query string Optional Application Client ID initiating logout.
post_logout_redirect_uri Query string (URL) Optional Registered post-logout destination URL (or redirect_uri).
id_token_hint Query string (JWT) Optional Previously issued ID Token identifying the session being terminated.
email Query string Optional Optional account email when signing out a specific identity from the Multi-Account Switcher.
Response Fields & Schema
Field Type Description
Location Header (302) Redirects browser to post_logout_redirect_uri.
Sample Request
GET https://{your-tenant}.sso.id/auth/oauth/logout?client_id=cp_crm_prod_99182&post_logout_redirect_uri=https%3A%2F%2Fcrm.cloudpulse.io%2Flogin
Expected Response 302 Found
HTTP/1.1 302 Found
Location: https://crm.cloudpulse.io/login

2. Multi-Factor Authentication (MFA) & FIDO2 / WebAuthn Passkeys

Manage tenant and application MFA factors (TOTP Authenticator, Email OTP, Twilio/Plivo/Vonage SMS OTP) and execute phishing-resistant W3C WebAuthn / FIDO2 biometric passkey attestation and assertion ceremonies.

GET https://{your-tenant}.sso.id/api/multifactor/factors
Bearer JWT

Lists all Multi-Factor Authentication (MFA) factor definitions and SMS/Email delivery gateway configurations in the tenant workspace.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
factorId integer (int64) Unique numeric identifier of the MFA factor.
factorType string Factor category (TOTP, PASSKEY, EMAIL, SMS).
factorProvider string Provider name (e.g., WebAuthn/FIDO2, AuthenticatorApp, Twilio, Plivo, Vonage, SMTP).
factorMethod string Delivery/verification method.
deliveryFrom string Sender phone number, Messaging Service SID, or email address.
enable boolean Whether this factor is enabled at the Tier-1 Tenant level.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/multifactor/factors" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "factorId": 1,
    "factorType": "TOTP",
    "factorProvider": "AuthenticatorApp",
    "factorMethod": "RFC6238",
    "enable": true
  },
  {
    "factorId": 2,
    "factorType": "PASSKEY",
    "factorProvider": "FIDO2/WebAuthn",
    "factorMethod": "Biometric/SecurityKey",
    "enable": true
  }
]
PUT https://{your-tenant}.sso.id/api/multifactor/factors/{id}
Bearer JWT

Updates a specific MFA factor's status or configures an SMS OTP gateway (Twilio, Plivo, Vonage) with API credentials and OTP templates.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path integer (int64) Required Target Factor ID.
factorId Body integer (int64) Required Target Factor ID.
factorType Body string Required Factor type (SMS, EMAIL, TOTP, PASSKEY).
factorProvider Body string Required Gateway provider (Twilio, Plivo, Vonage, SMTP).
methodSID Body string Optional Gateway Account SID / API Key.
methodToken Body string Optional Gateway Auth Token / API Secret (encrypted at rest).
deliveryFrom Body string Optional Sender E.164 phone number or Alphanumeric Sender ID.
verificationTemplate Body string Optional OTP message template containing {{Code}} placeholder.
enable Body boolean Required Set to true to activate this factor.
Response Fields & Schema
Field Type Description
factorId integer (int64) Updated Factor ID.
factorType string Factor type.
enable boolean Active state.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/multifactor/factors/4" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "factorId": 4,
    "factorType": "SMS",
    "factorProvider": "Twilio",
    "methodSID": "AC9918273645abcdef0192837465",
    "methodToken": "twilio_auth_token_secret",
    "deliveryFrom": "+14155550100",
    "verificationTemplate": "Your CloudPulse verification code is {{Code}}. Valid for 5 minutes.",
    "enable": true
  }'
Expected Response 200 OK
{
  "factorId": 4,
  "factorType": "SMS",
  "factorProvider": "Twilio",
  "enable": true
}
POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin
Authenticated Session

Initiates a W3C WebAuthn / FIDO2 Passkey Registration (Attestation) ceremony. Returns a cryptographic challenge and relying party options to pass into navigator.credentials.create({ publicKey }). Complete registration by posting the authenticator response to POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-complete?deviceName={name}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
deviceName Query (on complete) string Optional Friendly label for the enrolled passkey (e.g., MacBook Pro TouchID, YubiKey 5C NFC).
Response Fields & Schema
Field Type Description
rp object Relying Party metadata (id, name).
user object WebAuthn user handle (id, name, displayName).
challenge string (Base64URL) 32-byte cryptographic attestation challenge.
pubKeyCredParams array Supported COSE algorithms (-7 ES256, -257 RS256).
authenticatorSelection object Authenticator requirements (residentKey: preferred, userVerification: required).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin" \
  -H "Cookie: .AspNetCore.Session=..."
Expected Response 200 OK
{
  "rp": { "id": "sso.id", "name": "SSO.ID Identity Platform" },
  "user": {
    "id": "dXNyXzlmOGU3ZDZj",
    "name": "[email protected]",
    "displayName": "Liam Mercer"
  },
  "challenge": "q8z7x6c5v4b3n2m1l0k9j8h7g6f5d4s3a2p1o0i9u8y",
  "pubKeyCredParams": [
    { "type": "public-key", "alg": -7 },
    { "type": "public-key", "alg": -257 }
  ],
  "timeout": 60000,
  "attestation": "none"
}
POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin
Public / Auth Flow

Initiates a passwordless or step-up W3C WebAuthn / FIDO2 Passkey Sign-In (Assertion) ceremony. Pass the returned options into navigator.credentials.get({ publicKey }) and post the resulting signature to POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-complete.

Request Parameters
Parameter Type Required Description & Constraints
email Body string Optional Optional user email to scope allowCredentials; omit for discoverable Resident Key (conditional UI) passkey login.
Response Fields & Schema
Field Type Description
challenge string (Base64URL) Cryptographic assertion challenge.
rpId string Relying Party domain identifier.
allowCredentials array Registered credential descriptors for the user.
userVerification string User verification policy (required or preferred).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin" \
  -H "Content-Type: application/json" \
  -d '{ "email": "[email protected]" }'
Expected Response 200 OK
{
  "challenge": "m1n2b3v4c5x6z7l8k9j0h1g2f3d4s5a6q7w8e9r0t1y",
  "rpId": "sso.id",
  "timeout": 60000,
  "userVerification": "required",
  "allowCredentials": [
    {
      "type": "public-key",
      "id": "cred_881920394857abcdef112233"
    }
  ]
}

3. SAML 2.0 Dual-Role (IdP & SP) Protocol Endpoints

OASIS SAML 2.0 Identity Provider (IdP) metadata, Single Sign-On (SSO), Service Provider Assertion Consumer Service (ACS), and Single Logout (SLO) endpoints supporting both HTTP-POST and HTTP-Redirect bindings.

GET https://{your-tenant}.sso.id/auth/saml/metadata
Public Metadata

Generates the OASIS SAML 2.0 Identity Provider (IdP) Federation Metadata XML for a specific SSO.ID Application. For a Base64-encoded payload suitable for CLI/SDK automation, call GET https://{your-tenant}.sso.id/auth/saml/GetIDPMetadataBase64?appId={appId}.

Request Parameters
Parameter Type Required Description & Constraints
appId Query string (UUID) Required Target Application UUID configured with SAML 2.0 protocol.
Response Fields & Schema
Field Type Description
EntityDescriptor XML (application/samlmetadata+xml) Contains the IdP entityID, X.509 signing certificate (ds:X509Certificate), NameIDFormat, SingleSignOnService (HTTP-POST and HTTP-Redirect), and SingleLogoutService endpoints.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/saml/metadata?appId=app_7712b"
Expected Response 200 OK
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://{your-tenant}.sso.id/auth/saml/app_7712b">
  <md:IDPSSODescriptor WantAuthnRequestsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
    <md:KeyDescriptor use="signing">
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:X509Data><ds:X509Certificate>MIIDdzCCAl+gAwIBAgIE...</ds:X509Certificate></ds:X509Data>
      </ds:KeyInfo>
    </md:KeyDescriptor>
    <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://{your-tenant}.sso.id/auth/Saml/Login" />
  </md:IDPSSODescriptor>
</md:EntityDescriptor>
GET / POST https://{your-tenant}.sso.id/auth/Saml/Login
SAML 2.0 AuthnRequest

SAML 2.0 Identity Provider Single Sign-On (SSO) Endpoint. Accepts Deflate+Base64 (HTTP-Redirect) or Base64 (HTTP-POST) encoded SAMLRequest (AuthnRequest) from an external Service Provider, authenticates the user with adaptive MFA, and posts a signed SAML 2.0 Assertion back to the SP's ACS URL.

Request Parameters
Parameter Type Required Description & Constraints
SAMLRequest Query / Form string (Base64) Required Encoded SAML 2.0 <samlp:AuthnRequest> XML payload.
RelayState Query / Form string Optional Opaque state token preserved and echoed back to the SP's Assertion Consumer Service (ACS) URL.
SigAlg Query string (URI) Optional Detached signature algorithm URI when using HTTP-Redirect binding.
Signature Query string (Base64) Optional Detached cryptographic signature over SAMLRequest&RelayState&SigAlg.
Response Fields & Schema
Field Type Description
SAMLResponse HTML Form POST Base64-encoded signed <samlp:Response> and <saml:Assertion> auto-submitted to the SP's registered ACS URL.
RelayState HTML Form POST Original RelayState parameter.
Sample Request
POST https://{your-tenant}.sso.id/auth/Saml/Login
Content-Type: application/x-www-form-urlencoded

SAMLRequest=PHNhbWxwOkF1dGhuUmVxdWVzdCB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIi...&RelayState=%2Fdashboard
Expected Response 200 OK
<!-- Auto-submitted HTTP-POST Binding Form to Service Provider ACS -->
<form method="post" action="https://sp.example.com/saml/acs">
  <input type="hidden" name="SAMLResponse" value="PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wi..." />
  <input type="hidden" name="RelayState" value="/dashboard" />
</form>
POST https://{your-tenant}.sso.id/auth/saml/acs
SAML 2.0 Response

SAML 2.0 Service Provider Assertion Consumer Service (ACS) Endpoint (when SSO.ID acts as the Federation Broker for external SAML IdPs like Okta, Entra ID, or OneLogin). Verifies the external IdP's XML signature, audience restriction, and validity window, executes JIT provisioning, and issues SSO.ID tokens.

Request Parameters
Parameter Type Required Description & Constraints
SAMLResponse Form / Query string (Base64) Required Base64-encoded signed SAML 2.0 Response from the external enterprise IdP.
RelayState Form / Query string Optional Encrypted correlation state containing the originating OIDC/OAuth2 transaction context.
Response Fields & Schema
Field Type Description
Location Header (302) Completes federation handshake and redirects user with an authorization code to the requesting application's redirect_uri.
Sample Request
POST https://{your-tenant}.sso.id/auth/saml/acs
Content-Type: application/x-www-form-urlencoded

SAMLResponse=PHNhbWxwOlJlc3BvbnNlIElEPSJfaWQ5OTE4Mjci...&RelayState=state_correlation_88192
Expected Response 302 Found
HTTP/1.1 302 Found
Location: https://crm.cloudpulse.io/callback?code=authcode_federated_881920&state=st_88192a
GET / POST https://{your-tenant}.sso.id/auth/saml/logout
SAML 2.0 SLO

SAML 2.0 Single Logout (SLO) Endpoint (also aliased at /saml/slo and /auth/saml/slo). Processes inbound LogoutRequest or LogoutResponse messages and terminates federated sessions.

Request Parameters
Parameter Type Required Description & Constraints
SAMLRequest Query / Form string (Base64) Optional Encoded <samlp:LogoutRequest> XML initiating Single Logout.
SAMLResponse Query / Form string (Base64) Optional Encoded <samlp:LogoutResponse> XML confirming Single Logout completion.
RelayState Query / Form string Optional Opaque state token.
Response Fields & Schema
Field Type Description
SAMLResponse 302 Redirect / POST Signed <samlp:LogoutResponse> returned to the initiating party's SLO endpoint.
Sample Request
GET https://{your-tenant}.sso.id/auth/saml/logout?SAMLRequest=fZJNT8MwDIb%2FCpV7...&RelayState=slo_01
Expected Response 302 Found
HTTP/1.1 302 Found
Location: https://sp.example.com/saml/slo?SAMLResponse=fZLLTsMwEEV%2FZfI...&RelayState=slo_01

4. SCIM 2.0 Automated Provisioning Endpoints (RFC 7643 / 7644)

Automated inbound workforce directory synchronization for Users and Groups from Okta, Microsoft Entra ID, OneLogin, and Rippling. Available both at the tenant root (/api/scim/v2/*) and scoped per connection (/api/scim/v2/connections/{connectionId}/*).

POST https://{your-tenant}.sso.id/api/scim/v2/Users
SCIM 2.0 Bearer Token

RFC 7643 / 7644 SCIM 2.0 User Provisioning Endpoint. Allows enterprise workforce directories (Okta, Microsoft Entra ID, OneLogin, Rippling) to automatically provision, update (PUT / PATCH /api/scim/v2/Users/{id}), query (GET /api/scim/v2/Users?filter=userName eq "..."), or deprovision (DELETE /api/scim/v2/Users/{id}) users.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required SCIM 2.0 Bearer token (Bearer scim_tok_...) generated in Tenant or Connection settings.
schemas Body array Required Must include ["urn:ietf:params:scim:schemas:core:2.0:User"].
userName Body string Required Unique user identifier (typically primary work email address).
externalId Body string Optional Immutable identifier from the upstream HRIS / Identity Provider.
name Body object Required SCIM Name object containing givenName, familyName, and formatted.
displayName Body string Optional Full display name.
emails Body array Required Array of email objects: [{ "value": "...", "type": "work", "primary": true }].
phoneNumbers Body array Optional Array of phone objects: [{ "value": "...", "type": "work" }].
active Body boolean Optional Set to true to enable sign-in; set to false via PATCH to immediately suspend and revoke sessions.
Response Fields & Schema
Field Type Description
schemas array SCIM 2.0 Core User schema URI.
id string (UUID) Generated SSO.ID User UUID.
externalId string Echoed upstream externalId.
userName string Canonical username/email.
active boolean Provisioned active status.
meta ScimMeta SCIM resource metadata (resourceType, created, lastModified, location).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/scim/v2/Users" \
  -H "Authorization: Bearer scim_tok_9918273645abcdef" \
  -H "Content-Type: application/scim+json" \
  -d '{
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
    "externalId": "okta_usr_00u1928374",
    "userName": "[email protected]",
    "name": {
      "givenName": "Sarah",
      "familyName": "Connor",
      "formatted": "Sarah Connor"
    },
    "emails": [
      { "value": "[email protected]", "type": "work", "primary": true }
    ],
    "active": true
  }'
Expected Response 201 Created
{
  "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
  "id": "usr_77112233-4455-4667-8899-aabbccddeeff",
  "externalId": "okta_usr_00u1928374",
  "userName": "[email protected]",
  "name": {
    "givenName": "Sarah",
    "familyName": "Connor",
    "formatted": "Sarah Connor"
  },
  "active": true,
  "meta": {
    "resourceType": "User",
    "created": "2026-11-19T12:45:00Z",
    "lastModified": "2026-11-19T12:45:00Z",
    "location": "https://{your-tenant}.sso.id/api/scim/v2/Users/usr_77112233-4455-4667-8899-aabbccddeeff"
  }
}
POST https://{your-tenant}.sso.id/api/scim/v2/Groups
SCIM 2.0 Bearer Token

RFC 7643 / 7644 SCIM 2.0 Group Provisioning Endpoint. Enables external IdPs (Okta, Microsoft Entra ID) to create, synchronize (PUT /api/scim/v2/Groups/{id}), query (GET /api/scim/v2/Groups), and delete (DELETE /api/scim/v2/Groups/{id}) groups and their member lists.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required SCIM 2.0 Bearer token (Bearer scim_tok_...) generated in Tenant or Connection settings.
schemas Body array Required Must include ["urn:ietf:params:scim:schemas:core:2.0:Group"].
displayName Body string Required Group display name.
members Body array Optional Array of member objects: [{ "value": "usr_...", "display": "Sarah Connor" }].
Response Fields & Schema
Field Type Description
schemas array SCIM 2.0 Core Group schema URI.
id string (UUID) Generated SSO.ID Group UUID.
displayName string Group display name.
members array Synchronized group members.
meta ScimMeta SCIM resource metadata.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/scim/v2/Groups" \
  -H "Authorization: Bearer scim_tok_9918273645abcdef" \
  -H "Content-Type: application/scim+json" \
  -d '{
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
    "displayName": "Okta-Cloud-Architects",
    "members": [
      {
        "value": "usr_77112233-4455-4667-8899-aabbccddeeff",
        "display": "Sarah Connor"
      }
    ]
  }'
Expected Response 201 Created
{
  "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
  "id": "grp_55443322-1100-4998-8776-655443322110",
  "displayName": "Okta-Cloud-Architects",
  "members": [
    {
      "value": "usr_77112233-4455-4667-8899-aabbccddeeff",
      "display": "Sarah Connor"
    }
  ],
  "meta": {
    "resourceType": "Group",
    "created": "2026-11-19T12:52:00Z",
    "location": "https://{your-tenant}.sso.id/api/scim/v2/Groups/grp_55443322-1100-4998-8776-655443322110"
  }
}

5. Applications, App Pages (Menus) & Backend API Registry

Manage Tier-2 SSO Applications, linked Identity Connections, MFA factor overrides, hierarchical App Pages (navigation menus), and registered backend API routes.

GET https://{your-tenant}.sso.id/api/applications
Bearer JWT

Lists all SSO Applications registered in the active tenant workspace, including their protocol settings, client credentials, and linked roles/MFA factors.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
applicationId string (UUID) Unique application UUID.
name string Application display name.
applicationType string Application architecture type (SPA, WEB, MOBILE, M2M).
authenticationProtocol string Configured protocol (OIDC, OAUTH2, SAML2, PASSWORD).
clientID string OAuth 2.0 / OIDC public Client ID.
replyURL string Comma-separated or primary OAuth Redirect URI / SAML ACS URL.
logoutURL string Post-logout Redirect URI / SAML SLO URL.
homePageURL string Application base landing page URL.
isDefaultAuthenticationEnabled boolean Whether username/password directory login is enabled.
isSignupEnabled boolean Whether public self-registration is enabled for this application.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/applications" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "applicationId": "app_7712b-90a1-4c23-8b11-001122334455",
    "name": "CloudPulse CRM",
    "applicationType": "SPA",
    "authenticationProtocol": "OIDC",
    "clientID": "cp_crm_prod_99182",
    "homePageURL": "https://crm.cloudpulse.io",
    "replyURL": "https://crm.cloudpulse.io/callback",
    "logoutURL": "https://crm.cloudpulse.io/logout",
    "isDefaultAuthenticationEnabled": true,
    "isSignupEnabled": false
  }
]
POST https://{your-tenant}.sso.id/api/applications
Bearer JWT

Creates a new Tier-2 Application in the tenant workspace and generates its OAuth 2.0 / OIDC Client ID, Client Secret, or SAML 2.0 Entity configuration. To update an existing application, send the same payload to PUT /api/applications/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
name Body string Required Display name of the application (1-150 characters).
applicationType Body string Required Architecture category: SPA, WEB, MOBILE, or M2M.
authenticationProtocol Body string Required Protocol: OIDC, OAUTH2, SAML2, or PASSWORD.
homePageURL Body string (URL) Optional Primary landing page URL of the application.
replyURL Body string (URL) Required Allowed OAuth 2.0 redirect_uri or SAML 2.0 Assertion Consumer Service (ACS) URL.
signOnURL Body string (URL) Optional Initiation URL used by the End-User App Launcher.
logoutURL Body string (URL) Optional Allowed post_logout_redirect_uri or SAML Single Logout URL.
identifier Body string Optional SAML 2.0 Service Provider Entity ID / Audience URI (required when authenticationProtocol=SAML2).
scopes Body string Optional Space-delimited OAuth/OIDC scopes (default: openid profile email roles offline_access).
signingAlgorithm Body integer Optional Token/Assertion signing algorithm (0 = RS256 / RSA-SHA256, 1 = HS256).
nameFormat Body string Optional SAML NameID format URI (e.g., urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress).
spCertificate Body string (Base64) Optional Optional SAML SP public X.509 certificate for encrypted assertions or signed AuthnRequests.
logo Body string Optional Logo URL or base64 image string.
primaryColor Body string Optional Hex brand color override (e.g., #ff6b35).
backgroundColor Body string Optional Hex background color override for the hosted login screen.
isDefaultAuthenticationEnabled Body boolean Optional Enable direct email/password authentication (default: true).
isSignupEnabled Body boolean Optional Allow self-service user registration on this application's login screen (default: false).
forceLoginAgain Body boolean Optional When true, forces re-authentication (prompt=login) on every launch.
scim20baseUrl Body string (URL) Optional Optional downstream application SCIM 2.0 endpoint for outbound user push.
applicationSettings Body string (JSON) Optional Serialized JSON containing Tier-2 override flags for MFA, token lifetimes, and security policies.
Response Fields & Schema
Field Type Description
applicationId string (UUID) Generated unique Application UUID.
clientID string Generated OAuth 2.0 / OIDC Client ID.
clientSecret string Generated Client Secret (store securely).
name string Application name.
authenticationProtocol string Configured protocol.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/applications" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "CloudPulse Billing Portal",
    "applicationType": "WEB",
    "authenticationProtocol": "OIDC",
    "homePageURL": "https://billing.cloudpulse.io",
    "replyURL": "https://billing.cloudpulse.io/api/auth/callback",
    "logoutURL": "https://billing.cloudpulse.io",
    "scopes": "openid profile email roles offline_access",
    "primaryColor": "#ff6b35",
    "isDefaultAuthenticationEnabled": true,
    "isSignupEnabled": false
  }'
Expected Response 201 Created
{
  "applicationId": "app_c4190e12-88b1-4920-9a11-77889900aabb",
  "name": "CloudPulse Billing Portal",
  "applicationType": "WEB",
  "authenticationProtocol": "OIDC",
  "clientID": "cp_billing_881920a",
  "clientSecret": "sec_9918273645abcdef0192837465",
  "replyURL": "https://billing.cloudpulse.io/api/auth/callback",
  "createdOn": "2026-11-19T12:10:00Z"
}
POST https://{your-tenant}.sso.id/api/applications/{id}/connections
Bearer JWT

Enables an external Identity Provider Connection (Google, GitHub, Microsoft Entra ID, Okta SAML/OIDC) for a specific Application. Use GET /api/applications/{applicationId}/connections to list linked connections, and DELETE /api/applications/{applicationId}/connections/{connectionId} to unlink.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Application UUID.
applicationId Body string (UUID) Required Target Application UUID.
connectionId Body string (UUID) Required UUID of the Connection to enable on this application.
enableAutoProvisioning Body boolean Optional When true, users authenticating via this connection are automatically provisioned into this application via JIT.
Response Fields & Schema
Field Type Description
applicationId string (UUID) Application UUID.
connectionId string (UUID) Linked Connection UUID.
enableAutoProvisioning boolean JIT provisioning state.
createdOn string (ISO 8601) Link creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/applications/app_7712b/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "connectionId": "con_google_oauth2_01",
    "enableAutoProvisioning": true
  }'
Expected Response 200 OK
{
  "applicationId": "app_7712b",
  "connectionId": "con_google_oauth2_01",
  "enableAutoProvisioning": true,
  "createdOn": "2026-11-19T12:15:00Z"
}
PUT https://{your-tenant}.sso.id/api/applications/{applicationId}/available-factors
Bearer JWT

Configures the MFA factors (TOTP Authenticator, Email OTP, SMS OTP, FIDO2 Passkey) enabled and enforced specifically for this Tier-2 Application. Use GET /api/applications/{applicationId}/available-factors to inspect current application MFA factors.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
applicationId Path string (UUID) Required Target Application UUID.
factors Body array Required Array of factor configuration objects specifying factorId, factorType (TOTP, EMAIL, SMS, PASSKEY), and isEnabled (boolean).
Response Fields & Schema
Field Type Description
status boolean True if application MFA factors were updated.
factors array Updated list of active MFA factors for the application.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/applications/app_7712b/available-factors" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "factors": [
      { "factorId": 1, "factorType": "TOTP", "isEnabled": true },
      { "factorId": 2, "factorType": "PASSKEY", "isEnabled": true },
      { "factorId": 3, "factorType": "EMAIL", "isEnabled": false }
    ]
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "Application MFA factors updated successfully."
}
POST https://{your-tenant}.sso.id/api/applications/{id}/users
Bearer JWT

Assigns a directory User to an Application along with an initial Application Role. Use GET /api/applications/{id}/users to list assigned users and DELETE /api/applications/{applicationId}/users/{userId} to revoke access.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Application UUID.
roleId Query string (UUID) Optional Optional initial Application Role UUID to grant to the user.
applicationId Body string (UUID) Required Target Application UUID.
userId Body string (UUID) Required User UUID to assign to the application.
Response Fields & Schema
Field Type Description
applicationId string (UUID) Application UUID.
userId string (UUID) Assigned User UUID.
createdOn string (ISO 8601) Assignment timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/applications/app_7712b/users?roleId=rol_3310a" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
  }'
Expected Response 200 OK
{
  "applicationId": "app_7712b",
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
  "createdOn": "2026-11-19T12:20:00Z"
}
GET https://{your-tenant}.sso.id/api/applications/metadata
Bearer JWT

Downloads the SAML 2.0 Identity Provider Federation Metadata XML document for the specified application. To download the raw X.509 signing certificate (.cer), call GET /api/applications/certificate?appId={appId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
appId Query string (UUID) Required Application UUID whose SAML 2.0 IdP metadata or certificate should be generated.
host Query string Optional Optional custom domain host override.
Response Fields & Schema
Field Type Description
EntityDescriptor XML Standard OASIS SAML 2.0 md:EntityDescriptor document containing IDPSSODescriptor, X.509 KeyDescriptor, SingleSignOnService, and SingleLogoutService bindings.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/applications/metadata?appId=app_7712b" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://{your-tenant}.sso.id/auth/saml/app_7712b">
  <md:IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
    <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://{your-tenant}.sso.id/auth/Saml/Login" />
    <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://{your-tenant}.sso.id/auth/saml/logout" />
  </md:IDPSSODescriptor>
</md:EntityDescriptor>
GET https://{your-tenant}.sso.id/api/applications/{id}/menus
Bearer JWT

Retrieves the complete hierarchical App Pages & Navigation Menus tree registered for a specific Application, sorted by sortOrder.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Application UUID.
Response Fields & Schema
Field Type Description
menuId string (UUID) Unique Menu / App Page UUID.
applicationId string (UUID) Parent Application UUID.
parentId string (UUID) Parent Menu UUID for nested submenu items (null for top-level pages).
menuTitle string Display label shown in the application's navigation sidebar.
menuUrl string Frontend route path (e.g., /dashboard, /billing/invoices).
menuDescription string Description of the page's purpose.
sortOrder integer Numeric display order within the same hierarchy level.
isCategory boolean When true, acts as a non-clickable sidebar section group header.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/applications/app_7712b/menus" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "menuId": "mnu_dashboard_01",
    "applicationId": "app_7712b",
    "parentId": null,
    "menuTitle": "Executive Overview",
    "menuUrl": "/dashboard",
    "menuDescription": "Main KPI dashboard",
    "sortOrder": 1,
    "isCategory": false
  },
  {
    "menuId": "mnu_invoices_01",
    "applicationId": "app_7712b",
    "parentId": null,
    "menuTitle": "Invoices & Billing",
    "menuUrl": "/invoices",
    "menuDescription": "Customer invoice ledger",
    "sortOrder": 2,
    "isCategory": false
  }
]
POST https://{your-tenant}.sso.id/api/applications/{id}/menus
Bearer JWT

Creates a new App Page or category node in the application's menu hierarchy. To update an existing node, call PUT /api/applications/{appId}/menus/{menuId}; to delete, call DELETE /api/applications/{id}/menus/{menuId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Application UUID.
applicationId Body string (UUID) Required Target Application UUID.
menuTitle Body string Required Display title of the page or category (1-120 characters).
menuUrl Body string Optional Frontend router path (e.g., /reports/audit). Optional when isCategory=true.
parentId Body string (UUID) Optional Optional parent menuId to nest this item under.
sortOrder Body integer Optional Display sort index (default: 0).
menuDescription Body string Optional Administrative description of the page.
isCategory Body boolean Optional Set to true for section headers, or false for navigable routes.
Response Fields & Schema
Field Type Description
menuId string (UUID) Generated Menu UUID.
applicationId string (UUID) Application UUID.
menuTitle string Menu title.
menuUrl string Menu route path.
sortOrder integer Sort order.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/applications/app_7712b/menus" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "menuTitle": "Refund Approvals",
    "menuUrl": "/billing/refunds",
    "parentId": "mnu_invoices_01",
    "sortOrder": 1,
    "menuDescription": "Approve or reject customer refund requests",
    "isCategory": false
  }'
Expected Response 201 Created
{
  "menuId": "mnu_refunds_02",
  "applicationId": "app_7712b",
  "parentId": "mnu_invoices_01",
  "menuTitle": "Refund Approvals",
  "menuUrl": "/billing/refunds",
  "sortOrder": 1,
  "isCategory": false,
  "createdOn": "2026-11-19T12:55:00Z"
}
POST https://{your-tenant}.sso.id/api/applications/{id}/apis
Bearer JWT

Registers a backend API endpoint under an Application and optionally links it to an App Page (menuId) for unified frontend-to-backend RBAC enforcement. Use GET /api/applications/{id}/apis to list APIs, PUT /api/applications/{appId}/apis/{apiId} to update, and DELETE /api/applications/{appId}/apis/{apiId} to delete.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Application UUID.
applicationId Body string (UUID) Required Target Application UUID.
apiName Body string Required Friendly operation name (e.g., Approve Refund).
apiUrl Body string Required Backend route template (e.g., /api/v1/refunds/{id}/approve).
httpMethod Body string Required HTTP verb (GET, POST, PUT, PATCH, DELETE).
menuId Body string (UUID) Optional Optional menuId linking this API route to an App Page.
apiDescription Body string Optional Optional documentation for the endpoint.
sortOrder Body integer Optional Sort order index.
Response Fields & Schema
Field Type Description
apiId string (UUID) Generated Application API UUID.
applicationId string (UUID) Application UUID.
apiName string API name.
apiUrl string API route template.
httpMethod string HTTP method.
menuId string (UUID) Linked App Page UUID.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/applications/app_7712b/apis" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "apiName": "Approve Customer Refund",
    "apiUrl": "/api/v1/refunds/{id}/approve",
    "httpMethod": "POST",
    "menuId": "mnu_refunds_02",
    "apiDescription": "Executes a Stripe refund payout",
    "sortOrder": 1
  }'
Expected Response 201 Created
{
  "apiId": "api_99182736-45ab-4cde-8f01-23456789abcd",
  "applicationId": "app_7712b",
  "apiName": "Approve Customer Refund",
  "apiUrl": "/api/v1/refunds/{id}/approve",
  "httpMethod": "POST",
  "menuId": "mnu_refunds_02",
  "sortOrder": 1
}

6. External Identity Connections & Federation Broker

Configure and monitor external OAuth 2.0 social logins, OpenID Connect enterprise directories, and SAML 2.0 federations with automated JIT provisioning and Group-to-Role claim mappings.

GET https://{your-tenant}.sso.id/api/connections
Bearer JWT

Lists all configured external Identity Provider (IdP) Connections in the tenant workspace across OAuth 2.0 social providers, OpenID Connect enterprise directories, and SAML 2.0 federations.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
connectionId string (UUID) Unique Connection identifier.
connectionName string Display name of the identity provider connection.
description string Administrative description.
protocolType integer Protocol identifier (1 = OAuth 2.0, 2 = OpenID Connect, 3 = SAML 2.0).
connectionType integer Provider category (1 = Social/Template, 2 = Custom Enterprise).
clientId string Configured OAuth 2.0 / OIDC Client ID.
entityId string Configured SAML 2.0 IdP Issuer / Entity ID.
metadataUrl string OIDC Discovery URL or SAML Metadata URL.
signInUrl string IdP authorization or SSO login endpoint.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "connectionId": "con_88a12b34-c5d6-4e7f-8a9b-001122334455",
    "connectionName": "Acme Corp Okta SAML",
    "description": "Enterprise workforce SAML 2.0 IdP for Acme Corp",
    "protocolType": 3,
    "connectionType": 2,
    "entityId": "http://www.okta.com/exk192837465",
    "signInUrl": "https://acme.okta.com/app/ssoid/exk192837465/sso/saml"
  }
]
POST https://{your-tenant}.sso.id/api/connections
Bearer JWT

Creates a new OAuth 2.0, OpenID Connect, or SAML 2.0 Identity Connection. To update an existing connection, send the updated object to PUT /api/connections/{id}; to delete, call DELETE /api/connections/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
connectionName Body string Required Unique display name for the connection (e.g., Google Workspace, Acme Entra ID).
description Body string Optional Optional notes describing the target organization or IdP.
protocolType Body integer Required Federation protocol: 1 = OAuth 2.0, 2 = OpenID Connect (OIDC), 3 = SAML 2.0.
connectionType Body integer Optional Provider type: 1 = Built-in Social Template, 2 = Enterprise Custom.
clientId Body string Optional OAuth 2.0 / OIDC Client ID issued by the external IdP (required for protocolType 1 & 2).
clientSecret Body string Optional OAuth 2.0 / OIDC Client Secret issued by the external IdP.
metadataUrl Body string (URL) Optional OIDC /.well-known/openid-configuration URL or SAML 2.0 IdP Metadata XML URL.
signInUrl Body string (URL) Optional External IdP Authorization Endpoint or SAML SingleSignOnService URL.
signOutUrl Body string (URL) Optional External IdP Logout Endpoint or SAML SingleLogoutService URL.
accessTokenUrl Body string (URL) Optional OAuth 2.0 / OIDC Token Endpoint URL.
userInfoUrl Body string (URL) Optional OAuth 2.0 / OIDC UserInfo Endpoint URL.
jwksUrl Body string (URL) Optional OIDC JSON Web Key Set (JWKS) URL for ID Token signature validation.
entityId Body string Optional SAML 2.0 IdP Entity ID / Issuer URI (required for protocolType=3).
x509SigningCertificate Body string (Base64) Optional PEM/Base64 X.509 public signing certificate from the SAML IdP.
signingAlgorithm Body integer Optional SAML signature algorithm (0 = RSA-SHA256, 1 = RSA-SHA1).
protocolBinding Body integer Optional SAML binding (0 = HTTP-POST, 1 = HTTP-Redirect).
nameIdFormat Body string Optional SAML NameID format (default: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress).
signAuthnRequest Body boolean Optional Sign outbound SAML AuthnRequest messages (default: true).
wantAssertionSigned Body boolean Optional Require cryptographic signature on incoming SAML Assertions (default: true).
wantResponseSigned Body boolean Optional Require signature on top-level SAML Response envelope (default: false).
forceAuthn Body boolean Optional Force external IdP to re-authenticate user cleanly (default: false).
attributes Body string (JSON) Optional Serialized JSON mapping external IdP claims/groups to SSO.ID user attributes and Roles.
Response Fields & Schema
Field Type Description
connectionId string (UUID) Newly created Connection UUID.
connectionName string Connection display name.
protocolType integer Configured protocol type.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "connectionName": "Acme Microsoft Entra ID",
    "description": "OIDC enterprise federation for Acme Corp",
    "protocolType": 2,
    "connectionType": 2,
    "metadataUrl": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration",
    "clientId": "00112233-4455-6677-8899-aabbccddeeff",
    "clientSecret": "entra_secret_value_xyz",
    "attributes": "{\"email\":\"email\",\"firstName\":\"given_name\",\"lastName\":\"family_name\",\"groups\":\"groups\"}"
  }'
Expected Response 201 Created
{
  "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
  "connectionName": "Acme Microsoft Entra ID",
  "protocolType": 2,
  "createdOn": "2026-11-19T12:25:00Z"
}
GET https://{your-tenant}.sso.id/api/connections/defaults
Bearer JWT

Returns the catalog of pre-configured OAuth 2.0 and OIDC social/enterprise templates (Google, GitHub, Microsoft, Apple, LinkedIn, Facebook, Okta, GitLab) with pre-populated authorization, token, and userinfo endpoint URLs.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
id integer Template identifier.
name string Provider name (e.g. Google, GitHub, Microsoft).
loginUrl string (URL) Pre-configured OAuth 2.0 Authorization Endpoint.
accessTokenUrl string (URL) Pre-configured OAuth 2.0 Token Endpoint.
userInfoUrl string (URL) Pre-configured UserInfo Endpoint.
scope string Recommended default scopes.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/connections/defaults" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "id": 1,
    "name": "Google",
    "loginUrl": "https://accounts.google.com/o/oauth2/v2/auth",
    "accessTokenUrl": "https://oauth2.googleapis.com/token",
    "userInfoUrl": "https://openidconnect.googleapis.com/v1/userinfo",
    "scope": "openid profile email"
  }
]
GET https://{your-tenant}.sso.id/api/connections/health
Bearer JWT

Performs a live health check across all configured Connections in the tenant, verifying OIDC Discovery/JWKS reachability, SAML certificate expiration windows, and SCIM sync error states.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
connectionId string (UUID) Connection UUID.
name string Connection display name.
type string Protocol type label (OIDC, OAUTH2, SAML2).
status string Health status (Healthy, Degraded, CertificateExpiring, Error).
syncedUsers integer (int64) Total users provisioned through this connection.
lastSync string (ISO 8601) Most recent federation or SCIM sync timestamp.
errorMessage string Diagnostic details if status is not Healthy.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/connections/health" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
    "name": "Acme Microsoft Entra ID",
    "type": "OIDC",
    "status": "Healthy",
    "syncedUsers": 412,
    "lastSync": "2026-11-19T11:58:00Z",
    "errorMessage": null
  }
]
POST https://{your-tenant}.sso.id/api/connections
Bearer JWT

Programmatically provisions an Enterprise OpenID Connect (OIDC) Connection (such as Microsoft Entra ID, Okta, PingFederate, or Keycloak) with automated Discovery URL resolution and JIT Group-to-Role mappings.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
connectionName Body string Required Display name for the OIDC connection.
protocolType Body integer Required Must be set to 2 for OpenID Connect.
metadataUrl Body string (URL) Required External IdP's /.well-known/openid-configuration discovery URL.
clientId Body string Required Client ID registered in the external OIDC IdP.
clientSecret Body string Required Client Secret registered in the external OIDC IdP.
signInUrl Body string (URL) Optional Authorization endpoint (auto-populated when metadataUrl is provided).
accessTokenUrl Body string (URL) Optional Token endpoint (auto-populated when metadataUrl is provided).
userInfoUrl Body string (URL) Optional UserInfo endpoint (auto-populated when metadataUrl is provided).
jwksUrl Body string (URL) Optional JWKS endpoint (auto-populated when metadataUrl is provided).
attributes Body string (JSON) Optional JSON claim and group mapping configuration.
Response Fields & Schema
Field Type Description
connectionId string (UUID) Generated Connection UUID (used in callback https://{your-tenant}.sso.id/auth/oidc/callback and direct routing ?connectionId=...).
connectionName string Configured connection name.
protocolType integer 2 (OIDC).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "connectionName": "Global Retail Okta OIDC",
    "protocolType": 2,
    "connectionType": 2,
    "metadataUrl": "https://globalretail.okta.com/.well-known/openid-configuration",
    "clientId": "0oa9918273645",
    "clientSecret": "okta_client_secret_99182",
    "attributes": "{\"email\":\"email\",\"firstName\":\"given_name\",\"lastName\":\"family_name\",\"roleMappings\":{\"Okta-Admins\":\"rol_admin_01\"}}"
  }'
Expected Response 201 Created
{
  "connectionId": "con_99182a3b-44c5-4d6e-8f90-aabbccddeeff",
  "connectionName": "Global Retail Okta OIDC",
  "protocolType": 2,
  "createdOn": "2026-11-19T12:30:00Z"
}

7. Account Self-Service, Directory Users, RBAC Roles & Groups

Complete identity lifecycle APIs covering self-service user profiles, the End-User App Launcher, active device session revocation, directory user management, application roles, menu CRUD permission matrices, and user groups.

GET https://{your-tenant}.sso.id/api/users/self
Bearer JWT

Retrieves the authenticated user's profile attributes, active language preference, MFA status, assigned application roles, and group memberships.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
userId string (UUID) Unique identifier of the authenticated user.
emailAddress string Primary verified email address.
firstName string User's given/first name.
lastName string User's family/last name.
displayName string Formatted full display name.
phoneNumber string Primary phone number in E.164 format.
mobileNumber string Mobile phone number used for SMS OTP delivery.
address string Street mailing address.
cityName string City or locality name.
countryName string Country name or ISO code.
zipCode string Postal or ZIP code.
gender string Optional gender attribute.
language string Preferred UI locale code (e.g., en-US, ar-SA, fr-FR, de-DE).
profileImage string URL or base64 data URI of the user's profile avatar.
isMultifactor boolean Indicates whether multi-factor authentication is enrolled and active for this user.
status integer Account status (1 = Active, 0 = Suspended, 2 = Invited).
userRole array Array of application roles assigned to the user.
usersGroups array Array of directory groups the user belongs to.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/self" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
  "emailAddress": "[email protected]",
  "firstName": "Liam",
  "lastName": "Mercer",
  "displayName": "Liam Mercer",
  "phoneNumber": "+14155550192",
  "mobileNumber": "+14155550192",
  "countryName": "United States",
  "cityName": "San Francisco",
  "language": "en-US",
  "isMultifactor": true,
  "status": 1,
  "userRole": [
    {
      "roleId": "rol_3310a",
      "roleName": "Support Specialist",
      "applicationId": "app_7712b",
      "applicationName": "CloudPulse CRM"
    }
  ]
}
PUT https://{your-tenant}.sso.id/api/users/{id}?isUserUpdate=true
Bearer JWT

Updates the authenticated user's self-service profile details, contact information, and preferred UI language.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required The authenticated user's userId.
isUserUpdate Query boolean Required Set to true when performing a self-service user profile update.
firstName Body string Required Updated first name (1-100 characters).
lastName Body string Required Updated last name (1-100 characters).
emailAddress Body string Required User's email address.
phoneNumber Body string Optional Primary telephone number.
mobileNumber Body string Optional Mobile number in E.164 format for SMS MFA.
address Body string Optional Mailing street address.
cityName Body string Optional City name.
countryName Body string Optional Country name.
zipCode Body string Optional Postal or ZIP code.
gender Body string Optional Optional gender indicator.
language Body string Optional Preferred UI language code (e.g., en-US, fr-FR, ar-SA).
Response Fields & Schema
Field Type Description
status boolean Indicates whether the profile update succeeded.
message string Human-readable status message.
data UserDTO The updated user profile record.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f?isUserUpdate=true" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Liam",
    "lastName": "Mercer",
    "emailAddress": "[email protected]",
    "phoneNumber": "+14155550199",
    "cityName": "Austin",
    "countryName": "United States",
    "language": "en-US"
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "User profile updated successfully.",
  "data": {
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "firstName": "Liam",
    "lastName": "Mercer",
    "cityName": "Austin",
    "language": "en-US"
  }
}
GET https://{your-tenant}.sso.id/api/users/current/applications
Bearer JWT

Returns all SSO Applications assigned to the currently authenticated user (directly, via Application Roles, or via User Groups/Organizations) to populate the End-User App Launcher chiclet grid.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
applicationId string (UUID) Unique identifier of the assigned application.
name string Display name of the application tile.
applicationType string Type of application (WEB, SPA, MOBILE, M2M).
authenticationProtocol string Configured SSO protocol (OIDC, OAUTH2, SAML2).
homePageURL string Application landing URL.
signOnURL string One-click SSO initiation URL for the App Launcher tile.
logo string Application icon URL or base64 data URI.
primaryColor string Hex color accent for the application tile.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/current/applications" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "applicationId": "app_7712b-90a1-4c23-8b11-001122334455",
    "name": "CloudPulse CRM",
    "applicationType": "SPA",
    "authenticationProtocol": "OIDC",
    "homePageURL": "https://crm.cloudpulse.io",
    "signOnURL": "https://crm.cloudpulse.io/sso/login",
    "logo": "https://cdn.cloudpulse.io/logos/crm.png",
    "primaryColor": "#ff6b35"
  }
]
GET https://{your-tenant}.sso.id/api/users/tenants
Bearer JWT

Lists all Tenant workspaces that the authenticated user owns or is a member of, powering the top-left Multi-Tenant Workspace Switcher.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
userId Query string (UUID) Optional Optional explicit user ID; defaults to the authenticated JWT subject.
Response Fields & Schema
Field Type Description
tenantId string (UUID) Unique identifier of the tenant workspace.
tenantName string Canonical tenant slug/name.
friendlyName string Display name of the workspace.
tenantDomain string Default subdomain (e.g. cloudpulse.us.sso.id).
customDomain string Verified custom domain if configured (e.g. auth.cloudpulse.io).
region string Data residency region (US or EU).
roleId string The user's administrative Tenant Role in this workspace.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/tenants" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "tenantName": "cloudpulse-us",
    "friendlyName": "CloudPulse Production (US)",
    "tenantDomain": "cloudpulse-us.us.sso.id",
    "customDomain": "login.cloudpulse.io",
    "region": "US",
    "roleId": "Owner"
  }
]
GET https://{your-tenant}.sso.id/api/users/{userId}/sessions
Bearer JWT

Lists all active browser and device sessions for the user, including IP address, user-agent, browser/OS fingerprint, and last-active timestamp.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
userId Path string (UUID) Required Target user UUID (or the authenticated user's own ID).
Response Fields & Schema
Field Type Description
sessionId string Unique identifier of the active session/refresh token.
userId string (UUID) User ID owning the session.
ipAddress string Client IPv4/IPv6 address recorded at sign-in.
browser string Parsed browser and OS summary (e.g., Chrome 131 on Windows 11).
userAgent string Raw HTTP User-Agent string.
createdOn string (ISO 8601) UTC timestamp when the session was established.
expiryDate string (ISO 8601) UTC expiration timestamp of the session.
isCurrentSession boolean True if this entry matches the caller's current token.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f/sessions" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "sessionId": "ses_44109ab8-12cd-4ef0-9911-aabbccddeeff",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "ipAddress": "198.51.100.42",
    "browser": "Chrome 131.0 on macOS",
    "createdOn": "2026-11-19T08:15:00Z",
    "expiryDate": "2026-11-26T08:15:00Z",
    "isCurrentSession": true
  }
]
DELETE https://{your-tenant}.sso.id/api/users/{userId}/sessions/{sessionId}
Bearer JWT

Immediately revokes a single active device session and invalidates its associated refresh tokens. To revoke all active sessions globally, call POST /api/users/{userId}/sessions/revoke-all.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
userId Path string (UUID) Required Target user UUID.
sessionId Path string Required Session identifier returned by GET /api/users/{userId}/sessions.
Response Fields & Schema
Field Type Description
status boolean True when the session has been terminated.
message string Confirmation message.
Sample Request
curl -X DELETE "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f/sessions/ses_44109ab8-12cd-4ef0-9911-aabbccddeeff" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "status": true,
  "message": "Session revoked successfully."
}
GET https://{your-tenant}.sso.id/api/users
Bearer JWT

Queries and paginates directory users in the tenant workspace with rich filtering by search keyword, status, assigned application, group, role, or creation date range. To retrieve a single user by UUID, call GET /api/users/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
page Query integer Optional 1-based page index (default: 1).
limit Query integer Optional Maximum records per page (default: 25, max: 200).
filter Query string Optional Case-insensitive search across email, first name, last name, and phone number.
order Query string Optional Sort expression (e.g., -CreatedOn, FirstName, EmailAddress).
status Query integer Optional Filter by account status: 1 = Active, 0 = Suspended/Locked, 2 = Pending Invitation.
applicationId Query string (UUID) Optional Filter users assigned to a specific Application UUID.
groupId Query string (UUID) Optional Filter users belonging to a specific Group UUID.
roleName Query string Optional Filter users holding a specific Role name.
startDate Query string (ISO 8601) Optional Filter users created on or after this UTC date.
endDate Query string (ISO 8601) Optional Filter users created on or before this UTC date.
Response Fields & Schema
Field Type Description
userId string (UUID) Unique directory User UUID.
emailAddress string Primary email address.
firstName string Given name.
lastName string Family name.
phoneNumber string Primary phone number.
status integer Account status (1 = Active, 0 = Suspended, 2 = Invited).
isMultifactor boolean Whether MFA is active for the user.
userSource string Onboarding source (Directory, Invite, SCIM, Google, SAML).
createdOn string (ISO 8601) Account creation UTC timestamp.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users?page=1&limit=25&filter=mercer&status=1" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "emailAddress": "[email protected]",
    "firstName": "Liam",
    "lastName": "Mercer",
    "phoneNumber": "+14155550192",
    "status": 1,
    "isMultifactor": true,
    "userSource": "Invite",
    "createdOn": "2026-10-12T14:22:00Z"
  }
]
POST https://{your-tenant}.sso.id/api/users
Bearer JWT

Creates a new directory user account directly with profile attributes and an initial password (validated against the active Tenant Password Policy). To update an existing user, call PUT /api/users/{id}; to delete, call DELETE /api/users/{userId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
emailAddress Body string Required Unique email address for the user.
firstName Body string Required User's first name.
lastName Body string Required User's last name.
password Body string Required Initial password meeting tenant complexity requirements.
phoneNumber Body string Optional Telephone number.
mobileNumber Body string Optional Mobile number in E.164 format for SMS MFA.
countryName Body string Optional Country name.
cityName Body string Optional City name.
address Body string Optional Street address.
zipCode Body string Optional Postal/ZIP code.
language Body string Optional Preferred locale (default: en-US).
status Body integer Optional Initial status (1 = Active, 0 = Suspended).
selectedRoleId Body string (UUID) Optional Optional initial Role ID to assign upon creation.
applicationId Body string (UUID) Optional Optional Application ID to link the user to immediately.
Response Fields & Schema
Field Type Description
userId string (UUID) Newly created User UUID.
emailAddress string User email address.
status integer Account status (1).
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/users" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "emailAddress": "[email protected]",
    "firstName": "Elena",
    "lastName": "Rostova",
    "password": "SsoId#2026!SecurePassword",
    "phoneNumber": "+14155550144",
    "countryName": "United States",
    "cityName": "Seattle",
    "status": 1
  }'
Expected Response 201 Created
{
  "userId": "usr_33445566-7788-499a-b00c-ddeeff112233",
  "emailAddress": "[email protected]",
  "firstName": "Elena",
  "lastName": "Rostova",
  "status": 1,
  "createdOn": "2026-11-19T12:40:00Z"
}
POST https://{your-tenant}.sso.id/api/users/invite
Bearer JWT

Creates a pending user record and dispatches a branded onboarding invitation email containing a one-time cryptographically signed activation link. To resend an unaccepted invitation, call POST /api/users/{userId}/resend-invite.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
email Body string Required Recipient email address to invite.
applicationId Body string (UUID) Optional Optional Application UUID to pre-assign to the invited user.
roleId Body string (UUID) Optional Optional Role UUID to grant upon invitation acceptance.
role Body string Optional Optional Role name if roleId is not specified.
Response Fields & Schema
Field Type Description
userId string (UUID) Created User UUID with status 2 (Invited).
email string Invited email address.
inviteSent boolean True when the SMTP invitation email was dispatched.
expiresAtUtc string (ISO 8601) Invitation link expiration timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/users/invite" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "applicationId": "app_7712b",
    "roleId": "rol_3310a"
  }'
Expected Response 200 OK
{
  "userId": "usr_88776655-4433-4221-a110-ffeeddccbbaa",
  "email": "[email protected]",
  "inviteSent": true,
  "expiresAtUtc": "2026-11-26T12:42:00Z"
}
POST https://{your-tenant}.sso.id/api/users/{userId}/roles
Bearer JWT

Assigns an Application Role to a user. Use GET /api/users/{userId}/roles?appId={appId} to list a user's roles, and DELETE /api/users/{userId}/roles/{roleId} to revoke a role.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
userId Path string (UUID) Required Target User UUID.
userId Body string (UUID) Required Target User UUID.
roleId Body string (UUID) Required Role UUID to assign.
applicationId Body string (UUID) Required Application UUID to which the role belongs.
Response Fields & Schema
Field Type Description
userId string (UUID) User UUID.
roleId string (UUID) Assigned Role UUID.
applicationId string (UUID) Application UUID.
createdOn string (ISO 8601) Assignment timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/users/usr_33445566/roles" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "usr_33445566",
    "roleId": "rol_3310a",
    "applicationId": "app_7712b"
  }'
Expected Response 200 OK
{
  "userId": "usr_33445566",
  "roleId": "rol_3310a",
  "applicationId": "app_7712b",
  "createdOn": "2026-11-19T12:43:00Z"
}
GET https://{your-tenant}.sso.id/api/roles
Bearer JWT

Lists all Application Roles configured in the tenant workspace. To filter roles for a specific Application only, call GET /api/roles/applications/{applicationId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
roleId string (UUID) Unique Role UUID.
applicationId string (UUID) Application UUID to which this role is scoped.
applicationName string Display name of the parent application.
roleName string Role identifier emitted in the JWT roles claim (e.g., BillingAdmin, SupportAgent).
roleDescription string Human-readable description of the role's responsibilities.
isDefault boolean When true, newly registered or JIT-provisioned users in this application automatically receive this role.
createdOn string (ISO 8601) Role creation UTC timestamp.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/roles/applications/app_7712b" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "roleId": "rol_3310a-11b2-4c3d-8e9f-001122334455",
    "applicationId": "app_7712b",
    "applicationName": "CloudPulse CRM",
    "roleName": "Support Specialist",
    "roleDescription": "Tier-1 customer support & ticket management access",
    "isDefault": true,
    "createdOn": "2026-10-01T10:00:00Z"
  }
]
POST https://{your-tenant}.sso.id/api/roles
Bearer JWT

Creates a new Application Role. To update an existing role, call PUT /api/roles/{roleId}; to delete a role, call DELETE /api/roles/{roleId}?appId={appId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
applicationId Body string (UUID) Required Target Application UUID.
roleName Body string Required Role name (1-100 characters, e.g., FinanceManager).
roleDescription Body string Optional Detailed description of the role.
isDefault Body boolean Optional Automatically assign this role to new users of the application (default: false).
canViewSetup Body boolean Optional Optional administrative capability flag.
canManageUsers Body boolean Optional Optional user management capability flag.
canManageRoles Body boolean Optional Optional role management capability flag.
Response Fields & Schema
Field Type Description
roleId string (UUID) Generated Role UUID.
applicationId string (UUID) Application UUID.
roleName string Created role name.
isDefault boolean Default assignment flag.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/roles" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "roleName": "Finance Manager",
    "roleDescription": "Full CRUD access to invoices, refunds, and financial reports",
    "isDefault": false
  }'
Expected Response 201 Created
{
  "roleId": "rol_99441122-3344-4556-8778-99aabbccddee",
  "applicationId": "app_7712b",
  "roleName": "Finance Manager",
  "roleDescription": "Full CRUD access to invoices, refunds, and financial reports",
  "isDefault": false,
  "createdOn": "2026-11-19T12:48:00Z"
}
PUT https://{your-tenant}.sso.id/api/roles/{roleId}/applications/{appId}/menu-access
Bearer JWT

Updates the hierarchical App Page CRUD permission matrix (viewAccess, addAccess, updateAccess, deleteAccess) for a Role within an Application. To fetch the current matrix, call GET /api/roles/{roleId}/applications/{appId}/menu-access.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
roleId Path string (UUID) Required Target Role UUID.
appId Path string (UUID) Required Target Application UUID.
Body Body array Required Array of menu permission objects.
[].menuId Body string (UUID) Required App Page / Menu node UUID.
[].parentId Body string (UUID) Optional Parent Menu node UUID (or null for root nodes).
[].viewAccess Body boolean Required Permits viewing and navigating to the page in the sidebar.
[].addAccess Body boolean Required Permits creating new records on the page.
[].updateAccess Body boolean Required Permits editing existing records on the page.
[].deleteAccess Body boolean Required Permits deleting records on the page.
[].isSelected Body boolean Optional Indicates whether the menu node is enabled for the role.
Response Fields & Schema
Field Type Description
status boolean True when the Role Menu CRUD matrix is saved.
updatedCount integer Number of menu permission nodes updated.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/roles/rol_99441122/applications/app_7712b/menu-access" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '[
    {
      "roleId": "rol_99441122",
      "applicationId": "app_7712b",
      "menuId": "mnu_invoices_01",
      "viewAccess": true,
      "addAccess": true,
      "updateAccess": true,
      "deleteAccess": false,
      "isSelected": true
    }
  ]'
Expected Response 200 OK
{
  "status": true,
  "updatedCount": 1,
  "message": "Role menu access permissions updated successfully."
}
PUT https://{your-tenant}.sso.id/api/roles/{roleId}/applications/{appId}/api-access
Bearer JWT

Updates the backend API endpoint authorization list for a Role. Use GET /api/roles/{roleId}/applications/{appId}/api-access to retrieve the current allowed API endpoints for the role.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
roleId Path string (UUID) Required Target Role UUID.
appId Path string (UUID) Required Target Application UUID.
Body Body array Required Array of API permission mappings.
[].apiId Body string (UUID) Required Registered Application API endpoint UUID.
[].hasAccess Body boolean Required Set to true to authorize the role to call this backend API route.
Response Fields & Schema
Field Type Description
status boolean True when API route permissions are updated.
updatedCount integer Count of API access rules saved.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/roles/rol_99441122/applications/app_7712b/api-access" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '[
    {
      "roleId": "rol_99441122",
      "applicationId": "app_7712b",
      "apiId": "api_create_invoice_01",
      "hasAccess": true
    }
  ]'
Expected Response 200 OK
{
  "status": true,
  "updatedCount": 1,
  "message": "Role API access rules updated successfully."
}
GET https://{your-tenant}.sso.id/api/groups
Bearer JWT

Lists all User Groups in the tenant directory along with their linked applications, roles, and member counts. Call GET /api/groups/{id} to retrieve a single group's detailed membership and application mappings.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
groupId string (UUID) Unique Group UUID.
groupName string Display name of the group (e.g., Platform Engineering, EMEA Sales).
application_Group array Applications and roles granted to members of this group.
group_User array Users assigned to this group.
createdOn string (ISO 8601) Creation UTC timestamp.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/groups" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "groupId": "grp_66112233-4455-4667-8899-aabbccddeeff",
    "groupName": "Customer Success Cohort",
    "application_Group": [
      { "applicationId": "app_7712b", "applicationName": "CloudPulse CRM" }
    ],
    "createdOn": "2026-10-15T09:00:00Z"
  }
]
POST https://{your-tenant}.sso.id/api/groups
Bearer JWT

Creates a new directory User Group. To update a group, call PUT /api/groups/{id}; to delete a group, call DELETE /api/groups/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
groupName Body string Required Unique name of the group (1-150 characters).
application_Group Body array Optional Optional initial list of applications to grant to this group.
group_Role Body array Optional Optional initial list of roles to grant to members of this group.
Response Fields & Schema
Field Type Description
groupId string (UUID) Newly created Group UUID.
groupName string Group name.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/groups" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "groupName": "DevSecOps Engineers"
  }'
Expected Response 201 Created
{
  "groupId": "grp_99887766-5544-4332-9110-aabbccddeeff",
  "groupName": "DevSecOps Engineers",
  "createdOn": "2026-11-19T12:50:00Z"
}
POST https://{your-tenant}.sso.id/api/groups/{id}/users/{userId}
Bearer JWT

Adds a User to a Group. All Applications and Roles linked to the Group are immediately inherited by the user. Use GET /api/groups/{id}/users to list members and DELETE /api/groups/{id}/users/{userId} to remove a member.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Group UUID.
userId Path string (UUID) Required User UUID to add to the group.
groupId Body string (UUID) Required Target Group UUID.
userId Body string (UUID) Required User UUID to add.
Response Fields & Schema
Field Type Description
groupId string (UUID) Group UUID.
userId string (UUID) Added User UUID.
createdOn string (ISO 8601) Membership timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/groups/grp_99887766/users/usr_33445566" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "groupId": "grp_99887766",
    "userId": "usr_33445566"
  }'
Expected Response 200 OK
{
  "groupId": "grp_99887766",
  "userId": "usr_33445566",
  "createdOn": "2026-11-19T12:51:00Z"
}

8. B2B Organizations (Tier 3) & Organization Units (Tier 4)

Model multi-tenant B2B customer organizations and hierarchical organizational units (departments/divisions) with co-branded login screens, dedicated SAML/OIDC IdP routing, and granular MFA/security overrides.

GET https://{your-tenant}.sso.id/api/organizations
Bearer JWT

Lists all Tier-3 B2B Customer Organizations in the tenant workspace. To fetch a single organization by ID, call GET /api/organizations/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
organizationId string (UUID) Unique Organization UUID.
name string B2B customer organization name.
logo string Co-branded logo URL or base64 data URI.
primaryColor string Hex primary brand color for the organization's login portal.
backgroundColor string Hex background color override.
status boolean Active/suspended status of the organization.
isDefaultAuthenticationEnabled boolean Whether standard password login is allowed alongside federated IdPs.
organizationSettings string (JSON) Serialized Tier-3 policy override configuration.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/organizations" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "organizationId": "org_5512a-99b1-4c22-8d33-112233445566",
    "name": "Acme Global Logistics",
    "logo": "https://cdn.acmelogistics.com/logo.png",
    "primaryColor": "#0284c7",
    "backgroundColor": "#f8fafc",
    "status": true,
    "isDefaultAuthenticationEnabled": false
  }
]
POST https://{your-tenant}.sso.id/api/organizations
Bearer JWT

Creates a new Tier-3 B2B Customer Organization with optional custom login branding and security policy overrides. To update an existing organization, call PUT /api/organizations/{id}; to delete, call DELETE /api/organizations/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
name Body string Required Customer organization display name (1-150 characters).
logo Body string Optional Organization logo URL or base64 image string.
primaryColor Body string Optional Hex accent color (e.g., #0284c7).
backgroundColor Body string Optional Hex background color for hosted login screen.
status Body boolean Optional Set to true (Active) or false (Suspended).
isDefaultAuthenticationEnabled Body boolean Optional Allow email/password authentication in addition to federated SAML/OIDC connections.
organizationSettings Body string (JSON) Optional Serialized JSON containing Tier-3 policy overrides (overrideBranding, overrideMfa, overrideSecurity, allowed IP CIDRs, session timeouts).
Response Fields & Schema
Field Type Description
organizationId string (UUID) Newly created Organization UUID (pass as &organizationId=... to /oauth/authorize for org-scoped login).
name string Organization name.
status boolean Organization active status.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organizations" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Stark Aerospace Corp",
    "logo": "https://cdn.starkaero.com/brand/shield.png",
    "primaryColor": "#dc2626",
    "backgroundColor": "#ffffff",
    "status": true,
    "isDefaultAuthenticationEnabled": false,
    "organizationSettings": "{\"overrideBranding\":true,\"overrideMfa\":true,\"requireMfa\":true}"
  }'
Expected Response 201 Created
{
  "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
  "name": "Stark Aerospace Corp",
  "primaryColor": "#dc2626",
  "status": true,
  "createdOn": "2026-11-19T12:35:00Z"
}
POST https://{your-tenant}.sso.id/api/organizations/{id}/connections
Bearer JWT

Links an enterprise SAML 2.0, OIDC, or OAuth 2.0 Connection to a specific B2B Organization so that only members of this organization authenticate through that IdP. Use GET /api/organizations/{id}/connections to list linked connections, PUT /api/organizations/{id}/connections/{connectionId} to update JIT flags, and DELETE /api/organizations/{organizationId}/connections/{connectionId} to unlink.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Organization UUID.
organizationId Body string (UUID) Required Target Organization UUID.
connectionId Body string (UUID) Required Connection UUID to link to this organization.
enableAutoProvisioning Body boolean Optional When true, users logging in via this connection are automatically added as members of this Organization via JIT.
Response Fields & Schema
Field Type Description
organizationId string (UUID) Organization UUID.
connectionId string (UUID) Linked Connection UUID.
enableAutoProvisioning boolean JIT provisioning status.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organizations/org_778899aa/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa",
    "connectionId": "con_88a12b34",
    "enableAutoProvisioning": true
  }'
Expected Response 200 OK
{
  "organizationId": "org_778899aa",
  "connectionId": "con_88a12b34",
  "enableAutoProvisioning": true,
  "createdOn": "2026-11-19T12:36:00Z"
}
POST https://{your-tenant}.sso.id/api/organizations/{organizationId}/users
Bearer JWT

Adds a directory User as a member of a B2B Organization. Use GET /api/organizations/{organizationId}/users to list members and DELETE /api/organizations/{organizationId}/users/{userId} to remove a member. Groups can similarly be linked via POST /api/organizations/{id}/groups.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Path string (UUID) Required Target Organization UUID.
organizationId Body string (UUID) Required Target Organization UUID.
userId Body string (UUID) Required User UUID to assign to the organization.
Response Fields & Schema
Field Type Description
organizationId string (UUID) Organization UUID.
userId string (UUID) Assigned User UUID.
createdOn string (ISO 8601) Membership creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organizations/org_778899aa/users" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
  }'
Expected Response 200 OK
{
  "organizationId": "org_778899aa",
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
  "createdOn": "2026-11-19T12:37:00Z"
}
POST https://{your-tenant}.sso.id/api/organizations/{id}/factors
Bearer JWT

Enables an MFA factor override for a Tier-3 B2B Organization. Use GET /api/organizations/{id}/factors to list factors, PUT /api/organizations/{id}/factors/{factorId} to update, and DELETE /api/organizations/{organizationId}/factors/{factorId} to remove.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path string (UUID) Required Target Organization UUID.
organizationId Body string (UUID) Required Target Organization UUID.
factorId Body integer (int64) Required MFA Factor ID (e.g., 1 = TOTP, 2 = Passkey, 3 = Email OTP, 4 = SMS OTP).
factorType Body string Required Factor type identifier (TOTP, PASSKEY, EMAIL, SMS).
isUserCanManage Body boolean Optional Whether end users in this organization can self-manage enrollment for this factor.
Response Fields & Schema
Field Type Description
organizationId string (UUID) Organization UUID.
factorId integer (int64) Enabled Factor ID.
factorType string Factor type.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organizations/org_778899aa/factors" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa",
    "factorId": 2,
    "factorType": "PASSKEY",
    "isUserCanManage": true
  }'
Expected Response 200 OK
{
  "organizationId": "org_778899aa",
  "factorId": 2,
  "factorType": "PASSKEY",
  "isUserCanManage": true
}
GET https://{your-tenant}.sso.id/api/organization-units
Bearer JWT

Lists all Tier-4 Organization Units (departments, regional divisions, or subsidiaries) across the tenant. To list OUs scoped to a single parent Organization, call GET /api/organization-units/organizationunit/organization/{organizationId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Unique Organization Unit UUID.
organizationId string (UUID) Parent Tier-3 Organization UUID.
name string Department or division display name.
organizationUnitStatus integer Status code (1 = Active, 0 = Inactive).
isDefaultAuthenticationEnabled boolean Whether standard directory password login is permitted.
logo string Optional department logo override.
primaryColor string Optional hex primary color override.
organizationUnitSettings string (JSON) Serialized Tier-4 policy override JSON.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/organization-units" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "name": "Treasury & Wire Operations",
    "organizationUnitStatus": 1,
    "isDefaultAuthenticationEnabled": false
  }
]
POST https://{your-tenant}.sso.id/api/organization-units
Bearer JWT

Creates a new Tier-4 Organization Unit under a parent Organization with granular MFA, IP geofencing, or session policy overrides. Use PUT /api/organization-units/{id} to update and DELETE /api/organization-units/{id} to delete.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Tier-3 Organization UUID.
name Body string Required Name of the Organization Unit (e.g., Defense R&D Division, EU Finance Ops).
organizationUnitStatus Body integer Optional Status: 1 = Active (default), 0 = Suspended.
isDefaultAuthenticationEnabled Body boolean Optional Whether standard password login is enabled for this OU.
logo Body string Optional Optional custom logo URL or base64 data URI.
primaryColor Body string Optional Optional hex primary color.
backgroundColor Body string Optional Optional hex background color.
organizationUnitSettings Body string (JSON) Optional Serialized JSON specifying Tier-4 overrides (overrideMfa, requireMultipleFactors, overrideSecurity, allowedIpRanges).
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Generated Organization Unit UUID (pass as &organizationUnitId=... to /oauth/authorize).
organizationId string (UUID) Parent Organization UUID.
name string Organization Unit name.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "name": "Treasury & Wire Operations",
    "organizationUnitStatus": 1,
    "isDefaultAuthenticationEnabled": false,
    "organizationUnitSettings": "{\"overrideMfa\":true,\"requireMultipleFactors\":true,\"overrideSecurity\":true,\"allowedIpRanges\":\"198.51.100.0/24\"}"
  }'
Expected Response 201 Created
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
  "name": "Treasury & Wire Operations",
  "organizationUnitStatus": 1,
  "createdOn": "2026-11-19T12:38:00Z"
}
POST https://{your-tenant}.sso.id/api/organization-units/organizationunit/user
Bearer JWT

Assigns a User to an Organization Unit. Use GET /api/organization-units/organizationunit/{id}/users to list OU members, and DELETE /api/organization-units/organization/{organizationId}/organizationunit/{organizationunitId}/user/{userId} to remove a member.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Organization UUID.
organizationUnitId Body string (UUID) Required Target Organization Unit UUID.
userId Body string (UUID) Required User UUID to assign to this OU.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Organization Unit UUID.
organizationId string (UUID) Parent Organization UUID.
userId string (UUID) Assigned User UUID.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units/organizationunit/user" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
  }'
Expected Response 200 OK
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
}
POST https://{your-tenant}.sso.id/api/organization-units/organizationunit/connection
Bearer JWT

Links an Identity Connection to a specific Tier-4 Organization Unit. Similarly, link groups via POST /api/organization-units/organizationunit/group and enforce MFA factors via POST /api/organization-units/organizationunit/factor.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Organization UUID.
organizationUnitId Body string (UUID) Required Target Organization Unit UUID.
connectionId Body string (UUID) Required Connection UUID to link to this OU.
enableAutoProvisioning Body boolean Optional Enable JIT provisioning directly into this Organization Unit.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Organization Unit UUID.
connectionId string (UUID) Linked Connection UUID.
enableAutoProvisioning boolean JIT provisioning status.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units/organizationunit/connection" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
    "enableAutoProvisioning": true
  }'
Expected Response 200 OK
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
  "enableAutoProvisioning": true
}

9. Tenant Governance, Console RBAC, Custom SMTP & Stripe Billing

Configure Tier-1 Tenant settings, US/EU workspace provisioning, custom domain CNAME verification, RSA signing key rotation, administrative Tenant Members and Tenant Roles, custom SMTP relays, HTML email templates, and Stripe service plans.

GET https://{your-tenant}.sso.id/api/settings/tenant
Bearer JWT

Retrieves the complete Tier-1 Tenant Workspace configuration, including general metadata, US/EU data residency, branding studio settings, custom domain verification status, password/session security policies, and compliance mode.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
tenantId string (UUID) Unique Tenant Workspace UUID.
tenantName string Immutable tenant slug.
friendlyName string Display name shown on login screens and emails.
region string Data residency region (US or EU).
environment string Workspace environment tag (Production, Staging, Development).
tenantDomain string Default regional tenant domain (e.g., cloudpulse.us.sso.id).
customDomain string Configured custom domain (e.g., auth.cloudpulse.io).
isCustomDomainVerified boolean True when CNAME DNS verification and TLS provisioning are active.
logoUrl string Tenant brand logo URL.
supportEmail string Helpdesk support email shown on login/error screens.
supportUrl string Helpdesk portal URL.
defaultLanguage string Default locale code (e.g., en-US).
multifactorAuthentication boolean Master Tier-1 MFA enforcement toggle.
complianceMode string Active regulatory baseline (Default, GDPR, HIPAA, SOC2, ISO27001).
dataProtectionOfficerEmail string DPO contact email for GDPR notifications.
tenantSettings string (JSON) Serialized JSON containing password complexity, lockout thresholds, token lifetimes, IP/Country geofencing, and webhook settings.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/settings/tenant" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
  "tenantName": "cloudpulse-us",
  "friendlyName": "CloudPulse Inc.",
  "region": "US",
  "environment": "Production",
  "tenantDomain": "cloudpulse-us.us.sso.id",
  "customDomain": "auth.cloudpulse.io",
  "isCustomDomainVerified": true,
  "supportEmail": "[email protected]",
  "defaultLanguage": "en-US",
  "multifactorAuthentication": true,
  "complianceMode": "SOC2"
}
PUT https://{your-tenant}.sso.id/api/settings/tenant
Bearer JWT

Updates Tier-1 Tenant settings, branding, password complexity rules, session/token lifetimes, IP/Country geofencing, and compliance configurations.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Body string (UUID) Required Target Tenant Workspace UUID.
friendlyName Body string Required Public display name for the workspace.
supportEmail Body string Optional Support contact email address.
supportUrl Body string (URL) Optional Support documentation or ticket URL.
defaultLanguage Body string Optional Default UI language code (en-US, ar-SA, de-DE, es-ES, fr-FR, it-IT, nl-NL, tr-TR, zh-CN).
logoUrl Body string (URL) Optional Brand logo URL.
customDomain Body string Optional Custom domain hostname (e.g., login.acme.com).
multifactorAuthentication Body boolean Optional Enable/disable tenant-wide MFA.
complianceMode Body string Optional Regulatory mode (Default, GDPR, HIPAA, SOC2, ISO27001).
dataProtectionOfficerEmail Body string Optional Designated Data Protection Officer email.
customStyles Body string Optional Custom CSS / branding tokens JSON.
tenantSettings Body string (JSON) Optional JSON object containing nested policy settings (passwordPolicy, tokenPolicy, securityGeofence, webhooks).
Response Fields & Schema
Field Type Description
status boolean True when tenant settings are persisted.
message string Confirmation message.
data TenantDTO Updated Tenant configuration object.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/settings/tenant" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "friendlyName": "CloudPulse Enterprise",
    "supportEmail": "[email protected]",
    "defaultLanguage": "en-US",
    "multifactorAuthentication": true,
    "complianceMode": "SOC2"
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "Tenant settings updated successfully."
}
POST https://{your-tenant}.sso.id/api/tenant-management
Bearer JWT

Provisions a brand-new isolated Tenant Workspace and dedicated database schema in either the United States (US) or European Union (EU) data residency region.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantName Body string Required Unique URL-safe tenant slug (3-50 lowercase alphanumeric/hyphen characters).
friendlyName Body string Required Organization or workspace display name.
region Body string Required Data residency region: US (North America) or EU (Frankfurt/Dublin GDPR zone).
environment Body string Optional Environment label: Production, Staging, or Development.
Response Fields & Schema
Field Type Description
tenantId string (UUID) Newly provisioned Tenant UUID.
tenantDomain string Assigned regional domain (e.g., acme-eu.eu.sso.id).
region string Provisioned region.
databaseProvisioned boolean True when isolated tenant database migration completed.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/tenant-management" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "tenantName": "cloudpulse-eu",
    "friendlyName": "CloudPulse Europe GmbH",
    "region": "EU",
    "environment": "Production"
  }'
Expected Response 201 Created
{
  "tenantId": "e1a2b3c4-d5e6-4f7a-8b9c-0d1e2f3a4b5c",
  "tenantName": "cloudpulse-eu",
  "tenantDomain": "cloudpulse-eu.eu.sso.id",
  "region": "EU",
  "databaseProvisioned": true
}
GET https://{your-tenant}.sso.id/api/settings/tenant/verify-domain
Bearer JWT

Verifies DNS CNAME ownership for a custom login domain (e.g. login.yourcompany.com) and activates automated edge TLS certificates. Use GET /api/settings/tenant/detect-dns-provider?domain={domain} to detect the registrar (Cloudflare, GoDaddy, Hostinger, Namecheap) and POST /api/settings/tenant/auto-connect/{provider} for one-click CNAME creation.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
domain Query string Required Custom domain hostname to verify (e.g., auth.cloudpulse.io).
Response Fields & Schema
Field Type Description
domain string Verified domain hostname.
isVerified boolean True if CNAME record points to the tenant's regional target.
expectedCnameTarget string Required CNAME target value.
sslStatus string Edge TLS certificate status (Active, Pending).
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/settings/tenant/verify-domain?domain=auth.cloudpulse.io" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "domain": "auth.cloudpulse.io",
  "isVerified": true,
  "expectedCnameTarget": "cloudpulse-us.us.sso.id",
  "sslStatus": "Active"
}
POST https://{your-tenant}.sso.id/api/signing-keys/rotate
Bearer JWT

Generates and activates a new RSA cryptographic signing keypair for OIDC/OAuth 2.0 JWTs and SAML 2.0 Assertions while retaining the previous key in JWKS during the rollover window. Use GET /api/signing-keys to list active/historical keys, POST /api/signing-keys/import to upload a custom PFX, and POST /api/signing-keys/revoke/{id} to revoke a key.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
applicationId Body string (UUID) Optional Optional Application UUID for app-specific key rotation; omit to rotate the tenant-wide signing key.
useFor Body string Optional Key usage scope: ALL (default), OIDC, or SAML.
algorithm Body string Optional Signing algorithm: RS256 (default), RS384, or RS512.
keySize Body integer Optional RSA modulus bit length: 2048 (default) or 4096.
Response Fields & Schema
Field Type Description
id integer Internal key record ID.
keyId string Generated JWK kid identifier.
algorithm string Signing algorithm (RS256).
status string Key status (Active).
thumbprint string SHA-1/SHA-256 X.509 certificate thumbprint.
createdAt string (ISO 8601) Key generation timestamp.
expiresAt string (ISO 8601) Scheduled key expiration timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/signing-keys/rotate" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "useFor": "ALL",
    "algorithm": "RS256",
    "keySize": 2048
  }'
Expected Response 200 OK
{
  "id": 14,
  "keyId": "ssoid-2026-key-14",
  "algorithm": "RS256",
  "status": "Active",
  "thumbprint": "A1B2C3D4E5F60718293A4B5C6D7E8F9012345678",
  "createdAt": "2026-11-19T12:58:00Z",
  "expiresAt": "2027-11-19T12:58:00Z"
}
GET https://{your-tenant}.sso.id/api/tenants/{tenantId}/members
Bearer JWT

Lists all administrative Tenant Members who have access to the SSO.ID Admin Console for the specified Tenant Workspace, along with their assigned Tenant Roles.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
Response Fields & Schema
Field Type Description
tenantId string (UUID) Tenant Workspace UUID.
userId string (UUID) Member's User UUID.
emailAddress string Member's primary email address.
firstName string Member's first name.
lastName string Member's last name.
phoneNumber string Member's telephone number.
selectedRole string Primary assigned administrative Tenant Role name.
tenantMemberRoles array Array of administrative Tenant Roles held by this member.
createdOn string (ISO 8601) UTC timestamp when console membership was granted.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/members" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "userId": "usr_11223344-5566-4778-8990-aabbccddeeff",
    "emailAddress": "[email protected]",
    "firstName": "Maya",
    "lastName": "Lin",
    "selectedRole": "Security Architect",
    "createdOn": "2026-09-01T08:00:00Z"
  }
]
POST https://{your-tenant}.sso.id/api/tenants/{tenantId}/members/invite
Bearer JWT

Dispatches an administrative Tenant Member email invitation to onboard an IT/SecOps colleague into the Admin Console. To resend a pending invitation, call POST /api/tenants/{tenantId}/members/{userId}/resend-invite. To add an already-registered SSO.ID user directly, call POST /api/tenants/{tenantId}/members/existing.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
email Body string Required Email address of the administrator to invite.
roleId Body string (UUID) Required Administrative Tenant Role UUID to assign upon acceptance.
selectedRole Body string Optional Optional Tenant Role name.
Response Fields & Schema
Field Type Description
userId string (UUID) Provisioned/linked User UUID.
email string Invited administrator email.
roleId string (UUID) Assigned Tenant Role UUID.
inviteSent boolean True when the invitation email has been sent.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/members/invite" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "roleId": "trol_sec_auditor_01",
    "selectedRole": "SOC2 Auditor"
  }'
Expected Response 201 Created
{
  "userId": "usr_99001122-3344-4556-8778-99aabbccddee",
  "email": "[email protected]",
  "roleId": "trol_sec_auditor_01",
  "inviteSent": true
}
PUT https://{your-tenant}.sso.id/api/tenants/{tenantId}/members/{id}
Bearer JWT

Updates an administrative Tenant Member's profile details or assigned Tenant Role. To revoke a member's Admin Console access without deleting their underlying user identity, call DELETE /api/tenants/{tenantId}/members/{userId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
id Path string (UUID) Required Target Member's User UUID.
userId Body string (UUID) Required Target Member's User UUID.
firstName Body string Optional Updated first name.
lastName Body string Optional Updated last name.
emailAddress Body string Required Member email address.
selectedRole Body string (UUID) Optional Updated Tenant Role UUID.
Response Fields & Schema
Field Type Description
status boolean True when the Tenant Member record is updated.
message string Confirmation message.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/members/usr_99001122" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "usr_99001122",
    "emailAddress": "[email protected]",
    "firstName": "Devon",
    "lastName": "Brooks",
    "selectedRole": "trol_iam_admin_02"
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "Tenant member updated successfully."
}
GET https://{your-tenant}.sso.id/api/tenants/{tenantId}/roles
Bearer JWT

Lists all administrative Tenant Roles configured for the workspace. To fetch the currently signed-in administrator's permitted Admin Console sidebar menus and CRUD permissions, call GET /api/tenants/{tenantId}/roles/user-menus.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
includeOwner Query boolean Optional When true, includes the built-in system Owner role in the list (default: false).
Response Fields & Schema
Field Type Description
roleId string (UUID) Unique Tenant Role UUID.
tenantId string (UUID) Tenant Workspace UUID.
roleName string Display name of the administrative role (e.g., SOC2 Auditor, Helpdesk Admin).
roleDescription string Description of administrative scope.
roleLevel integer (int64) Hierarchy precedence level.
isDefault boolean Whether this is a built-in system role.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/roles?includeOwner=true" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "roleId": "trol_sec_auditor_01",
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "roleName": "SOC2 Read-Only Auditor",
    "roleDescription": "Read-only access to Audit Logs, User Activity, and Compliance",
    "roleLevel": 2,
    "isDefault": false
  }
]
POST https://{your-tenant}.sso.id/api/tenants/{tenantId}/roles
Bearer JWT

Creates a new custom administrative Tenant Role for governing access to the SSO.ID Admin Console. Use PUT /api/tenants/{tenantId}/roles/{roleId} to update and DELETE /api/tenants/{tenantId}/roles/{roleId} to delete.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
roleName Body string Required Administrative role name (1-100 characters).
roleDescription Body string Optional Detailed description of the role's administrative privileges.
roleLevel Body integer Optional Optional numeric privilege tier.
Response Fields & Schema
Field Type Description
roleId string (UUID) Newly created Tenant Role UUID.
tenantId string (UUID) Tenant UUID.
roleName string Role name.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/roles" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "roleName": "Tier-1 Identity Helpdesk",
    "roleDescription": "Can view, invite, and reset passwords for users and groups without deleting configurations"
  }'
Expected Response 201 Created
{
  "roleId": "trol_helpdesk_03",
  "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
  "roleName": "Tier-1 Identity Helpdesk",
  "createdOn": "2026-11-19T13:00:00Z"
}
PUT https://{your-tenant}.sso.id/api/tenants/{tenantId}/roles/{roleId}/menus/{menuId}
Bearer JWT

Updates the Admin Console menu CRUD permission flags (viewAccess, addAccess, updateAccess, deleteAccess) for a Tenant Role. Use GET /api/tenants/{tenantId}/roles/{roleId}/menus to inspect the full console permission tree, and POST / DELETE /api/tenants/{tenantId}/roles/{roleId}/users to assign or remove Tenant Members.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantId Path string (UUID) Required Target Tenant Workspace UUID.
roleId Path string (UUID) Required Target Tenant Role UUID.
menuId Path string Required Admin Console module menu identifier (e.g., audit-logs, user-management, applications).
roleTree Body array Required Array of console menu nodes with menuId, viewAccess, addAccess, updateAccess, and deleteAccess booleans.
Response Fields & Schema
Field Type Description
status boolean True when console menu permissions are saved.
message string Confirmation message.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/tenants/8c60a951-7e5c-4f25-8306-b62c7519c97a/roles/trol_helpdesk_03/menus/user-management" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "roleId": "trol_helpdesk_03",
    "roleTree": [
      {
        "menuId": "user-management",
        "viewAccess": true,
        "addAccess": true,
        "updateAccess": true,
        "deleteAccess": false
      }
    ]
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "Tenant role menu access updated successfully."
}
PUT https://{your-tenant}.sso.id/api/settings/tenant/smtp
Bearer JWT

Configures or updates the custom SMTP relay server (Amazon SES, SendGrid, Postmark, Mailgun, Microsoft 365, or private postfix relay) for transactional identity emails. Use GET /api/settings/tenant/smtp (or GET /api/smtp) to retrieve current settings.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
senderEmail Body string Required Verified 'From' email address (e.g., [email protected]).
senderName Body string Required Friendly sender display name (e.g., CloudPulse Security).
hostUrl Body string Required SMTP server hostname (e.g., email-smtp.us-east-1.amazonaws.com, smtp.sendgrid.net).
port Body string Required SMTP port (typically 587 for STARTTLS or 465 for implicit TLS).
userName Body string Required SMTP authentication username or API key user.
password Body string Required SMTP authentication password or API secret (encrypted at rest).
protocol Body string Optional Encryption protocol: STARTTLS, SSL/TLS, or NONE.
isDefault Body boolean Optional Set to true to route all tenant emails through this SMTP provider.
Response Fields & Schema
Field Type Description
connectionId integer SMTP configuration ID.
senderEmail string Configured sender email.
hostUrl string Configured SMTP host.
port string Configured SMTP port.
isDefault boolean Active default relay status.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/settings/tenant/smtp" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "senderEmail": "[email protected]",
    "senderName": "CloudPulse Identity",
    "hostUrl": "email-smtp.us-east-1.amazonaws.com",
    "port": "587",
    "userName": "AKIAIOSFODNN7EXAMPLE",
    "password": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "protocol": "STARTTLS",
    "isDefault": true
  }'
Expected Response 200 OK
{
  "connectionId": 7,
  "senderEmail": "[email protected]",
  "senderName": "CloudPulse Identity",
  "hostUrl": "email-smtp.us-east-1.amazonaws.com",
  "port": "587",
  "protocol": "STARTTLS",
  "isDefault": true
}
POST https://{your-tenant}.sso.id/api/settings/tenant/smtp/test
Bearer JWT

Executes a live SMTP handshake, authenticates against the configured relay, and dispatches a diagnostic test message to verify deliverability and TLS settings.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
recipientEmail Body string Required Destination email address to receive the test message.
hostUrl Body string Optional Optional SMTP host override for pre-save testing.
port Body string Optional Optional port override.
userName Body string Optional Optional username override.
password Body string Optional Optional password override.
Response Fields & Schema
Field Type Description
success boolean True if the SMTP handshake and message delivery succeeded.
latencyMs integer Round-trip SMTP delivery time in milliseconds.
serverResponse string 250 OK diagnostic response from the remote mail server.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/settings/tenant/smtp/test" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "recipientEmail": "[email protected]"
  }'
Expected Response 200 OK
{
  "success": true,
  "latencyMs": 312,
  "serverResponse": "250 2.0.0 OK <[email protected]>"
}
PUT https://{your-tenant}.sso.id/api/settings/tenant/email-templates/{emailType}
Bearer JWT

Saves a customized HTML email template and subject line for a specific transactional email type. Use GET /api/settings/tenant/email-templates to list all templates, POST /api/settings/tenant/email-templates/{emailType}/test to send a rendered test email, and DELETE /api/settings/tenant/email-templates/{emailType}/reset to revert to the system default.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
emailType Path string Required Template identifier (e.g., Welcome, UserInvite, PasswordReset, EmailVerification, MfaOtp, SecurityAlert).
emailSubject Body string Required Email subject line supporting dynamic merge tags like {{TenantName}} and {{UserName}}.
emailTemplateBody Body string (HTML) Required Full inline-CSS HTML email body supporting merge tags: {{UserName}}, {{ActionUrl}}, {{OtpCode}}, {{TenantName}}, {{SupportEmail}}.
Response Fields & Schema
Field Type Description
emailType string Updated template key.
emailSubject string Saved subject line.
isCustomized boolean True indicating custom template override is active.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/settings/tenant/email-templates/MfaOtp" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "emailSubject": "[{{TenantName}}] Your Verification Code: {{OtpCode}}",
    "emailTemplateBody": "<div style=\"font-family:Inter,sans-serif;padding:24px;\"><h2>Hello {{UserName}},</h2><p>Your one-time security verification code is: <strong style=\"font-size:24px;color:#ff6b35;\">{{OtpCode}}</strong></p></div>"
  }'
Expected Response 200 OK
{
  "emailType": "MfaOtp",
  "emailSubject": "[{{TenantName}}] Your Verification Code: {{OtpCode}}",
  "isCustomized": true
}
GET https://{your-tenant}.sso.id/api/stripe/platform-packages
Bearer JWT

Lists all available SSO.ID Platform Subscription Plans (Free, Starter, Professional, Enterprise) and their included Monthly Active User (MAU), Application, and Connection quotas. To list custom application-level service plans created for your own SaaS customers, call GET /api/stripe/service-packages.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
servicePlanId string Unique Plan identifier.
servicePlanName string Plan tier name (Free, Starter, Professional, Enterprise).
price number (decimal) Monthly/annual subscription price.
currency string ISO currency code (USD, EUR).
type string Billing recurrence interval (month, year).
servicePlanOffers array Array of feature entitlement limits (offerKey, servicePlanOfferName, quantity).
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/stripe/platform-packages" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "servicePlanId": "plan_enterprise_monthly",
    "servicePlanName": "Enterprise",
    "price": 499.00,
    "currency": "USD",
    "type": "month",
    "enable": true,
    "servicePlanOffers": [
      { "offerKey": "MAU_LIMIT", "servicePlanOfferName": "Monthly Active Users", "quantity": 50000 },
      { "offerKey": "SAML_CONNECTIONS", "servicePlanOfferName": "Enterprise SAML/OIDC Connections", "quantity": -1 }
    ]
  }
]
POST https://{your-tenant}.sso.id/api/stripe/service-plans
Bearer JWT

Creates a custom application-scoped Service Plan synchronized with your connected Stripe account so you can monetize your own B2B/B2C application tiers. Use PUT /api/stripe/service-plans/{serviceplanid}/applications/{appid} to update and DELETE /api/stripe/service-plans/{serviceplanid}/applications/{appid} to remove.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
applicationId Body string (UUID) Required Target Application UUID.
servicePlanName Body string Required Display name of the plan (e.g., Pro Team, Enterprise Plus).
price Body number (decimal) Required Price amount (e.g., 49.00).
currency Body string Required 3-letter ISO currency code (e.g., usd, eur).
type Body string Required Billing cycle: month, year, or one_time.
enable Body boolean Optional Whether the plan is immediately active and purchasable (default: true).
servicePlanOffers Body array Optional Feature entitlement matrix (servicePlanOfferName, offerKey, quantity).
Response Fields & Schema
Field Type Description
servicePlanId string (UUID) Generated Service Plan UUID.
stripeProductId string Provisioned Stripe Product ID (prod_...).
stripePriceId string Provisioned Stripe Price ID (price_...).
stripePaymentLink string (URL) Hosted Stripe Payment Link URL.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/stripe/service-plans" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "applicationId": "app_7712b",
    "servicePlanName": "CloudPulse CRM Pro",
    "price": 79.00,
    "currency": "usd",
    "type": "month",
    "enable": true,
    "servicePlanOffers": [
      { "servicePlanOfferName": "Team Seats", "offerKey": "SEATS", "quantity": 25 },
      { "servicePlanOfferName": "AI Forecasting", "offerKey": "AI_FORECAST", "quantity": 1 }
    ]
  }'
Expected Response 201 Created
{
  "servicePlanId": "sp_44112233-5566-4778-9900-aabbccddeeff",
  "applicationId": "app_7712b",
  "servicePlanName": "CloudPulse CRM Pro",
  "price": 79.00,
  "currency": "usd",
  "stripeProductId": "prod_R9918273645",
  "stripePriceId": "price_1Q9918273645abcdef",
  "stripePaymentLink": "https://buy.stripe.com/test_9918273645"
}
POST https://{your-tenant}.sso.id/api/stripe/create-checkout-session
Bearer JWT

Creates a hosted Stripe Checkout Session URL to upgrade the tenant's platform subscription or subscribe a customer to an application service plan.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
servicePlanId Body string Required Target Service Plan ID to subscribe to.
applicationId Body string Optional Application UUID (or 1 for platform subscription plans).
successUrl Body string (URL) Optional Redirect URL upon successful payment completion.
cancelUrl Body string (URL) Optional Redirect URL if the user cancels checkout.
Response Fields & Schema
Field Type Description
sessionId string Stripe Checkout Session ID (cs_...).
url string (URL) Hosted Stripe Checkout URL to redirect the browser to.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/stripe/create-checkout-session" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "servicePlanId": "plan_enterprise_monthly",
    "applicationId": "1"
  }'
Expected Response 200 OK
{
  "sessionId": "cs_live_a1b2c3d4e5f6g7h8i9j0",
  "url": "https://checkout.stripe.com/c/pay/cs_live_a1b2c3d4e5f6g7h8i9j0"
}
GET https://{your-tenant}.sso.id/api/stripe/usage-summary
Bearer JWT

Returns live tenant consumption counters compared against the active subscription plan's quota limits (Monthly Active Users, Admin Seats, Applications, and Identity Connections).

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
applicationId Query string Optional Optional application filter (defaults to platform-wide usage 1).
Response Fields & Schema
Field Type Description
planName string Current subscription tier name (e.g., Enterprise, Professional, Free).
mauUsed integer Monthly Active Users consumed in current billing period.
mauLimit integer Maximum included Monthly Active Users.
applicationsUsed integer Configured SSO applications count.
applicationsLimit integer Maximum allowed applications under plan.
connectionsUsed integer Configured external IdP connections count.
connectionsLimit integer Maximum allowed IdP connections.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/stripe/usage-summary" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "planName": "Enterprise",
  "mauUsed": 14820,
  "mauLimit": 50000,
  "applicationsUsed": 12,
  "applicationsLimit": -1,
  "connectionsUsed": 19,
  "connectionsLimit": -1
}

10. Tamper-Evident Audit Logs, SIEM Export, GDPR Privacy & Analytics

Query immutable audit trails with property-level JSON diffs, verify the cryptographic SHA-256 hash chain, stream events to Splunk/Datadog/CloudWatch, monitor real-time threat alerts, and execute GDPR data portability and erasure requests.

GET https://{your-tenant}.sso.id/api/audit-logs
Bearer JWT

Queries paginated, tamper-evident administrative and security audit logs along with 24-hour event metrics. To retrieve a single audit event with its full property-level before/after JSON diff, call GET /api/audit-logs/{id}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
page Query integer Optional 1-based page number (default: 1).
pageSize Query integer Optional Records per page (default: 10, max: 250).
search Query string Optional Full-text search across actor email, entity title, IP address, and action.
entityName Query string Optional Filter by entity type (e.g., Application, User, Role, Connection, Tenant). Obtain distinct values from GET /api/audit-logs/entities.
action Query string Optional Filter by action verb (e.g., Create, Update, Delete, Login, RotateKey). Obtain distinct values from GET /api/audit-logs/actions.
startDate Query string (ISO 8601) Optional Filter events occurring on or after this UTC timestamp.
endDate Query string (ISO 8601) Optional Filter events occurring on or before this UTC timestamp.
order Query string Optional Sort direction (default: -CreatedOn).
Response Fields & Schema
Field Type Description
items array Paginated array of audit log records.
items[].auditId integer (int64) Monotonically increasing audit record ID.
items[].userEmail string Email of the administrator or user who performed the action.
items[].action string Action performed (Create, Update, Delete).
items[].entityName string Affected resource type.
items[].entityId string Affected resource UUID.
items[].entityTitle string Human-readable name of the affected entity.
items[].changes array Structured array of property diffs (property, displayName, oldValue, newValue).
items[].ipAddress string Originating IPv4/IPv6 address.
items[].previousHash string (SHA-256) SHA-256 hash of the preceding audit record in the chain.
items[].recordHash string (SHA-256) Cryptographic SHA-256 hash of this record concatenated with previousHash.
totalCount integer Total matching audit log entries.
metrics AuditLogMetricsDTO Summary counters (totalEventsLast24h, createEvents, updateEvents, deleteEvents, uniqueActorsCount).
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/audit-logs?page=1&pageSize=10&entityName=Application&action=Update" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "totalCount": 142,
  "page": 1,
  "pageSize": 10,
  "metrics": {
    "totalEvents": 18420,
    "totalEventsLast24h": 312,
    "uniqueActorsCount": 9
  },
  "items": [
    {
      "auditId": 99412,
      "userEmail": "[email protected]",
      "action": "Update",
      "entityName": "Application",
      "entityId": "app_7712b",
      "entityTitle": "CloudPulse CRM",
      "ipAddress": "198.51.100.14",
      "browser": "Chrome 131.0",
      "createdOn": "2026-11-19T12:15:00Z",
      "previousHash": "8f9e0d1c2b3a495867768594a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4",
      "recordHash": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d",
      "changes": [
        {
          "property": "ForceLoginAgain",
          "displayName": "Force Re-Authentication",
          "oldValue": "false",
          "newValue": "true"
        }
      ]
    }
  ]
}
GET https://{your-tenant}.sso.id/api/audit-logs/verify-integrity
Bearer JWT

Cryptographically verifies the tamper-evident SHA-256 hash chain across historical audit logs to prove for SOC 2 Type II, ISO 27001, and HIPAA auditors that no records have been altered or deleted.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
tenantSlug Query string Optional Optional tenant slug override.
limit Query integer Optional Number of most recent chain links to verify in this pass (default: 1000, max: 50000).
Response Fields & Schema
Field Type Description
isValid boolean True if every record's recomputed SHA-256 digest matches its stored recordHash and links unbroken to previousHash.
recordsVerified integer Total number of contiguous hash-chain records verified.
headHash string (SHA-256) Latest block hash at the tip of the audit chain.
verifiedAtUtc string (ISO 8601) UTC timestamp of the verification run.
brokenAtAuditId integer (nullable) Null when valid; points to the exact auditId if tampering is ever detected.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/audit-logs/verify-integrity?limit=5000" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "isValid": true,
  "recordsVerified": 5000,
  "headHash": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d",
  "verifiedAtUtc": "2026-11-19T13:02:00Z",
  "brokenAtAuditId": null
}
GET https://{your-tenant}.sso.id/api/audit-logs/export-siem
Bearer JWT

Exports audit log events pre-formatted for enterprise SIEM ingestion pipelines (Splunk HEC, Datadog Logs, AWS CloudWatch, or Generic JSON). For interactive CSV/JSON report downloads, call POST /api/audit-logs/export.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
format Query string Optional Target SIEM schema: splunk_hec, datadog, aws_cloudwatch, or generic_json (default).
days Query integer Optional Lookback window in days (e.g., 1, 7, 30).
entityName Query string Optional Optional entity filter.
action Query string Optional Optional action verb filter.
Response Fields & Schema
Field Type Description
events array SIEM-formatted event envelopes ready to forward to Splunk HTTP Event Collector or Datadog API.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/audit-logs/export-siem?format=splunk_hec&days=1" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "time": 1795090500,
    "host": "{your-tenant}.sso.id/api",
    "source": "sso.id.audit",
    "sourcetype": "_json",
    "event": {
      "auditId": 99412,
      "actor": "[email protected]",
      "action": "Update",
      "entity": "Application",
      "entityId": "app_7712b",
      "recordHash": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d"
    }
  }
]
GET https://{your-tenant}.sso.id/api/security/alerts
Bearer JWT

Returns active threat detection and identity anomaly alerts (brute-force account lockouts, impossible travel detections, unrecognized IP/country sign-ins, and MFA bypass attempts). To query chronological user login telemetry across the tenant, call GET /api/users/activity.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
limit Query integer Optional Maximum number of alerts to return (default: 10, max: 100).
severity Query string Optional Filter by alert severity: Critical, High, Medium, or Low.
Response Fields & Schema
Field Type Description
id integer (int64) Unique alert ID.
type string Threat category (BruteForceLockout, SuspiciousIpLogin, MfaFailureSpike).
severity string Severity level (Critical, High, Medium, Low).
description string Human-readable summary of the detected threat.
userId string (UUID) Affected user UUID.
ipAddress string Source IP address associated with the event.
timestamp string (ISO 8601) UTC detection timestamp.
resolved boolean Whether the alert has been acknowledged/resolved.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/security/alerts?limit=10&severity=High" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "id": 502,
    "type": "BruteForceLockout",
    "severity": "High",
    "description": "Account locked after 5 consecutive failed password attempts within 3 minutes.",
    "userId": "usr_88776655-4433-4221-a110-ffeeddccbbaa",
    "ipAddress": "203.0.113.88",
    "timestamp": "2026-11-19T11:42:10Z",
    "resolved": false
  }
]
GET https://{your-tenant}.sso.id/api/analytics/dashboard-stats
Bearer JWT

Returns real-time executive dashboard KPIs for the active tenant workspace, including directory counts, daily login volume, active sessions, MFA adoption rate, and security anomalies.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
totalUsers integer (int64) Total registered directory users in the tenant.
activeUsers integer (int64) Users with active status.
inactiveUsers integer (int64) Suspended or inactive user accounts.
newUsersToday integer (int64) Users created in the last 24 hours.
newUsersThisWeek integer (int64) Users onboarded in the last 7 days.
newUsersThisMonth integer (int64) Users onboarded in the current calendar month.
totalApplications integer (int64) Total configured SSO applications.
totalOrganizations integer (int64) Total Tier-3 B2B customer organizations.
totalOrganizationUnits integer (int64) Total Tier-4 organizational units.
totalRoles integer (int64) Total configured RBAC roles.
totalGroups integer (int64) Total user groups.
totalConnections integer (int64) Total external IdP connections.
loginAttemptsToday integer (int64) Total sign-in attempts today.
failedLoginAttemptsToday integer (int64) Failed authentication attempts today.
activeSessions integer (int64) Currently active user sessions across web/mobile.
mfaAdoptionRate number (decimal) Percentage (0-100) of users enrolled in at least one MFA factor.
suspiciousLoginAttempts integer (int64) Flagged anomalous login attempts.
lockedAccounts integer (int64) Accounts currently locked due to brute-force protection.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/analytics/dashboard-stats" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "totalUsers": 14820,
  "activeUsers": 14590,
  "inactiveUsers": 230,
  "newUsersToday": 48,
  "newUsersThisWeek": 312,
  "newUsersThisMonth": 1140,
  "totalApplications": 12,
  "totalOrganizations": 85,
  "totalOrganizationUnits": 210,
  "totalRoles": 34,
  "totalGroups": 64,
  "totalConnections": 19,
  "loginAttemptsToday": 9430,
  "failedLoginAttemptsToday": 112,
  "activeSessions": 6812,
  "mfaAdoptionRate": 94.6,
  "suspiciousLoginAttempts": 3,
  "lockedAccounts": 1
}
GET https://{your-tenant}.sso.id/api/analytics/login-trends
Bearer JWT

Returns time-series authentication telemetry comparing successful logins, failed logins, and unique active users over a configurable lookback window.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
days Query integer Optional Number of lookback days (default: 30, supported: 7, 30, 90, 365).
groupBy Query string Optional Aggregation bucket interval: day (default), hour, or month.
Response Fields & Schema
Field Type Description
date string Bucket date label (YYYY-MM-DD).
totalLogins integer (int64) Total authentication events in the bucket.
successfulLogins integer (int64) Successful sign-ins.
failedLogins integer (int64) Failed sign-in attempts.
uniqueUsers integer (int64) Distinct users who authenticated in the bucket.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/analytics/login-trends?days=30&groupBy=day" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "date": "2026-11-18",
    "totalLogins": 9120,
    "successfulLogins": 9015,
    "failedLogins": 105,
    "uniqueUsers": 6420
  },
  {
    "date": "2026-11-19",
    "totalLogins": 9430,
    "successfulLogins": 9318,
    "failedLogins": 112,
    "uniqueUsers": 6812
  }
]
GET https://{your-tenant}.sso.id/api/compliance/readiness-report
Bearer JWT

Evaluates the tenant's active security posture against GDPR, HIPAA, SOC 2 Type II, and ISO 27001 controls and returns overall and per-framework readiness scores.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
overallScore number (decimal) Aggregate compliance readiness score (0-100).
complianceMode string Currently active compliance preset (e.g. SOC2, GDPR, HIPAA).
frameworks object Breakdown of control pass/fail metrics for gdpr, hipaa, soc2, and iso27001.
hashChainVerified boolean True if the SHA-256 audit log chain passed integrity verification.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/compliance/readiness-report" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "overallScore": 96.5,
  "complianceMode": "SOC2",
  "hashChainVerified": true,
  "frameworks": {
    "gdpr": { "score": 100, "passedControls": 14, "totalControls": 14 },
    "soc2": { "score": 95, "passedControls": 19, "totalControls": 20 },
    "hipaa": { "score": 92, "passedControls": 11, "totalControls": 12 },
    "iso27001": { "score": 99, "passedControls": 18, "totalControls": 18 }
  }
}
GET https://{your-tenant}.sso.id/api/compliance/export-my-data
Bearer JWT

GDPR Articles 15 & 20 Self-Service Data Portability endpoint. Generates a structured JSON archive containing the user's profile attributes, role assignments, organization memberships, consent records, and recent login telemetry.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
exportedAtUtc string (ISO 8601) UTC timestamp when the archive was generated.
profile object Complete user profile attributes.
roles array Assigned application and tenant roles.
groups array Directory group memberships.
consentHistory array Chronological log of accepted privacy policies and terms.
recentActivity array Authentication and session history records.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/compliance/export-my-data" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "exportedAtUtc": "2026-11-19T12:00:00Z",
  "profile": {
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "email": "[email protected]",
    "firstName": "Liam",
    "lastName": "Mercer"
  },
  "roles": ["Support Specialist"],
  "groups": ["Customer Operations"],
  "consentHistory": [
    { "policyVersion": "v2.4", "consentedAtUtc": "2026-10-01T09:12:00Z" }
  ]
}
POST https://{your-tenant}.sso.id/api/compliance/delete-my-account
Bearer JWT

GDPR Article 17 Right to Erasure endpoint. Permanently deletes the authenticated user's account and anonymizes historical audit references after verifying that the user is not the sole owner of an active tenant.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
password Body string Optional Current password confirmation (required for password-authenticated accounts).
reason Body string Optional Optional user-supplied reason for account deletion.
confirmErasure Body boolean Required Must be set to true to confirm irreversible erasure.
Response Fields & Schema
Field Type Description
success boolean Indicates whether the account erasure completed.
anonymizedAuditRecords integer Number of audit trail entries cryptographically anonymized.
message string Completion summary.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/compliance/delete-my-account" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "confirmErasure": true,
    "reason": "Consolidating personal accounts"
  }'
Expected Response 200 OK
{
  "success": true,
  "anonymizedAuditRecords": 42,
  "message": "Your account and personal data have been permanently erased."
}
AI Agent Prompt Generate a Typed SSO.ID v2 Management API SDK Client
You are an expert SDK architect. Build a strongly-typed **SSO.ID v2 Management API Client (`SsoIdManagementClient`)** targeting `https://{your-tenant}.sso.id/api`.

### Requirements
1. **Authentication & Headers**:
   - Accept `{ baseUrl: 'https://{your-tenant}.sso.id/api', accessTokenProvider: () => Promise<string> }`.
   - Automatically inject `Authorization: Bearer <token>` on every request (tenant context is automatically resolved from the JWT token claims and tenant domain URL).
2. **Resource Modules to Generate**:
   - `applications`: `list()`, `get(id)`, `create(payload)`, `update(id, payload)`, `delete(id)`, `getMenus(id)`, `getApis(id)`, `getConnections(id)`, `getFactors(id)`
   - `connections`: `list()`, `getDefaults()`, `create(payload)`, `testLiveConnection(payload)`, `checkHealth()`
   - `users`: `list(params)`, `invite(payload)`, `getSessions(userId)`, `revokeSession(userId, sessionId)`, `revokeAllSessions(userId)`
   - `roles`: `list()`, `create(payload)`, `setMenuAccess(roleId, appId, permissions)`, `setApiAccess(roleId, appId, apiIds)`
   - `groups`: `list()`, `create(payload)`, `addUser(groupId, userId)`, `removeUser(groupId, userId)`
   - `organizations`: `list()`, `create(payload)`, `update(id, payload)`, `assignConnection(orgId, connectionId)`
   - `organizationUnits`: `list()`, `create(payload)`, `assignUser(ouId, orgId, userId)`
   - `tenant`: `getSettings()`, `updateSettings(payload)`, `verifyCustomDomain(domain)`, `rotateSigningKey(payload)`
   - `scim`: `listUsers(filter)`, `provisionUser(scimUser)`, `provisionGroup(scimGroup)`
   - `auditLogs`: `query(filters)`, `verifyIntegrity()`, `exportSiem(format)`
3. Include automatic exponential backoff on `429 Too Many Requests` and typed error classes.

11. AI Agent Identity Governance APIs (/api/ai-agents)

All AI Agent Identity Governance endpoints require Authorization: Bearer <ACCESS_TOKEN> (Tenant Admin / Owner or Applications permission). Tenant context is resolved automatically from the JWT claims and tenant domain URL.

GET /api/ai-agents
Bearer JWT

Returns the tenant's AI Agent Governance posture KPI summary alongside all registered, discovered, and orphaned AI agent identities.

Request Parameters

No path, query, or body parameters required. Tenant scope is derived from the Bearer token and domain URL.

Response Schema (200 OK)
FieldTypeDescription
summaryobjectAggregated governance posture KPIs for the current tenant.
summary.totalAgentsintegerTotal AI agents registered or discovered in the tenant.
summary.activeAgentsintegerAgents currently in Active status.
summary.shadowAgentsintegerAgents discovered via Shadow_AI_Scan.
summary.orphanedAgentsintegerAgents missing an accountable human owner (ownerEmail empty or status Orphaned).
summary.highRiskAgentsintegerAgents with riskLevel of High or Critical.
summary.revokedAgentsintegerAgents in Revoked or Suspended status.
summary.pendingAccessRequestsintegerCount of HITL elevated scope requests awaiting review.
summary.dueCertificationsintegerCount of pending access certification reviews.
agentsAiAgentDTO[]Full array of AI agent identity objects ordered by createdOn DESC.
POST /api/ai-agents | PUT /api/ai-agents/{agentId}
Bearer JWT

Register a new governed AI agent identity (201 Created) or update an existing agent's governance policy, human owner, scopes, or MCP allowlist (200 OK). Risk score and risk level are automatically recalculated on every save.

Request Parameters
ParameterInTypeRequiredDescription
agentIdPathstringPUT OnlyUnique agent identifier (e.g. agt_7a2bb83f901a4e). Auto-generated on POST if omitted.
nameBodystring (max 150)RequiredDisplay name of the AI agent (e.g. Support Triage Copilot).
descriptionBodystring (max 500)OptionalOperational purpose and security boundary description.
agentTypeBodystringOptionalAutonomous (default), Copilot, Workflow, MCP_Client, or Customer_Facing.
modelProviderBodystringOptionalOpenAI (default), Anthropic, Google Gemini, LangChain, CrewAI, or Custom.
ownerUserIdBodystringOptionalDirectory User ID of the accountable human sponsor.
ownerEmailBodystringRecommendedEmail of the human owner. Leaving empty automatically flags the agent as Orphaned and adds +35 risk score.
ownerNameBodystringOptionalDisplay name of the human owner.
statusBodystringOptionalActive (default), Suspended, Revoked, PendingReview, or Orphaned.
clientIdBodystringOptionalLinked OAuth 2.0 / OIDC Client ID boundary.
applicationIdBodystringOptionalLinked SSO.ID Application ID.
delegationModeBodystringOptionalOnBehalfOfUser (default), HumanInTheLoop, or AutonomousM2M.
allowedScopesBodystringOptionalComma-separated least-privilege scopes (default: profile:read). Wildcards/admin/delete increase risk score.
allowedMcpServersBodystringOptionalComma-separated authorized MCP server URIs (e.g. mcp://crm-readonly, mcp://jira-triage).
allowedApiEndpointsBodystringOptionalComma-separated authorized API route paths (e.g. /api/users, /api/organizations).
maxTokenTtlMinutesBodyintegerOptionalMaximum lifetime (in minutes) for issued JIT tokens (default: 15). Values > 60 increase risk score.
requireHumanApprovalForWriteBodybooleanOptionalEnforces HITL approval for state-mutating tool/API calls (default: true).
Response Schema (AiAgentDTO — returned by GET /{agentId}, POST, PUT)
FieldTypeDescription
agentIdstringUnique agent identifier (agt_...).
tenantIduuidOwning tenant GUID.
name, description, agentType, modelProviderstringAgent identity metadata.
ownerUserId, ownerEmail, ownerNamestring?Accountable human sponsor details.
statusstringActive | Suspended | Revoked | PendingReview | Orphaned.
discoverySourcestringManual | Shadow_AI_Scan | OAuth_Grant | MCP_Gateway.
riskScoreinteger (0–100)Computed governance risk score.
riskLevelstringLow (<25), Medium (25–49), High (50–74), or Critical (75–100).
delegationMode, allowedScopes, allowedMcpServers, allowedApiEndpointsstringActive least-privilege access boundaries.
maxTokenTtlMinutesintegerCapped JIT token TTL in minutes.
requireHumanApprovalForWritebooleanWhether write/delete actions require HITL approval.
lastCertifiedOn, nextCertificationDueOn, lastActiveOn, createdOn, lastModifiedOndatetime?Lifecycle, certification, and activity UTC timestamps.
createdBystring?Email of admin who registered the agent.
GET /api/ai-agents/{agentId} | DELETE /api/ai-agents/{agentId}
Bearer JWT

Fetch a single AI agent's full governance record (GET → AiAgentDTO) or permanently decommission and remove the agent identity (DELETE → { "deleted": true, "agentId": "agt_..." }).

Request Parameters
ParameterInTypeRequiredDescription
agentIdPathstringRequiredTarget AI agent ID (agt_...). Returns 404 Not Found if not in caller's tenant.
POST /api/ai-agents/{agentId}/issue-jit-token
Bearer JWT

Mints a short-lived, least-privilege JIT Agent JWT. Fails with 400 Bad Request if the agent is Revoked/Suspended or if requested scopes fall outside allowedScopes.

Request Parameters
ParameterInTypeRequiredDescription
agentIdPathstringRequiredTarget active AI agent ID.
requestedScopesBodystringOptionalSpace/comma-separated scopes to request. Intersected with agent's allowedScopes. Defaults to all allowed scopes.
ttlMinutesBodyintegerOptionalRequested lifetime in minutes. Automatically capped at agent.maxTokenTtlMinutes.
targetMcpServerBodystringOptionalTarget MCP server URI embedded as the JWT aud and mcp_server claim.
Response Schema (200 OK)
FieldTypeDescription
accessTokenstring (JWT)Signed short-lived JWT containing claims: sub, jti, token_use="ai_agent_jit", agent_id, agent_name, agent_type, tenant_id, delegation_mode, human_owner, scope, hitl_write_required, and optional mcp_server.
tokenTypestringAlways "Bearer".
expiresInSecondsintegerToken validity duration in seconds (e.g. 600 for 10m).
grantedScopesstringSpace-delimited least-privilege scopes actually granted.
delegationModestringDelegation mode bound to the token.
agentIdstringAgent identifier.
humanOwnerstring?Accountable human sponsor email.
expiresAtUtcdatetimeExact UTC expiration timestamp.
POST /api/ai-agents/{agentId}/revoke | POST /api/ai-agents/{agentId}/reactivate
Bearer JWT

Emergency Kill-Switch: immediately transitions an agent to Revoked (or Suspended), invalidating active token issuance and logging a critical audit event. Use /reactivate to restore Active status after review. Both return the updated AiAgentDTO.

Request Parameters (/revoke)
ParameterInTypeRequiredDescription
agentIdPathstringRequiredTarget AI agent ID.
reasonBodystringOptionalIncident or security reason recorded in the audit log.
suspendOnlyBodybooleanOptionalIf true, sets status to Suspended; if false (default), sets status to Revoked.
POST /api/ai-agents/discover
Bearer JWT

Runs a Shadow AI & Orphaned Agent Discovery Scan across tenant OAuth/M2M applications, auto-registering unmanaged agentic apps as PendingReview and flagging ownerless agents as Orphaned (Critical risk).

Response Schema (200 OK)
FieldTypeDescription
scannedApplicationsintegerNumber of tenant OAuth/M2M applications inspected.
newlyDiscoveredShadowAgentsintegerCount of unmanaged AI/Bot/MCP integrations newly added to the registry.
orphanedAgentsFlaggedintegerCount of active agents missing an owner that were flagged as Orphaned.
scannedAtUtcdatetimeUTC timestamp of scan completion.
discoveredAgentsAiAgentDTO[]Array of newly discovered shadow agent objects.
GET /api/ai-agents/access-requests | POST /api/ai-agents/{agentId}/access-requests | POST /api/ai-agents/access-requests/{requestId}/review
Bearer JWT

Human-in-the-Loop (HITL) elevated access workflow. List all requests, submit a new elevated scope/MCP server request for an agent, or approve/deny a pending request (approved scopes and MCP servers automatically merge into the agent's policy).

Request Parameters
ParameterIn / EndpointTypeRequiredDescription
agentIdPath (Create)stringRequiredTarget AI agent requesting elevated access.
requestedScopesBody (Create)stringRequiredComma-separated scopes requested (e.g. orders:write, billing:read).
requestedMcpServersBody (Create)stringOptionalComma-separated additional MCP servers requested.
justificationBody (Create)stringOptionalBusiness justification for the human approver.
requestIdPath (Review)stringRequiredAccess request ID (req_...) to review.
decisionBody (Review)stringRequiredApproved or Denied.
reviewNotesBody (Review)stringOptionalReviewer decision comments recorded in audit logs.
Response Schema (AiAgentAccessRequestDTO)
FieldTypeDescription
requestIdstringUnique request ID (req_...).
tenantId, agentId, agentNameuuid / stringTenant and target AI agent identifiers.
requestedBystringEmail of requester.
requestedScopes, requestedMcpServers, justificationstring?Requested permissions and rationale.
statusstringPending | Approved | Denied.
reviewedBy, reviewNotes, createdOn, reviewedOnstring? / datetime?Approval metadata and UTC timestamps.
GET /api/ai-agents/certifications | POST /api/ai-agents/certifications/campaign | POST /api/ai-agents/certifications/{certificationId}/complete
Bearer JWT

Identity Governance & Administration (IGA) certification campaigns for AI agents. Launching a campaign creates 14-day review tasks for every non-revoked agent; certifying extends nextCertificationDueOn by 90 days, while revoking immediately triggers the Kill-Switch.

Request Parameters
ParameterIn / EndpointTypeRequiredDescription
campaignNameBody (Campaign)stringOptionalCampaign display name (defaults to current quarter review, e.g. Q4 2026 AI Agent Review).
certificationIdPath (Complete)stringRequiredCertification review ID (crt_...).
decisionBody (Complete)stringRequiredCertified (renews access for 90 days) or Revoked (immediately revokes agent).
notesBody (Complete)stringOptionalCompliance audit notes.
Response Schema (AiAgentCertificationDTO)
FieldTypeDescription
certificationIdstringUnique review ID (crt_...).
tenantId, campaignName, agentId, agentNameuuid / stringCampaign and reviewed agent metadata.
reviewerEmailstring?Assigned human reviewer (defaults to agent's ownerEmail).
statusstringPending | Certified | Revoked.
notes, dueDate, createdOn, completedOnstring? / datetime?Review notes and UTC schedule/completion timestamps.
GET /api/ai-agents/audit-logs
Bearer JWT

Retrieves the immutable AI Agent governance telemetry stream (registrations, policy updates, Shadow AI scans, JIT token issuances, HITL approvals, certifications, and Kill-Switch revocations).

Request Parameters
ParameterInTypeRequiredDescription
agentIdQuerystringOptionalFilter telemetry events to a specific AI agent ID.
limitQueryintegerOptionalMax records to return (1–500, default: 100).
Response Schema (AiAgentAuditLogDTO[])
FieldTypeDescription
logIdstringUnique log entry ID (log_...).
tenantId, agentId, agentNameuuid / string?Tenant and agent context (null for tenant-wide scans/campaigns).
actionstringEvent code: AgentRegistered, AgentPolicyUpdated, JitTokenIssued, ShadowAiDiscoveryScan, AccessRequestCreated, AccessRequestApproved, AccessRequestDenied, CertificationCampaignStarted, AgentCertified, KillSwitchRevoked, AgentReactivated, AgentDecommissioned.
actorstringEmail or user ID of the admin/system that triggered the action.
severitystringinfo | warning | critical.
detailsstringHuman-readable audit description including scopes, TTL, and reason.
createdOndatetimeUTC timestamp of the audit event.