Ga naar inhoud
English

List your models, live or archived

GET
/v1/models
curl --request GET \
--url 'https://api.virtualdisplay.io/v1/models?page=1&per_page=20&sort=newest&search=eiken&status=live' \
--header 'Authorization: Bearer <token>'
page
integer

Which page of the list to answer, from 1. Defaults to 1.

Example

1
per_page
integer

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

Example

20
sort
string
Allowed values: newest oldest name views

The order of the live models: newest upload first by default, oldest first, by name, or most loaded first. Archived models always list newest archive first, so sort does not apply to them.

Example

newest
search
string

Keeps the models whose filename, or whose Customer’s company name, contains this text. Case does not matter.

Example

eiken
status
string
Allowed values: live archived

Which models to list: live by default, or archived, the models the account archive moved out of the live bucket.

Example

live

OK

Media typeapplication/json
object
models
required

One page of your models, in the order the sort asked for.

Array<object>
object
archived_at

When the account archive moved the model’s files out of the live bucket. Set only on an archived model.

string
archives_on
required

The UTC day the downgrade archive moves this live model, or null. Set only while a Shopify downgrade grace is pending.

One of:
string
embed_url
required

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

string
file_size
required

The stored GLB in bytes, after sanitising.

integer
id
required

The model’s id. Use it in the model path. It is not the filename.

string
load_count
required

How many times a Shopper has viewed the model in a viewer. Zero until the first view.

integer
name
required

The model’s name: its file’s name without the .glb extension.

string
purge_at

When the archived files are deleted for good. Set only on an archived model.

string
thumbnail_url
required

A PNG of the model’s default app, or null while that app has none.

One of:
string
uploaded_at
required

When the file was uploaded, or last replaced. A replace moves it forward.

string
pagination
required

Where this page sits among the matching models.

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

{
"models": [
{
"archived_at": "2026-11-10T00:00:00Z",
"archives_on": null,
"embed_url": "https://embed.virtualdisplay.io?app=eiken-stoel",
"file_size": 2481916,
"id": "0196a1f0-b8d4-7e21-8a6f-3c9d1e5b2f40",
"load_count": 1284,
"name": "eiken-stoel",
"purge_at": "2027-01-09T00:00:00Z",
"thumbnail_url": "https://static.virtualdisplay.io/thumbnails/0196a1f2-4c3e-7b18-9d2a-6e8f0b1c3d57/9c4e2f7a1b8d3e6f0a5c9b2e7d4f1a8c3e6b9d2f5a0c7e4b1d8f3a6c9e2b5d7f.png",
"uploaded_at": "2026-11-16T14:03:21Z"
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 42,
"total_pages": 3
}
}

Bad Request

Media typeapplication/json
object
details

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

  • sort: invalid_input (Not newest, oldest, name or views.)
  • status: invalid_input (Not live or archived.)
object
sort
  • invalid_input: Not newest, oldest, name or views.
string
Allowed values: invalid_input
status
  • invalid_input: Not live or archived.
string
Allowed values: invalid_input
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

Exampleinvalid_input
{
"details": {
"sort": "invalid_input",
"status": "invalid_input"
},
"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"
}