Claim a Turnstile domain
Claims a host (like example.com) and returns the proof to publish. Refused (400) with a code: turnstile_host_ip (an IP address), turnstile_host_local (a local name), turnstile_host_shared (a public suffix or shared platform name; their subdomains are fine), turnstile_host_easerix (Easerix's own names), turnstile_host_invalid (not a domain name). Claiming a host already claimed returns it (200). At most `limit` domains per workspace (409 turnstile_domain_limit).
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/turnstile/domains" \ -H "Content-Type: application/json" \ -d '{ "host": "example.com" }'{ "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" }}List the workspace's Turnstile domains
Domains the caller's workspace has claimed for Turnstile, verified or not, with the proof each needs. Any member of the workspace.
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.