Ask to join a campaign
Tell the brand you'd like to make this campaign. You go on their shortlist; some brands invite straight away. Free, no limit. For use once the person has agreed.
View as MarkdownPOST
https://yapfactory.com/api/v1/marketplace/campaigns/{campaignId}/ask| Who can use it | Creators |
| Tier | outbound: Reaches other people: an email, a notification or a public post. |
| Scope | marketplace:write, or write |
| Idempotency-Key | Required |
| Rate limit | Writes: 20 a minute, of which outbound: 10 a minute |
| MCP tool | ask_to_join |
This reaches other people or the public. If an agent makes the call, it should confirm the details with the person first.
Parameters
campaignIdpathrequired
The campaign's id.
Example request
curl -X POST "https://yapfactory.com/api/v1/marketplace/campaigns/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f/ask" \
-H "Authorization: Bearer $YAP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Response
200 with the result in data: the same object the MCP tool returns.
{
"data": {
"campaignId": "8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f",
"asked": true,
"invitedAlready": false,
"dealId": null,
"url": "https://yapfactory.com/creator/browse/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), an unknown query parameter, or no Idempotency-Key. |
unauthorized | 401 | No token, or it's wrong, expired, revoked or from the other environment. |
insufficient_scope | 403 | The token doesn't have marketplace:write (or write). |
forbidden | 403 | Only for creators, or the account can't do this yet (email not confirmed, paused). |
not_found | 404 | No such campaign, or it isn't yours. |
conflict | 409 | Its current state doesn't allow this. message says why, in words you can show. |
idempotency_conflict | 409 | The same Idempotency-Key came with a different body. |
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.