Ga naar inhoud
English

Je domein claimen

Laat ons weten op welke domeinen je site draait en bewijs dat ze van jou zijn. Een domein dat je hebt laten controleren, is alleen van jou: geen ander account kan het claimen. Gebruik dit als je een nieuwe webshop opzet of als je integratie de sites van je klanten beheert.

  • Een token voor je integratie, uit je eerste request.
  • Een openbare pagina op het domein die een van je apps toont, met de embedcode erop. De controle leest die pagina.

Eerst claim je een domein. De claim blijft 24 uur open. Binnen die tijd laat je hem controleren: we lezen een pagina op het domein en zoeken daar een van je apps. Het eerste account dat een domein laat controleren, is de eigenaar.

Stuur het domein zoals je het zou typen: een host of een volledige URL werkt allebei. We bewaren het registreerbare deel, dus shop.voorbeeld.nl wordt voorbeeld.nl, en de claim geldt voor elk subdomein.

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
}
}
Wat elk veld betekent

Velden van het request

  • domain (verplicht): 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.

Velden van de response

  • 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.
Foutmeldingen
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, zoals de response hem meegeeft:

{
"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, zoals de response hem meegeeft:

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

Stuur het adres van een openbare pagina op het domein die een van je apps toont. Gebruik de id uit stap 1. Staat je app op die pagina, dan krijgt verified_at een waarde en wordt expires_at 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"
}
}
Wat elk veld betekent

Velden van het request

  • url (verplicht): 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.

Velden van de response

  • 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.
Foutmeldingen
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, zoals de response hem meegeeft:

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

invalid_input, zoals de response hem meegeeft:

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

outside_domain, zoals de response hem meegeeft:

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

page_unreachable, zoals de response hem meegeeft:

{
"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, zoals de response hem meegeeft:

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

already_exists, zoals de response hem meegeeft:

{
"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, zoals de response hem meegeeft:

{
"error": "rate_limited",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
  • embed_not_found: de pagina toont geen van je apps. Check of de embedcode op die pagina staat en laat het domein opnieuw controleren.
  • page_unreachable: we konden de pagina niet lezen. Hij moet openbaar zijn, zonder inloggen.
  • 404 na een dag: de open claim is verlopen. Claim het domein opnieuw.
  • 409: een ander account liet het domein eerder controleren. De response noemt geen account.
  • 429: andere controles gebruiken alle pagina’s die we tegelijk kunnen lezen. Wacht de seconden uit Retry-After en probeer het opnieuw.

Elke code staat bij foutmeldingen.

Vraag op elk moment de domeinen van je account op, open en gecontroleerd.

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
}
]
}
Wat elk veld betekent

Velden van de response

  • 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.