`POST /v1/orgs/{org}/sso/domains`.
POST
/v1/orgs/{org}/sso/domains
const url = 'https://api.updawg.net/v1/orgs/example/sso/domains';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"domain":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs/example/sso/domains \ --header 'Content-Type: application/json' \ --data '{ "domain": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
domain
required
example.com. Addresses at it, and only it, sign in through the
connection once it is verified.
string
Examplegenerated
{ "domain": "example"}Responses
Section titled “Responses”Claimed, not yet verified: publish the TXT record it names, then verify. Claiming one already claimed here answers the same claim.
Media typeapplication/json
object
domain
required
string
txt_name
required
The TXT record to publish: its name…
string
txt_value
required
…and its value.
string
verified
required
boolean
verified_at
string | null format: date-time
Examplegenerated
{ "domain": "example", "txt_name": "example", "txt_value": "example", "verified": true, "verified_at": "2026-04-15T12:00:00Z"}Not a domain.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role, or no CSRF token. Or the plan does not include single sign-on (Enterprise): plan-required.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}