# Claim your domain

Tell us which domains your site runs on, and prove they are yours. A domain you have verified is yours alone: no other
account can claim it. Use this when you set up a new webshop, or when your integration manages the sites a Customer runs.

## Before you start

- A token for your integration, from [your first call](/en/developers/api/guides/first-call/).
- A public page on the domain that shows one of your apps, with its embed code in place. Verification reads that page.

## How it works

You claim a domain first. The claim stays pending for 24 hours. Within that time you verify it: we read a page on the
domain and look for one of your apps on it. The first account to verify a domain owns it.

## 1. Claim the domain

Send the domain as you would type it: a host or a full URL works. We store its registrable part, so `shop.example.com`
is stored as `example.com`, and the claim covers every subdomain.

<Operation id="addDomain" errors={[400, 409]} />

## 2. Verify it

Send the address of a public page on the domain that shows one of your apps. Use the `id` from step 1. When the page
embeds your app, `verified_at` is set and `expires_at` becomes `null`.

{/* The guide runner checks this step against the backend. Verify reads a public page, which the CI backend cannot reach, so the runner takes the declared 400 as the answer and checks its detail code. Its id comes from the claim in step 1. */}

<Operation
  id="verifyDomain"
  errors={[400, 404, 409, 429]}
  params={{ id: 'addDomain:domain.id' }}
  expect={400}
/>

## When verification fails

- `embed_not_found`: the page does not show one of your apps. Check that the embed code is on that page, then verify
  again.
- `page_unreachable`: we could not read the page. It must be public, without a login.
- `404` after a day: the pending claim lapsed. Claim the domain again.
- `409`: another account verified the domain first. The answer names no account.
- `429`: every page render is taken by other checks. Wait for the `Retry-After` seconds, then verify again.

Every code is described on the [errors page](/en/developers/api/errors/).

## Next

List the domains on your account at any time, pending and verified alike.

<Operation id="listDomains" errors={[]} />