List videos you can post
Finished videos the brand may post: approved videos from completed deals. An id from here is the video for schedule_post; prepare_post_upload is for posting your own file.
View as Markdownhttps://yapfactory.com/api/v1/posts/videos| Who can use it | Brands |
| Tier | read: Reads. Changes nothing. |
| Scope | posts:read, or read |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | list_postable_videos |
Parameters
limitHow many to return. 1 to 50. Default 20.
cursorThe nextCursor from the previous page. Leave out for the first page.
Example request
curl "https://yapfactory.com/api/v1/posts/videos" \
-H "Authorization: Bearer $YAP_API_KEY"Response
200 with a list. Each item in data is what the MCP tool returns in videos. Pass nextCursor back as cursor until hasMore is false. How paging works.
{
"data": [
{
"deliverableId": "4a8a08f0-9d37-4b73-9a5c-2f6a1e0d7c33",
"filename": "sleepwell-maya-v2.mp4",
"campaign": "Morning routine with Sleepwell",
"creator": "Maya R.",
"dealId": "3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19"
}
],
"nextCursor": null,
"hasMore": false
}An example: fields that don't apply are null, and new fields can be added at any time, so ignore ones you don't know. Every response carries Request-Id and the RateLimit-* headers.
Errors
| Code | Status | When |
|---|---|---|
invalid_request | 400 | A field failed validation (see meta.issues), or an unknown query parameter. |
unauthorized | 401 | No token, or it's wrong, expired, revoked or from the other environment. |
insufficient_scope | 403 | The token doesn't have posts:read (or read). |
forbidden | 403 | Only for brands, or the account can't do this yet (email not confirmed, paused). |
rate_limited | 429 | Over the limit. Wait for Retry-After seconds. |
internal | 500 | Our fault. Retry later, and send us the requestId if it keeps happening. |
Every error has the same shape. See Errors for what to do about each one.