Ga naar inhoud
English

Verify a domain against a page that embeds your app

POST
/v1/domains/{id}/verify
curl --request POST \
--url https://api.virtualdisplay.io/v1/domains/0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://shop.example.com/products/eiken-stoel" }'
id
required
string format: uuid

The domain’s id, from the list or the claim.

Example

0196a1f1-0b3c-7e5a-a7d8-4c2b9f1e6a05
Media typeapplication/json
object
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.

string

Example

{
"url": "https://shop.example.com/products/eiken-stoel"
}

OK

Media typeapplication/json
object
domain
required

The domain the request acted on, in the shape the list returns. verified_at stays null until the claim is verified.

object
created_at
required

When the claim was made.

One of:
string format: date-time
domain
required

The registrable domain, such as domein.nl.

string
expires_at
required

When a pending claim lapses. Null once the domain is verified.

One of:
string format: date-time
id
required

The domain’s id. Use it in the verify and delete paths.

string format: uuid
verified_at
required

When the domain was verified. Null while the claim is pending.

One of:
string format: date-time

Example

{
"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"
}
}

Bad Request

Media typeapplication/json
object
details

Null when the answer names no field. Otherwise, each field that is wrong:

  • url: invalid_input (Not an absolute URL.), outside_domain (The URL is not on the domain being verified.), page_unreachable (The page could not be read, or it is not public.), embed_not_found (The page does not embed any of your apps.)
object
url
  • invalid_input: Not an absolute URL.
  • outside_domain: The URL is not on the domain being verified.
  • page_unreachable: The page could not be read, or it is not public.
  • embed_not_found: The page does not embed any of your apps.
string
Allowed values: invalid_input outside_domain page_unreachable embed_not_found
error
required
  • 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.
string
Allowed values: validation_error
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

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

The answer carries unauthorized or token_invalid. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • 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.
string
Allowed values: unauthorized token_invalid
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

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

The answer carries forbidden. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • forbidden: The token is valid, but this integration may not make this call. Do not retry.
string
Allowed values: forbidden
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Exampleforbidden
{
"error": "forbidden",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Not Found

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • not_found: No such domain in your account, or its pending claim has lapsed.
string
Allowed values: not_found
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplenot_found
{
"error": "not_found",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Conflict

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • already_exists: Another account verified the domain since you claimed it.
string
Allowed values: already_exists
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

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

Request Entity Too Large

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • body_too_large: The request body is larger than we accept, so nothing was done. Make it smaller, then retry once.
string
Allowed values: body_too_large
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplebody_too_large
{
"error": "body_too_large",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Too Many Requests

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • rate_limited: Every page render is taken by other checks. Wait for the Retry-After seconds, then retry.
string
Allowed values: rate_limited
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplerate_limited
{
"error": "rate_limited",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

The answer carries internal_error. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • internal_error: Our fault. Retry with backoff, then stop; send the trace_id if it persists.
string
Allowed values: internal_error
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Exampleinternal_error
{
"error": "internal_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}