List deals
Deals you're part of, newest activity first, with each one's status and what happens next. A deal is one creator making videos for one campaign.
View as Markdownhttps://yapfactory.com/api/v1/deals| Who can use it | Everyone: brands and creators |
| Tier | read: Reads. Changes nothing. |
| Scope | deals:read, or read |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | list_deals |
Parameters
statusopen: still in progress (default). closed: finished, declined or cancelled. Default "open".
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/deals?status=open&limit=20" \
-H "Authorization: Bearer $YAP_API_KEY"Response
200 with a list. Each item in data is what the MCP tool returns in deals, and meta carries the summary fields. Pass nextCursor back as cursor until hasMore is false. How paging works.
{
"data": [
{
"id": "3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19",
"side": "brand",
"status": "draft_submitted",
"open": true,
"campaign": "Morning routine with Sleepwell",
"with": "Maya R.",
"brandPays": {
"minor": 2750,
"currency": "USD",
"formatted": "$27.50"
},
"updatedAt": "2026-12-08T16:12:04.000Z",
"url": "https://yapfactory.com/deals/3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19"
}
],
"nextCursor": null,
"hasMore": false,
"meta": {
"total": 3
}
}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 deals:read (or read). |
forbidden | 403 | Not allowed for this account, for example while it's 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.