Get a campaign
One of your campaigns: the brief, the deal terms, the ranked shortlist of creators (with who asked to join) and every deal on it.
View as MarkdownGET
https://yapfactory.com/api/v1/campaigns/{campaignId}| Who can use it | Brands |
| Tier | read: Reads. Changes nothing. |
| Scope | campaigns:read, or read |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | get_campaign |
Parameters
campaignIdpathrequired
The campaign's id.
Example request
curl "https://yapfactory.com/api/v1/campaigns/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f" \
-H "Authorization: Bearer $YAP_API_KEY"Response
200 with the result in data: the same object the MCP tool returns.
{
"data": {
"id": "8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f",
"title": "Morning routine with Sleepwell",
"status": "live",
"product": {
"id": "5d41402a-bc4b-4a76-b971-9e3f2c1d0a8b",
"name": "Sleepwell",
"url": "https://apps.apple.com/app/id0000000000"
},
"terms": {
"videosPerCreator": 1,
"openingsPerVideo": 1,
"adRights": "Brand's channels, no ads",
"budgetPerVideo": {
"minor": 3000,
"currency": "USD",
"formatted": "$30.00"
},
"targetCountries": [
"US"
],
"deadline": "2026-12-16T12:00:00.000Z",
"accessBy": "2026-12-04T12:00:00.000Z",
"revisionRounds": 3,
"autoInvite": true
},
"brief": {
"keyMessage": "Sleepwell helps you fall asleep in 10 minutes without your phone.",
"hooks": [
"I used to scroll until 2am.",
"My sleep score went from 52 to 81."
],
"cta": "Try it free tonight.",
"dos": [
"Film on your phone, vertical, natural light",
"Show the app on screen within the first 5 seconds"
],
"donts": [
"No health or medical claims"
],
"creatorDecides": {},
"exampleVideoUrl": null
},
"shortlist": [
{
"creatorId": "c9f0f895-fb98-4ab3-8e3c-1d2f3a4b5c6d",
"name": "Maya R.",
"score": 0.92,
"reasons": [
"Makes wellness content",
"71% US audience"
],
"rate": {
"minor": 2500,
"currency": "USD",
"formatted": "$25.00"
},
"askedToJoin": false,
"decision": "yes"
}
],
"deals": [
{
"id": "3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19",
"creator": "Maya R.",
"status": "draft_submitted",
"url": "https://yapfactory.com/deals/3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19"
}
],
"url": "https://yapfactory.com/brand/campaigns/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f"
}
}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 campaigns:read (or read). |
forbidden | 403 | Only for brands, or the account can't do this yet (email not confirmed, paused). |
not_found | 404 | No such campaign, or it isn't yours. |
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.