Skip to main content
POST
Create SSO configuration for organization

Authorizations

X-API-Key
string
header
required

API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY

Example:

Authorization
string
header
required

JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN

Example:

Body

application/json

Request model for creating an SSO provider via Supabase Management API.

domains
string[]
required

Email domains for this provider

attribute_mapping
Attribute Mapping · object | null

SAML attribute mappings

metadata_url
string<uri> | null

URL to fetch SAML metadata

Required string length: 1 - 2083
metadata_xml
string | null

Raw SAML metadata XML

type
string
default:saml

SSO provider type

Response

SSO configuration created successfully

API response model for SSO organization configuration.

created_at
string<date-time>
required

Creation timestamp

sso_provider_id
string
required

Supabase SSO provider ID

updated_at
string<date-time>
required

Last update timestamp

attribute_mapping
Attribute Mapping · object | null

SAML attribute mappings

domains
string[] | null

Email domains for this SSO provider

is_active
boolean
default:true

Whether the SSO provider is active

metadata_url
string | null

SAML metadata URL

metadata_xml_hash
string | null

Hash of SAML metadata XML

organization_id
string<uuid> | null

Associated organization ID