Stytch SSO API

The SSO API from Stytch — 12 operation(s) for sso.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Tenant Identity Federation BC-4230.50

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/b2b/sso/{organization_id} List SSO connections for an organization · Getconnections #
Ask an LLM
“Which SSO connections are configured for my organization?”
“Can I see the OIDC and SAML connections set up for a B2B tenant?”
Tell an agent
List all SSO connections for organization {organization_id}.
Show the OIDC and SAML connections configured in {organization_id}.
DELETE /v1/b2b/sso/{organization_id}/connections/{connection_id} Delete an SSO connection · Deleteconnection #
Ask an LLM
“How do I remove an OIDC or SAML connection from an organization?”
“Can I delete a single SSO connection by its ID?”
Tell an agent destructive · confirm first
Delete SSO connection {connection_id} from organization {organization_id}.
Remove the OIDC connection {connection_id} in {organization_id}.
POST /v1/b2b/sso/authenticate Authenticate a user with an SSO token · Authenticate #
Ask an LLM
“How do I verify an SSO login token and create a session?”
“Can I set how long an authenticated session lasts?”
Tell an agent
Authenticate using SSO token {sso_token}.
Log in with token {sso_token} and make the session last {session_duration_minutes} minutes.
POST /v1/b2b/sso/oidc/{organization_id} Add an OIDC identity provider connection · Createconnection #
Ask an LLM
“How do I connect my organization to an OpenID Connect identity provider?”
“Can I give a display name to an OIDC connection?”
Tell an agent
Create OIDC connection {display_name} for organization {organization_id}.
Add {identity_provider} as an OpenID Connect connection to {organization_id}.
PUT /v1/b2b/sso/oidc/{organization_id}/connections/{connection_id} Update an OIDC connection · Updateconnection #
Ask an LLM
“How do I change the issuer URL of an existing OIDC connection?”
“Can I rotate the client secret on an OIDC connection?”
Tell an agent
Update OIDC connection {connection_id} in organization {organization_id} with issuer {issuer}.
Rotate the client secret of OIDC connection {connection_id} in {organization_id} to {client_secret}.
POST /v1/b2b/sso/saml/{organization_id} Create a SAML connection · Createconnection #
Ask an LLM
“How do I add a SAML connection to an organization?”
“Can I create a SAML connection with a display name?”
Tell an agent
Create a SAML connection in organization {organization_id}.
Add SAML connection {display_name} to {organization_id}.
PUT /v1/b2b/sso/saml/{organization_id}/connections/{connection_id} Update a SAML connection · Updateconnection #
Ask an LLM
“How do I update the SSO URL and certificate of an existing SAML connection?”
“Can I map SAML attributes to Stytch members?”
Tell an agent
Update SAML connection {connection_id} in organization {organization_id} with SSO URL {idp_sso_url}.
Map SAML attributes {attribute_mapping} on existing SAML connection {connection_id} in {organization_id}.
PUT /v1/b2b/sso/saml/{organization_id}/connections/{connection_id}/url Update a SAML connection from an IdP metadata URL · Updatebyurl #
Ask an LLM
“Can I load a SAML connection's settings from an IdP metadata URL?”
“How do I import SAML connection details from a metadata URL?”
Tell an agent
Update SAML connection {connection_id} in organization {organization_id} using metadata URL {metadata_url}.
Import SAML connection {connection_id} in {organization_id} from IdP metadata at {metadata_url}.
DELETE /v1/b2b/sso/saml/{organization_id}/connections/{connection_id}/verification_certificates/{certificate_id} Delete a SAML verification certificate · Deleteverificationcertificate #
Ask an LLM
“How do I remove an old certificate from a SAML connection?”
“Can I delete one verification certificate while keeping the others?”
Tell an agent destructive · confirm first
Delete verification certificate {certificate_id} from SAML connection {connection_id} in {organization_id}.
Rotate the SAML certificate on connection {connection_id} in {organization_id} by removing {certificate_id}.
DELETE /v1/b2b/sso/saml/{organization_id}/connections/{connection_id}/encryption_private_keys/{private_key_id} Delete a SAML encryption private key · Deleteencryptionprivatekey #
Ask an LLM
“How do I remove an old SAML encryption private key?”
“Can I delete an encryption private key from a SAML connection?”
Tell an agent destructive · confirm first
Delete encryption private key {private_key_id} from SAML connection {connection_id} in {organization_id}.
Rotate the SAML encryption key on connection {connection_id} in {organization_id} by removing {private_key_id}.
POST /v1/b2b/sso/external/{organization_id} Create an external SSO connection · Createconnection #
Ask an LLM
“How do I link an organization's SSO to another organization's connection?”
“Can I create an external SSO connection with implicit role assignments?”
Tell an agent
Create an external SSO connection in organization {organization_id} using external connection {external_connection_id}.
Link organization {organization_id} to external connection {external_connection_id} with role assignments {connection_implicit_role_assignments}.
PUT /v1/b2b/sso/external/{organization_id}/connections/{connection_id} Update an external SSO connection · Updateconnection #
Ask an LLM
“How do I change the role assignments on an external SSO connection?”
“Can I rename an external SSO connection?”
Tell an agent
Update external SSO connection {connection_id} in organization {organization_id} with role assignments {external_connection_implicit_role_assignments}.
Rename external connection {connection_id} in {organization_id} to {display_name}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stytch:stytch-sso-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stytch-sso-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stytch B2B Authentication SSO API
  version: 2.0.0
  description: Stytch's B2B API for multi-tenant authentication. Supports Organizations, Members, SSO (SAML/OIDC), Magic Links, OTP, OAuth, Discovery, Sessions, B2B RBAC, SCIM, TOTP, Recovery Codes, Passwords, Impersonation, and the B2B IDP.
  contact:
    name: Stytch
    url: https://stytch.com/docs
  license:
    name: Proprietary
servers:
- url: https://api.stytch.com
  description: Production
- url: https://test.stytch.com
  description: Test
tags:


# --- truncated at 32 KB (237 KB total) ---
# Full source: https://artifacts.apis.io/stytch/openapi/stytch-sso-api-openapi.yml