Order a UGC campaign via API or AI agent
UGC Pocket lets an AI agent order a campaign through a REST API or an MCP server. Every order creates a draft that the brand confirms and funds manually: there is no automatic payment. The agent authenticates with a ugcp_live_… key, within a limit of 30 requests/minute, and can use idempotency to avoid duplicates. The allowed values are bounded: budget from €50 to €2000 per creator, 1 to 50 creators, 7 niche categories, 5 platforms, 3 services. The result: an agent prepares all the work, a human keeps the final say.
Why order via an AI agent
Marketing teams increasingly use AI assistants to orchestrate their tasks. Rather than filling out a form by hand, an agent can turn an intent ("I want 3 TikTok videos from creators with a dog to launch our kibble") into a campaign that's ready to confirm.
There are three benefits:
- Save time. The agent prepares the brief, chooses the categories and budget, and submits the draft in a single request.
- Integrate with your tools. The API and the MCP plug into your workflows (CRM, content calendar, internal assistant) without repetitive manual work.
- Stay in control. The agent only proposes: nothing is paid until a human has confirmed and funded the campaign.
How it works: the "human-confirmed draft" model
In one sentence: an agent creates a draft, the brand confirms and funds it. That's the human_confirmed_draft principle, designed to combine automation and safety.
- The agent authenticates with a
ugcp_live_…API key tied to your brand account. - The agent creates a campaign by sending a brief and the parameters (categories, budget, number of creators).
- UGC Pocket returns a draft. The campaign is not active: it's waiting for a human action.
- The brand confirms and funds from the app. Only then does the campaign go live for creators.
- The rest follows the usual flow: creator selection, receiving the videos, approval, payment on approval.
This model guarantees that no agent can commit any spend on its own. AI speeds up the preparation; the human validates the financial commitment.
The draft created by the agent, awaiting human confirmation.
The surfaces: REST, MCP, llms.txt
UGC Pocket exposes three entry points for agents:
- REST API: host
https://ugcpocket.com/api. Standard JSON endpoints to create and track a campaign. The full schema is described in openapi.json. - MCP server: host
https://ugcpocket.com/mcp. The Model Context Protocol lets a compatible agent discover and call UGC Pocket tools natively, without hand-coding the REST integration. - llms.txt: a text file that summarizes the service and points agents to the right documentation.
A minimal example of creating a campaign in REST:
curl -X POST https://ugcpocket.com/api/campaigns \
-H "Authorization: Bearer ugcp_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: camp-kibble-2026-06-30" \
-d '{
"title": "Kibble launch",
"brief": "Energetic TikTok video, authentic tone, show the kibble in use with a dog.",
"target_categories": ["dog"],
"platforms": ["tiktok"],
"prestation": "ugc_only",
"budget_per_creator_cents": 12000,
"creators_wanted": 3
}'
The response returns a draft (unconfirmed status) with its identifier, which the brand finds in the app for confirmation.
Allowed values
The API validates every field. Here are the accepted values:
| Field | Allowed values |
|---|---|
| budget_per_creator_cents | 5000 to 200000 (i.e. €50 to €2000) |
| creators_wanted | 1 to 50 |
| target_categories | dog, cat, car, cooking, couple, business, podcast |
| platforms | tiktok, instagram, youtube, snapchat, facebook |
| prestation | ugc_only, video_post, post_provided |
The budget is expressed in cents in the API (12000 = €120). The 7 niche categories correspond to: dog, cat, car, cooking, couple, business, podcast. The 3 services: UGC only, Video + posting, Posting provided.
Security & limits
Security rests on three safeguards: human confirmation, rate limits, idempotency.
- Mandatory human confirmation. No payment is triggered by the agent; the campaign stays a draft until the brand confirms and funds it.
- Rate limit: 30 requests/minute. Beyond that, the API responds with a rate-limit error (HTTP 429). Space out your calls or set up a queue on the agent side.
- Idempotency. By passing a unique
Idempotency-Keyheader, you avoid creating two identical drafts if a request is replayed (network timeout, agent retry). - Scope-limited key. The
ugcp_live_…key is tied to a brand account; revoke it from the app if in doubt.
In short: an agent can prepare and submit, but can neither spend nor publish without your explicit go-ahead.
Everything you need to integrate your agent
Find the API schema, the MCP endpoints and the examples on our page dedicated to AI agents. You can also explore the available creators by category before submitting a campaign.
FAQ
Can an AI agent pay for a campaign on its own?
No. Every order via API or MCP creates a draft (human_confirmed_draft) that the brand has to confirm and fund manually. No payment is ever triggered automatically by the agent.
What are the allowed values for a campaign via API?
Budget per creator from €50 to €2000 (in cents in the API), 1 to 50 creators. Categories: dog, cat, car, cooking, couple, business, podcast. Platforms: TikTok, Instagram, YouTube, Snapchat, Facebook. Services: UGC only, Video + posting, Posting provided.
How do you authenticate an agent on the API?
With a key in the ugcp_live_… format passed in the Authorization: Bearer header. Requests are limited to 30 per minute, and idempotency (Idempotency-Key header) avoids duplicate drafts.
What's the difference between the REST API and MCP?
The REST API (host /api) integrates through standard HTTP/JSON requests. The MCP server (host /mcp) exposes the same capabilities as tools that compatible agents discover and call natively, without hand-coding the REST integration.
What happens after the draft is confirmed?
The campaign becomes visible to creators. You select the profiles, receive the videos within a few days, rate each delivery and only pay on approval; the creator's bank-transfer withdrawal is processed within 5 business days.