Skip to main content
POST
Create an SSO connection
Dashboard session only. API keys cannot call this operation.

Authorizations

Authorization
string
header
required

Your API key in Authorization: Bearer <key>. Use vk_test_… keys against the sandbox and vk_live_… keys against production.

Headers

Idempotency-Key
string

Optional key (1-255 printable ASCII characters, no spaces; a UUID is ideal) that makes this POST safe to retry: the same key with the same request replays the stored response for 24 hours. See Idempotency.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]{1,255}$

Body

application/json

New SSO connection.

protocol
enum<string>
required

Protocol.

Available options:
saml,
oidc
displayName
string
required

Name (1-120 characters).

Required string length: 1 - 120
emailDomains
string[]
required

Email domains (1-10); public mailbox domains are refused.

Required array length: 1 - 10 elements
saml
object

SAML settings (required when protocol is saml).

oidc
object

OIDC settings (required when protocol is oidc).

jitProvisioning
boolean

Create memberships on first sign-in (default false).

jitDefaultGroupId
integer<uint64> | null

Group for provisioned members (not owners or administrators).

Required range: 0 <= x <= 18446744073709552000

Response

Created

Single-object envelope around a SsoConnection.

data
object
required

A SAML or OIDC single sign-on connection.