Create campaign
Create a campaign and its single paused optimised schedule atomically. Supply agents with a task prompt for each and schedule timing, daily budget, concurrency and destinations; omitted schedule settings create a paused 09:00-18:00 UTC window with one run and no daily budget. Activation requires valid agents, prompts, connected destinations and a daily budget. Each firing selects one agent, whose Instructions and per-run limits remain on its managed-agent version. Names are unique within the team (409 otherwise). Send an Idempotency-Key and reuse the same request after a lost response to return the existing campaign without creating another schedule.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Reuse this key with the same creation request after a lost response. The original resource is returned; a different request is rejected with 409.
1 - 200Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Body
Campaign name, 1-120 characters, unique within the team.
1 - 120Optional changed account limits to save atomically with this configuration. Accounts must be distinct selected destinations of this workspace. A nonempty array additionally requires manage_integrations. Any invalid, stale or unsafe reduction rejects every change. Omit or send [] to leave all shared limits unchanged.
1000Use version 2 for the simplified campaign model; legacy clients may omit this while they upgrade.
1, 2 Legacy optional description retained for API compatibility. Campaign setup uses the campaign name only.
2000an array of at most 50 item(s)
50The campaign’s single shared schedule, created atomically and always paused. Omit for a paused 09:00-18:00 UTC window with one daily run, max concurrency 1 and no daily limit or targets.
Managed agents of this team to add to the campaign, up to 50. Omit to start empty.
50a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Response
Success
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Campaign name, 1-120 characters, unique within the team.
1 - 120Legacy optional description retained for API compatibility. Campaign setup uses the campaign name only.
2000Managed agents in the campaign (the optimiser pool).
The canonical optimised schedule for a managed campaign. Legacy campaigns may have multiple attachments until explicitly reconciled.
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a non-negative number
x >= 0Version 1 preserves legacy scheduling and optimiser behaviour. Version 2 uses explicit account bundles, shared posting caps and automatic exploration.
1, 2