# 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).

Canonical: https://easerix.com/docs/developers/api/forms/turnstile/createTurnstileDomain

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="forms" operations={[{"path":"/v1/turnstile/domains","method":"post"}]} />
    </>
  );
}
