List assets
/v1/assetsLists the media in your library, newest first. Every file you upload, import, or generate lands here, and an asset id is what every other endpoint takes as input.
- Credits:
- Free
- Rate limit:
- Default tier, 2/s and 50/min
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| type | query | string | No | Filter by media type.imageaudiovideo |
| category | query | string | No | Filter by how the asset was made, for example asset for uploads, generation for images, or voiceover for narration. |
| limit | query | integer | No | Assets per page. 1 to 100.default 50 |
| offset | query | integer | No | Number of assets to skip.default 0 |
Request
curl "https://api.crayo.ai/v1/assets?type=video" \
-H "Authorization: Bearer $CRAYO_API_KEY"Response
{
"success": true,
"total": 128,
"hasMore": true,
"assets": [
{
"id": "cm7x1k2p40001abcd",
"name": "hook-clip.mp4",
"key": "user-uploads/cm7x0v8qa0000abcd/api/9f1.../hook-clip.mp4",
"url": "https://cdn-crayo.com/user-uploads/cm7x0v8qa0000abcd/api/9f1.../hook-clip.mp4",
"type": "video",
"category": "asset",
"length": 12.4,
"size": 8421376,
"width": 1080,
"height": 1920,
"thumbnail": "user-uploads/cm7x0v8qa0000abcd/api/9f1.../thumb.jpg",
"thumbnailUrl": "https://cdn-crayo.com/user-uploads/cm7x0v8qa0000abcd/api/9f1.../thumb.jpg",
"createdAt": "2026-08-21T14:02:11.000Z"
}
]
}Errors
- 401MISSING_API_KEYNo Authorization header was sent, or it does not carry a crayo_sk_ key.
- 401UNAUTHORIZEDThe key sent is malformed, expired, or revoked.
- 429RATE_LIMITEDOver the rate limit. Wait Retry-After seconds.
- 500SERVER_ERRORSomething failed on our side. Retry with backoff.