Skip to content

Verify a domain

POST
/api/v1/domains/{host}/verify
curl --request POST \
--url http://localhost:3000/api/v1/domains/example/verify \
--header 'Authorization: Bearer <token>'

Looks up its TXT record, and its CNAME when the server names a target, now; a 422 names what is missing and what was found.

Scope: admin.

host
required
string

E.g. assets.example.com

The domain

Media typeapplication/json
object
data
required
object
host
required
string
verified
required
boolean
record
required

What proves it: add this record at your DNS host

object
type
required
string
Allowed value: TXT
name
required
string
value
required
string
cname
required
Any of:
object
type
required
string
Allowed value: CNAME
name
required
string
value
required
string
app
required

Used for the app: the whole app answers here

boolean
primary
required

The default of those used for the app: links in email point here

boolean
portal
required

The portal it serves, by slug; null for the whole app

string | null
url
required
string format: uri
Example
{
"data": {
"record": {
"type": "TXT"
},
"cname": {
"type": "CNAME"
}
}
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}