Launch offer: service fee 10% 4% until 31 Dec, just enough to cover card processing. See pricing

← REST API reference

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 Markdown
GEThttps://yapfactory.com/api/v1/deals
Who can use itEveryone: brands and creators
Tierread: Reads. Changes nothing.
Scopedeals:read, or read
Idempotency-KeyNot used
Rate limitReads: 120 a minute
MCP toollist_deals

Parameters

status
queryoptional
"open" | "closed" | "all"

open: still in progress (default). closed: finished, declined or cancelled. Default "open".

limit
queryoptional
integer

How many to return. 1 to 50. Default 20.

cursor
queryoptional
string

The 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

CodeStatusWhen
invalid_request400A field failed validation (see meta.issues), or an unknown query parameter.
unauthorized401No token, or it's wrong, expired, revoked or from the other environment.
insufficient_scope403The token doesn't have deals:read (or read).
forbidden403Not allowed for this account, for example while it's paused.
rate_limited429Over the limit. Wait for Retry-After seconds.
internal500Our 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.