Skip to main content
POST
Advertise
Use advertising:write and an Idempotency-Key. All campaign changes use this endpoint:
  • create: save a durable draft with an owned agentId, operationId, pinned operationRevision, name, one billing event, USD budget in cents, targeting, and optional schedule.
  • update: supply campaignId, expectedRevision, and a patch. Only draft or paused campaigns can be edited.
  • submit: supply campaignId and expectedRevision. The operation must be active, public, and still at its pinned revision. This records PENDING_REVIEW.
  • pause: supply campaignId and expectedRevision. This records PAUSED.
Saving or submitting a campaign does not activate paid placements, authorize a charge, reserve funds, or guarantee eligibility. Paid delivery and settlement require a separately verified delivery and funding integration. Delivery remains NOT_ACTIVE; unmeasured results and spend remain null. Get the persisted result through Get campaign.

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string
required

Stable key for this exact mutation. Reusing it with different input returns 409.

Required string length: 1 - 200

Body

application/json
action
string
required
Allowed value: "create"
agentId
string
required
Required string length: 1 - 200
operationId
string
required
Required string length: 1 - 200
operationRevision
integer
required
Required range: 1 <= x <= 2147483647
name
string
required
Required string length: 1 - 160
billingEvent
enum<string>
required
Available options:
IMPRESSIONS,
CONVERSATIONS,
CONVERSIONS
budgetCents
integer
required
Required range: 1 <= x <= 1000000000
currency
string
default:USD
Allowed value: "USD"
startsAt
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
endsAt
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
targeting
object

Response

Current owner-scoped result. A mutation retry returns its saved response.

campaign
object
required
Last modified on October 19, 2026