Skip to main content
POST
Publish a built campaign to Meta. Spends 20 AI credits and, once active, real ad budget. Two-step: the first call returns the preview and a confirmationToken; after the user explicitly approves, call again with the token. status "paused" (default) publishes everything paused for a final look in Ads Manager; "active" starts delivery immediately. Requires get_campaign_build to report preview_ready.

Authorizations

Authorization
string
header
required

AdStellar API key (ast_live_...)

Body

application/json
jobId
string<uuid>
required

jobId from build_campaign, in phase preview_ready.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
status
enum<string>

Publish paused (default) or start delivering immediately.

Available options:
paused,
active
leadFormId
string

Leads with INSTANT_FORMS built without a form: the Instant Form id from list_lead_forms. Must be a form on the campaign's Page with a privacy policy link.

Pattern: ^\d{5,25}$
confirmationToken
string

Omit on the first call to get a preview + token; pass the token back to execute.

workspaceId
string<uuid>

Workspace to act in (must be granted to this credential). Omit for the primary workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Tool result