---
title: "Request an SSO connection's domain verification token"
method: POST
path: "/v1/sso/connections/{connectionId}/request-domain-verification"
tags: ["SSO"]
---

# Request an SSO connection's domain verification token

`POST /v1/sso/connections/{connectionId}/request-domain-verification`

## Request

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

Returns the current DNS TXT verification value for one SSO connection by id and when it expires, issuing a new one when the last has expired. One value verifies every domain the connection lists: publish it at each domain's record name.

## Path parameters

- `connectionId` string, required

## Response `201`

Domain verification token returned

- OrganizationSsoDomainVerificationResponse
  - `domainVerificationToken` string, required
  - `domainVerificationExpiresAt` string, date-time, required: When this value stops verifying. A new value is issued after that.

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `402`: SSO management requires a Team or Enterprise plan.
- `403`: The caller needs the Manage single sign-on permission and a recent sign-in.
- `404`: The connection does not exist in this organization.

## Changes

- **2026-11-30** `482431db26bd`: 1 info
  - added the required property `domainVerificationExpiresAt` to the response with the `201` status
- **2026-11-06** `133d32d0939a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/sso/connections/:connectionId/request-domain-verification/post.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)
