Skip to content
Nederlands

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.

  • A token for your integration, from your first call.
  • A public page on the domain that shows one of your apps, with its embed code in place. Verification reads that page.

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.

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.

POST /v1/domains Claim a domain, pending until verified.

Request

Terminal window
curl -X POST "https://api.virtualdisplay.io/v1/domains" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"domain":"shop.example.com"}'

Response 201

{
"domain": {
"created_at": "2026-11-17T09:12:44Z",
"domain": "example.com",
"expires_at": "2026-11-18T09:12:44Z",
"id": "0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05",
"verified_at": null
}
}
What each field means

Request fields

  • domain (required): The domain to claim, as typed: a host or a URL. Stored as its registrable domain, so shop.domein.nl is stored as domein.nl.

Response fields

  • domain: The domain the request acted on, in the shape the list returns. verified_at stays null until the claim is verified.
  • domain.created_at: When the claim was made.
  • domain.domain: The registrable domain, such as domein.nl.
  • domain.expires_at: When a pending claim lapses. Null once the domain is verified.
  • domain.id: The domain's id. Use it in the verify and delete paths.
  • domain.verified_at: When the domain was verified. Null while the claim is pending.
Errors
400
  • validation_error: A field is wrong, or the body is not the JSON the operation takes. details names each wrong field; repair it, do not retry as it is.

invalid_domain, as the answer carries it:

{
"details": {
"domain": "invalid_domain"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
409
  • already_exists: A domain another account has verified. The response names no account.

already_exists, as the answer carries it:

{
"error": "already_exists",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

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.

POST /v1/domains/{id}/verify Verify a domain against a page that embeds your app.

Request

Terminal window
curl -X POST "https://api.virtualdisplay.io/v1/domains/0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05/verify" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://shop.example.com/products/eiken-stoel"}'

Response 200

{
"domain": {
"id": "0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05",
"domain": "example.com",
"verified_at": "2026-11-17T09:14:02Z",
"expires_at": null,
"created_at": "2026-11-17T09:12:44Z"
}
}
What each field means

Request fields

  • url (required): The page to read, as an absolute URL on the claimed domain. It must embed one of your apps for the domain to be verified.

Response fields

  • domain: The domain the request acted on, in the shape the list returns. verified_at stays null until the claim is verified.
  • domain.created_at: When the claim was made.
  • domain.domain: The registrable domain, such as domein.nl.
  • domain.expires_at: When a pending claim lapses. Null once the domain is verified.
  • domain.id: The domain's id. Use it in the verify and delete paths.
  • domain.verified_at: When the domain was verified. Null while the claim is pending.
Errors
400
  • validation_error: A field is wrong, or the body is not the JSON the operation takes. details names each wrong field; repair it, do not retry as it is.

embed_not_found, as the answer carries it:

{
"details": {
"url": "embed_not_found"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

invalid_input, as the answer carries it:

{
"details": {
"url": "invalid_input"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

outside_domain, as the answer carries it:

{
"details": {
"url": "outside_domain"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

page_unreachable, as the answer carries it:

{
"details": {
"url": "page_unreachable"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
404
  • not_found: No such domain in your account, or its pending claim has lapsed.

not_found, as the answer carries it:

{
"error": "not_found",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
409
  • already_exists: Another account verified the domain since you claimed it.

already_exists, as the answer carries it:

{
"error": "already_exists",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
429
  • rate_limited: Every page render is taken by other checks. Wait for the Retry-After seconds, then retry.

rate_limited, as the answer carries it:

{
"error": "rate_limited",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
  • 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.

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

GET /v1/domains List the Customer's domains.

Request

Terminal window
curl -X GET "https://api.virtualdisplay.io/v1/domains" \
-H "Authorization: Bearer $TOKEN"

Response 200

{
"domains": [
{
"created_at": "2026-11-17T09:12:44Z",
"domain": "example.com",
"expires_at": "2026-11-18T09:12:44Z",
"id": "0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05",
"verified_at": null
}
]
}
What each field means

Response fields

  • domains: The Customer's domains, pending and verified alike.
  • domains.created_at: When the claim was made.
  • domains.domain: The registrable domain, such as domein.nl.
  • domains.expires_at: When a pending claim lapses. Null once the domain is verified.
  • domains.id: The domain's id. Use it in the verify and delete paths.
  • domains.verified_at: When the domain was verified. Null while the claim is pending.