> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign-in API: Single Sign-On Connections and Domains

> Connect an organization to its identity provider, claim and verify email domains, and require single sign-on with the OneCLI API.

An organization can make its members sign in through its own identity provider. That takes a connection to the provider, a verified email domain, and the requirement turned on.

Use these endpoints to manage all three. They exist on OneCLI Cloud only, and some need a plan with sign-in.

## Related guides

* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [List sign-in connections](/docs/api-reference/sign-in/list-sign-in-connections.md) | `GET /v2/org/sign-in/connections` | The organization's connections to an identity provider. |
| [Create a sign-in connection](/docs/api-reference/sign-in/create-a-sign-in-connection.md) | `POST /v2/org/sign-in/connections` | Connects the organization to its identity provider, by XML metadata (a URL or the document) or by OpenID Connect (issuer, client id and secret). |
| [Change a sign-in connection](/docs/api-reference/sign-in/change-a-sign-in-connection.md) | `PATCH /v2/org/sign-in/connections/{id}` | Renames, enables or disables a connection, or refreshes its provider details. |
| [Delete a sign-in connection](/docs/api-reference/sign-in/delete-a-sign-in-connection.md) | `DELETE /v2/org/sign-in/connections/{id}` | Removes the connection. |
| [Test a sign-in connection](/docs/api-reference/sign-in/test-a-sign-in-connection.md) | `POST /v2/org/sign-in/connections/{id}/test` | Fetches the provider's published details and checks their shape. |
| [List sign-in domains](/docs/api-reference/sign-in/list-sign-in-domains.md) | `GET /v2/org/sign-in/domains` | List the email domains this organization claimed for single sign-on with the OneCLI API, with whether each is verified. |
| [Claim a sign-in domain](/docs/api-reference/sign-in/claim-a-sign-in-domain.md) | `POST /v2/org/sign-in/domains` | Claims an email domain, unverified until its TXT record is found. |
| [Release a sign-in domain](/docs/api-reference/sign-in/release-a-sign-in-domain.md) | `DELETE /v2/org/sign-in/domains/{id}` | Releases an email domain the organization claimed for single sign-on. |
| [Verify a sign-in domain](/docs/api-reference/sign-in/verify-a-sign-in-domain.md) | `POST /v2/org/sign-in/domains/{id}/verify` | Looks up the domain's TXT record and marks it verified when it matches. |
| [Read the sign-in requirement](/docs/api-reference/sign-in/read-the-sign-in-requirement.md) | `GET /v2/org/sign-in/enforcement` | Whether members must sign in through the provider, and whether they may be made to. |
| [Change the sign-in requirement](/docs/api-reference/sign-in/change-the-sign-in-requirement.md) | `PATCH /v2/org/sign-in/enforcement` | Turns required single sign-on on or off for the organization. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.