EaserixDocs
DevelopersAPI referenceFormsTurnstile

Check a Turnstile domain's proof

Looks for the proof: a DNS TXT record at proof.dnsName holding proof.dnsValue (verifies the host and its subdomains), else the file at proof.fileUrl holding proof.fileBody (verifies that host only; fetched over HTTPS on port 443 from public addresses only, no redirects). At most 6 checks per workspace per minute. Another workspace's domain is 404.

View as Markdown
POST
/v1/turnstile/domains/{host}/verify
AuthorizationBearer <token>

In: header

Path Parameters

host*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/turnstile/domains/string/verify"
{  "domain": {    "host": "string",    "verified": true,    "verifiedAt": "2019-08-24T14:15:22Z",    "method": "string",    "proof": {      "dnsName": "string",      "dnsValue": "string",      "fileUrl": "string",      "fileBody": "string"    },    "createdAt": "2019-08-24T14:15:22Z"  }}