---
title: "Get an SSO connection"
method: GET
path: "/v1/sso/connections/{connectionId}"
tags: ["SSO"]
---

# Get an SSO connection

`GET /v1/sso/connections/{connectionId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/sso/connections/{connectionId}`
- Auth: HTTP bearer

Returns one SSO connection of the organization with its setup URLs, domains, verification, test and enabled state.

## Path parameters

- `connectionId` string, required

## Response `200`

Organization SSO connection

- OrganizationSsoConnectionResponse
  - `connection` OrganizationSsoConnection, nullable, required
    - `id` string, required
    - `providerId` string, required
    - `name` string, nullable, required
    - `displayName` string, required
    - `kind` 'oidc' | 'saml', required
    - `issuer` string, uri, required
    - `domain` string, required
    - `domains` string[], required
    - `status` 'disabled' | 'enabled', required
    - `testStatus` 'untested' | 'testing' | 'succeeded' | 'failed', required
    - `testExpiresAt` string, date-time, nullable, required
    - `signInPath` string, required
    - `signInUrl` string, uri, required
    - `redirectUrl` string, uri, required
    - `acsUrl` string, uri, nullable, required
    - `metadataUrl` string, uri, nullable, required
    - `domainVerified` boolean, required
    - `domainVerificationHost` string, required: The TXT record's Host when the domain is its own DNS zone.
    - `domainVerificationDnsName` string, required
    - `domainVerificationDnsNames` object[], required
      - `domain` string, required
      - `dnsName` string, required
    - `domainVerificationRecords` OrganizationSsoDomainVerificationRecord[], required: The TXT record of each domain: its full DNS name and the Host to enter in each zone the domain can be managed in.
      - `domain` string, required
      - `dnsName` string, required: The full name the TXT record is looked up at.
      - `hosts` object[], required
        - `zone` string, required: The DNS zone the record is edited in.
        - `host` string, required: The Host to enter when the DNS provider adds the zone itself.
        - `exceedsProviderHostLimit` boolean, required: True when the Host is longer than some DNS providers accept (60 characters).
    - `oidc` OrganizationOidcSsoConfig, nullable, required
      - `clientId` string, nullable, required
      - `scopes` string[], required
      - `skipDiscovery` boolean, required
      - `authorizationEndpoint` string, uri, nullable, required
      - `tokenEndpoint` string, uri, nullable, required
      - `jwksEndpoint` string, uri, nullable, required
      - `userInfoEndpoint` string, uri, nullable, required
      - `tokenEndpointAuthentication` 'client_secret_basic' | 'client_secret_post', nullable, required
    - `saml` OrganizationSamlSsoConfig, nullable, required
      - `entryPoint` string, uri, nullable, required
      - `audience` string, nullable, required
      - `wantAssertionsSigned` boolean, required
    - `lastTestedAt` string, date-time, nullable, required
    - `lastError` string, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `domainVerificationToken` string, nullable
  - `domainVerificationExpiresAt` string, date-time, nullable

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: The caller needs the View single sign-on permission.
- `404`: The connection does not exist in this organization.

## Changes

- **2026-11-30** `482431db26bd`: 2 info
  - added the optional property `domainVerificationExpiresAt` to the response with the `200` status
  - added the required property `connection/anyOf[#/components/schemas/OrganizationSsoConnection]/domainVerificationRecords` to the response with the `200` status
- **2026-11-06** `133d32d0939a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/sso/connections/:connectionId/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
