Ga naar inhoud
English

List your apps, newest first

GET
/v1/apps
curl --request GET \
--url 'https://api.virtualdisplay.io/v1/apps?search=hoofd&page=1&per_page=20' \
--header 'Authorization: Bearer <token>'
search
string

Only apps whose name matches this text.

Example

hoofd
page
integer

The page to answer, counted from 1.

Example

1
per_page
integer

How many apps a page holds, from 1 to 100. Defaults to 20, and a larger number is answered with 100.

Example

20

OK

Media typeapplication/json
object
apps
required

One page of your apps, newest first.

Array<object>
object
embed_url
required

The embed URL of the app, the address a Customer’s page embeds.

string
id
required

The app’s id.

string
is_default
required

Whether this is the model’s default app.

boolean
model_id
required

The id of the model the app shows. Use it in the model path.

string
name
required

The app’s name, as the Customer gave it.

string
thumbnail_url
required

A PNG of the app, or null until the first picture is made.

One of:
string
type
required

What the app is: a viewer or a configurator.

string
pagination
required

Where this page sits among the matching apps.

object
page
required

The page this answer is for, starting at 1.

integer
per_page
required

How many items a page holds.

integer
total
required

How many items match, across every page.

integer
total_pages
required

How many pages the matching items fill.

integer

Example

{
"apps": [
{
"embed_url": "https://embed.virtualdisplay.io?app=hoofdbeeld",
"id": "0196a1f3-6e2b-7a40-b9c1-2d8e4f7a0b13",
"is_default": true,
"model_id": "0196a1f0-b8d4-7e21-8a6f-3c9d1e5b2f40",
"name": "Hoofdbeeld",
"thumbnail_url": "https://static.virtualdisplay.io/thumbnails/0196a1f2-4c3e-7b18-9d2a-6e8f0b1c3d57/9c4e2f7a1b8d3e6f0a5c9b2e7d4f1a8c3e6b9d2f5a0c7e4b1d8f3a6c9e2b5d7f.png",
"type": "viewer"
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 42,
"total_pages": 3
}
}

The answer carries validation_error. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
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

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

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

The answer carries rate_limited. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • rate_limited: The integration or its Customer is over its budget. 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"
}