EaserixDocs
DevelopersAPI referenceFormsTurnstile

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 Markdown
POST
/v1/turnstile/domains
AuthorizationBearer <token>

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"  }}