List your apps, newest first
const url = 'https://api.virtualdisplay.io/v1/apps?search=hoofd&page=1&per_page=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.virtualdisplay.io/v1/apps?search=hoofd&page=1&per_page=20' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only apps whose name matches this text.
Example
hoofdThe page to answer, counted from 1.
Example
1How many apps a page holds, from 1 to 100. Defaults to 20, and a larger number is answered with 100.
Example
20Responses
Section titled “Responses”OK
object
One page of your apps, newest first.
object
The embed URL of the app, the address a Customer’s page embeds.
The app’s id.
Whether this is the model’s default app.
The id of the model the app shows. Use it in the model path.
The app’s name, as the Customer gave it.
What the app is: a viewer or a configurator.
Where this page sits among the matching apps.
object
The page this answer is for, starting at 1.
How many items a page holds.
How many items match, across every page.
How many pages the matching items fill.
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.
object
Null: an answer with this status names no field.
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
{ "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"}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"}