Claim a domain, pending until verified
const url = 'https://api.virtualdisplay.io/v1/domains';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"domain":"shop.example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.virtualdisplay.io/v1/domains \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "domain": "shop.example.com" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
Example
{ "domain": "shop.example.com"}Responses
Section titled “Responses”Created
object
The domain the request acted on, in the shape the list returns. verified_at stays null until the claim is verified.
object
The registrable domain, such as domein.nl.
The domain’s id. Use it in the verify and delete paths.
Example
{ "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 }}Bad Request
object
Null when the answer names no field. Otherwise, each field that is wrong:
domain:invalid_domain(Not a registrable domain, such as co.uk or a bare address.)
object
invalid_domain: Not a registrable domain, such as co.uk or a bare address.
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.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "details": { "domain": "invalid_domain" }, "error": "validation_error", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries unauthorized or token_invalid. See the errors page.
object
Null: an answer with this status names no field.
unauthorized: No Bearer token was sent, or the token was revoked, or its integration was disabled. Send a valid token, do not retry the same one.token_invalid: The token is malformed, has a bad signature or has expired. Exchange the secret for a new token, then retry once.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "token_invalid", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}{ "error": "unauthorized", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries forbidden. See the errors page.
object
Null: an answer with this status names no field.
forbidden: The token is valid, but this integration may not make this call. Do not retry.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "forbidden", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Conflict
object
Null: an answer with this status names no field.
already_exists: A domain another account has verified. The response names no account.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "already_exists", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Request Entity Too Large
object
Null: an answer with this status names no field.
body_too_large: The request body is larger than we accept, so nothing was done. Make it smaller, then retry once.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "body_too_large", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries rate_limited. See the errors page.
object
Null: an answer with this status names no field.
rate_limited: The integration or its Customer is over its budget. Wait for the Retry-After seconds, then retry.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "rate_limited", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries internal_error. See the errors page.
object
Null: an answer with this status names no field.
internal_error: Our fault. Retry with backoff, then stop; send the trace_id if it persists.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "internal_error", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}