---
title: "Create SSO connection"
method: POST
path: "/auth/sso/connections"
tags: ["SSO Connections"]
---

# Create SSO connection

`POST /auth/sso/connections`

Create a new SSO identity provider connection.

## Headers

- `x-idempotency-key` string, uuid, required
- `Content-Type` string, required

## Request body

- object
  - `type` 'SAML', required — Identity provider connection type.
  - `provider` 'auth0' | 'jumpcloud' | 'microsoft' | 'okta', required — Allowed SSO providers.
  - `metadata` object, required — Provider-specific metadata required to establish the connection.
    - `saml` object, required — SAML-specific metadata for the identity provider connection.
      - `samlMetadataURL` string, uri, required — HTTPS URL referencing the SAML metadata document.

## Response `201`

Created.

- object — Identity provider connection managed by the SSO service.
  - `id` string, uuid, required — Unique identifier of the SSO connection.
  - `reference` string, required — Identifier assigned by the downstream identity provider.
  - `type` 'SAML', required — Identity provider connection type.
  - `status` 'enabled' | 'disabled', required — Lifecycle status of the connection.
  - `metadata` object, required
    - `saml` object, required — SAML-specific metadata for the identity provider connection.
      - `samlMetadataURL` string, uri, required — HTTPS URL referencing the SAML metadata document.
  - `name` string, required — Internal name assigned to the connection.
  - `displayName` string, required — Display label returned to clients initiating SSO.
  - `provider` 'auth0' | 'jumpcloud' | 'microsoft' | 'okta', required — Allowed/Supported SSO providers.
  - `createdAt` string, date-time, required — ISO-8601 timestamp when the connection was created.
  - `updatedAt` string, date-time, required — ISO-8601 timestamp when the connection was last updated.

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Insufficient Scope.
- `406` — Not Acceptable.
- `409` — Conflict.
- `415` — Unsupported Media Type.
- `422` — Unprocessable Entity.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/payrails/apis/payrails-api-reference.md) · [All operations](https://skmtc.net/payrails/apis/payrails-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payrails/payrails-api-reference/versions/9dd2f0158582/schema)
