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/assetsScope: 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
qstringqueryWords to match. All words must match. Up to 200 characters.
tagstringqueryOnly 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_typestringqueryimage, video or audio.limitintegerquerydefault 25Page size, 1 to 100.
offsetintegerquerydefault 0Rows to skip, 0 to 100,000.
Response
totalintegerAssets matching the filters.
limitintegerThe page size used.
offsetintegerThe offset used.
itemsarrayThe page of assets, newest first.
items[].idstringAsset UUID.
items[].namestringAsset name.
items[].urlstringThe asset in the Pipory app.
items[].media_typestringimage, video or audio.items[].tagsarrayTags on the asset.
items[].hookstring | nullThe hook from AI analysis.
items[].anglestring | nullThe angle from AI analysis.
items[].stylestring | nullThe style from AI analysis.
items[].file_urlstring | nullThe original file.
items[].thumb_urlstring | nullA thumbnail, when one exists.
items[].analysis_statusstringuploading, pending, analyzing, retrying, completed, failed or skipped.items[].created_atstringISO 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
| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | Missing, unknown, revoked or expired key |
403 | insufficient_scope | The key or its creator's role cannot read the Library |
403 | upgrade_required | The workspace is not on a paid plan |
422 | none | limit, offset or media_type out of range |
429 | rate_limited | Over the key's rate limit |