Skip to content
API reference List assets
API reference Assets

List or search assets

Lists the workspace's Library assets, newest first, with optional word search, tag and media type filters.

GET/api/v1/public/assets

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

The search is the same one the Library uses. Each word of q must match at least one of the asset's name, description, hook, angle, style, creator, OCR text, transcript or linked product, so adding words narrows the result.

Query parameters

qstringquery
Words to match. All words must match. Up to 200 characters.
tagstringquery
Only assets carrying any of these tags. Repeat the parameter for more than one (tag=ugc&tag=summer). Case-insensitive, and part of a tag matches.
media_typestringquery
image, video or audio.
limitintegerquerydefault 25
Page size, 1 to 100.
offsetintegerquerydefault 0
Rows to skip, 0 to 100,000.

Response

totalinteger
Assets matching the filters.
limitinteger
The page size used.
offsetinteger
The offset used.
itemsarray
The page of assets, newest first.
items[].idstring
Asset UUID.
items[].namestring
Asset name.
items[].urlstring
The asset in the Pipory app.
items[].media_typestring
image, video or audio.
items[].tagsarray
Tags on the asset.
items[].hookstring | null
The hook from AI analysis.
items[].anglestring | null
The angle from AI analysis.
items[].stylestring | null
The style from AI analysis.
items[].file_urlstring | null
The original file.
items[].thumb_urlstring | null
A thumbnail, when one exists.
items[].analysis_statusstring
uploading, pending, analyzing, retrying, completed, failed or skipped.
items[].created_atstring
ISO 8601 timestamp.

Example request

curl -G https://api.pipory.com/api/v1/public/assets \
  -H "Authorization: Bearer pip_your_key" \
  --data-urlencode "q=morning routine" \
  --data-urlencode "tag=ugc" \
  --data-urlencode "media_type=video" \
  --data-urlencode "limit=2"

Example response

{
  "total": 14,
  "limit": 2,
  "offset": 0,
  "items": [
    {
      "id": "8f2c4a1e-6b3d-4c9f-a2e1-7d5b3c1a9e8f",
      "name": "UGC hook v3",
      "url": "https://pipory.com/library/8f2c4a1e-6b3d-4c9f-a2e1-7d5b3c1a9e8f",
      "media_type": "video",
      "tags": ["ugc", "summer"],
      "hook": "I stopped hitting snooze",
      "angle": "Problem solution",
      "style": "UGC",
      "file_url": "https://media.example.com/ws/8f2c.mp4",
      "thumb_url": "https://media.example.com/ws/8f2c.jpg",
      "analysis_status": "completed",
      "created_at": "2026-10-21T13:58:40"
    }
  ]
}

Errors

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