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
Section titled “Before you start”- 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.
How it works
Section titled “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
Section titled “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.
POST /v1/domains Claim a domain, pending until verified.
Request
curl -X POST "https://api.virtualdisplay.io/v1/domains" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"domain":"shop.example.com"}'const token = process.env.TOKEN;
const response = await fetch("https://api.virtualdisplay.io/v1/domains", { method: "POST", headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json", }, body: JSON.stringify({"domain":"shop.example.com"}),});
const data = await response.json();<?php
use GuzzleHttp\Client;
$token = getenv('TOKEN');$client = new Client(['base_uri' => 'https://api.virtualdisplay.io']);$response = $client->request('POST', '/v1/domains', [ 'headers' => [ 'Authorization' => 'Bearer ' . $token, 'Content-Type' => 'application/json', ], 'json' => ['domain' => 'shop.example.com'],]);echo $response->getBody();import os
import requests
token = os.environ["TOKEN"]response = requests.post( "https://api.virtualdisplay.io/v1/domains", headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"}, json={"domain": "shop.example.com"},)print(response.json())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"}2. Verify it
Section titled “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.
POST /v1/domains/{id}/verify Verify a domain against a page that embeds your app.
Request
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"}'const token = process.env.TOKEN;
const response = await fetch("https://api.virtualdisplay.io/v1/domains/0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05/verify", { method: "POST", headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json", }, body: JSON.stringify({"url":"https://shop.example.com/products/eiken-stoel"}),});
const data = await response.json();<?php
use GuzzleHttp\Client;
$token = getenv('TOKEN');$client = new Client(['base_uri' => 'https://api.virtualdisplay.io']);$response = $client->request('POST', '/v1/domains/0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05/verify', [ 'headers' => [ 'Authorization' => 'Bearer ' . $token, 'Content-Type' => 'application/json', ], 'json' => ['url' => 'https://shop.example.com/products/eiken-stoel'],]);echo $response->getBody();import os
import requests
token = os.environ["TOKEN"]response = requests.post( "https://api.virtualdisplay.io/v1/domains/0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05/verify", headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"}, json={"url": "https://shop.example.com/products/eiken-stoel"},)print(response.json())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"}When verification fails
Section titled “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.404after 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 theRetry-Afterseconds, 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
curl -X GET "https://api.virtualdisplay.io/v1/domains" \ -H "Authorization: Bearer $TOKEN"const token = process.env.TOKEN;
const response = await fetch("https://api.virtualdisplay.io/v1/domains", { method: "GET", headers: { Authorization: `Bearer ${token}`, },});
const data = await response.json();<?php
use GuzzleHttp\Client;
$token = getenv('TOKEN');$client = new Client(['base_uri' => 'https://api.virtualdisplay.io']);$response = $client->request('GET', '/v1/domains', [ 'headers' => [ 'Authorization' => 'Bearer ' . $token, ],]);echo $response->getBody();import os
import requests
token = os.environ["TOKEN"]response = requests.get( "https://api.virtualdisplay.io/v1/domains", headers={"Authorization": f"Bearer {token}"},)print(response.json())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.