Skip to content
API reference List collections
API reference Collections

List collections

Lists the workspace's collections, newest first, with how many Library assets each one holds.

GET/api/v1/public/collections

Scope: read. The key's creator needs access to Collections.

Query parameters

qstringquery
Match on the collection name (case-insensitive, part of the name matches). Up to 200 characters.
limitintegerquerydefault 25
How many collections, 1 to 50.

Response

countinteger
Collections returned.
collectionsarray
Collections, newest first.
collections[].idstring
Collection UUID.
collections[].namestring
Name.
collections[].descriptionstring | null
Description.
collections[].asset_countinteger
Library assets in the collection (deleted and staged assets are not counted).
collections[].urlstring
App path of the collection.

Example request

curl "https://api.pipory.com/api/v1/public/collections?q=winners" \
  -H "Authorization: Bearer pip_your_key"

Example response

{
  "count": 1,
  "collections": [
    {
      "id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
      "name": "Q4 winners",
      "description": "Top spenders for the holiday push",
      "asset_count": 12,
      "url": "/collections/5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9"
    }
  ]
}

Errors

StatusCodeMeaning
401invalid_api_keyMissing, unknown, revoked or expired key
403insufficient_scopeThe key or its creator's role cannot read Collections
403upgrade_requiredThe workspace is not on a paid plan
422nonelimit out of range
429rate_limitedOver the key's rate limit