Claim a domain; verify it next.
POST
/api/v1/domains
const url = 'https://example.com/api/v1/domains';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"domain":"example.com"}'};
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://example.com/api/v1/domains \ --header 'Content-Type: application/json' \ --data '{ "domain": "example.com" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
domain
required
string
Example
example.comResponses
Section titled “Responses”Media typeapplication/json
object
id
required
string format: uuid
domain
required
string
status
required
pending, verified or revoked.
string
challengeName
required
The TXT record that proves the claim, and its value.
string
challengeValue
required
string
method
txt or the provider kind that proved it.
string | null
createdBy
required
string
createdAt
required
string
verifiedAt
string | null
lastCheckedAt
string | null
lastError
string | null
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "domain": "example", "status": "example", "challengeName": "example", "challengeValue": "example", "method": "example", "createdBy": "example", "createdAt": "example", "verifiedAt": "example", "lastCheckedAt": "example", "lastError": "example"}Claimed already, here or elsewhere
Media typeapplication/json
Problem Details body.
object
code
required
Stable machine-readable code, e.g. forbidden.
string
title
required
Short human readable title.
string
status
required
HTTP status.
integer format: int32
detail
Details, if safe to expose.
string | null
Example
{ "code": "forbidden"}Media typeapplication/json
Problem Details body.
object
code
required
Stable machine-readable code, e.g. forbidden.
string
title
required
Short human readable title.
string
status
required
HTTP status.
integer format: int32
detail
Details, if safe to expose.
string | null
Example
{ "code": "forbidden"}