PixViroDocs

Folders, tags & metadata

Organize assets with folders, tags and your own metadata fields, and find them with search.

Folders

A folder is the path part of a public ID: products/shoes/red lives in products/shoes. Folders exist while something is in them; there's nothing to create or delete. The path is part of the delivery URL.

  • GET /v1/folders?parent=products — immediate subfolders, with recursive asset counts.
  • GET /v1/assets?folder=products — assets directly in a folder (add recursive=true for the subtree).
  • Moving an asset means renaming its public ID with PATCH /v1/assets/{id} {"public_id": "archive/red"} — optionally keeping a 301 redirect from the old URL.

Tags

Labels for filtering and automation (up to 64 characters: letters, digits, spaces, -, _, : and .; stored lowercase).

# Replace an asset's tags
curl -X PATCH https://pixviro.com/v1/assets/$ASSET_ID \
  -H "Authorization: Bearer $PIXVIRO_API_KEY" -H "Content-Type: application/json" \
  -d '{"tags":["shoes","sale"]}'

# Add/remove on up to 100 assets at once
curl https://pixviro.com/v1/assets/tags \
  -H "Authorization: Bearer $PIXVIRO_API_KEY" -H "Content-Type: application/json" \
  -d '{"asset_ids":["01J9…","01J8…"],"add":["summer"],"remove":["sale"]}'

GET /v1/tags lists the tags in use with counts, by name.

Custom metadata

Your own key/value fields per asset (keys: a letter, then letters, digits or _; values up to 1,024 characters). The number of keys per asset depends on your plan.

curl -X PATCH https://pixviro.com/v1/assets/$ASSET_ID \
  -H "Authorization: Bearer $PIXVIRO_API_KEY" -H "Content-Type: application/json" \
  -d '{"custom_metadata":{"sku":"RS-42","discontinued":null}}'

PATCH merges: sku is set, discontinued is removed. Send "custom_metadata": null to clear everything.

Search

GET /v1/assets filters and sorts; every list is cursor-paginated (limit up to 100, then cursor from meta.next_cursor). Tags and folders return up to 1,000 per page. The SDKs iterate all pages for you (assets.all(…); tags.list() and folders.list() return everything).

Filter
q Text in the public ID or filename
prefix Public ID starts with
folder, recursive One folder, or its subtree
tag, tags[], tags_match=all|any By tags
metadata[key]=value Custom metadata equals (empty value: key present)
resource_type, format, orientation image/pdf, source format, landscape/portrait/square
min_width, max_width, min_height, max_height Pixels
min_bytes, max_bytes, created_after, created_before Size and dates
sort -created_at (default), created_at, ±bytes, ±public_id, ±width
trashed=only The trash
curl -G https://pixviro.com/v1/assets -H "Authorization: Bearer $PIXVIRO_API_KEY" \
  --data-urlencode "folder=products" -d recursive=true -d tag=sale \
  --data-urlencode "metadata[sku]=RS-42" -d sort=-bytes