Viewrium Docs
HTTP referenceProducts

List products

GET/v1/products

Lists products, newest first by default, with total for paging. Reads one organization: your key's, the org_id you name, or your only one; scope=all reads every organization you can reach. Different filters combine with AND; repeated values of one filter combine with OR (for tag, tag_match decides).

Query Parameters

limit?Limit

How many items to return, 1 to 200.

Range1 <= value <= 200
Default50
offset?Offset

How many items to skip before the page.

Range0 <= value
Default0
org_id?|

The organization to read. With a key, its own organization is read and org_id may be left out. Signed in, it is required unless you belong to one organization or send scope=all.

scope?ListScope

org (the default) reads one organization. all reads every organization you can reach; it needs a signed-in session (400 with a key).

Default"org"

Value in

  • "org"
  • "all"
q?|

Search text, 1 to 200 characters: products whose title or custom_id contains it, ignoring case.

custom_id?|

Only the product with exactly this custom_id.

status?array<>|

Only products showing one of these statuses (their display_status). Repeat the parameter for several.

tag?array<string>|

Only products with these tags. Repeat the parameter for several; tag_match decides whether a product needs all of them or any.

tag_match?TagMatch

all (the default): a product must carry every tag. any: at least one.

Default"all"

Value in

  • "all"
  • "any"
created_after?|

Only products created at or after this time (ISO 8601).

created_before?|

Only products created before this time (ISO 8601).

created_by?array<>|

Only products created by these users, by user id. Repeat the parameter for several.

has_comments?|

true: only products with comments. false: only products without.

has_warnings?|

true: only products with a warning. false: only products without.

form?array<string>|

Only products of these shape classes: regular, wall, cylindrical, character or painting. Repeat the parameter for several.

source_type?array<>|

Only products created from these sources: image, video, url or model. Repeat the parameter for several.

sort?ProductSortField

What to sort by: created_at (the default) or title.

Default"created_at"

Value in

  • "created_at"
  • "title"
order?SortOrder

desc (the default) or asc.

Default"desc"

Value in

  • "asc"
  • "desc"

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/products"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "title": "string",      "custom_id": "string",      "tags": [        "string"      ],      "status": "awaiting_review",      "display_status": "published",      "published": false,      "form": "string",      "source_type": "image",      "price": 0,      "currency": "string",      "height": 0,      "width": 0,      "depth": 0,      "display_unit": "mm",      "images_ordered": false,      "thumbnail_url": "string",      "has_warnings": false,      "warning_count": 0,      "comment_count": 0,      "image_count": 0,      "model_status": "planned",      "owner": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "display_name": "string",        "email": "string"      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "viewer_url": "string"    }  ],  "total": 0,  "limit": 0,  "offset": 0}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}