Menu

API reference · Campaign Manager

Drafts

campaign_manager · drafts · 5 operations

GET/v1/campaign-manager/drafts

List campaign drafts

campaign_manager.drafts.list

ReadIdempotentSince 2026-11-01

Lists the organization's campaign drafts, last edited first: the plans built with MIA in Campaign Manager's builder (or saved through the API) before their campaigns are created. Each draft has its status (draft, creating, created, partial, failed), campaign_count and campaign_names, and created_entities (the platform ids the builder created, per campaign); the plan itself (the blueprint) comes with campaign_manager.drafts.get. By default created drafts are left out; pass statuses to choose. Requires view access to Campaign Manager. With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their fields are left out of the response (the permissions guide lists what each platform allows).

Scope
campaign_manager:read
Permission
View the module
MCP tool
campaign_manager_drafts_listOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.drafts.list".

Declared cost: up to 202 reads and 0 writes per call (they count against the daily quota).

Parameters

limitintegerqueryoptional

How many items this page brings at most (see the maximum and the default in the schema).

Default: 50

cursorstringqueryoptional

The next_cursor of the previous page, exactly as it came (only for the same list and filters); without it, the first page.

statusesarray<enum>queryoptional

Only drafts in these statuses (default: draft, creating, partial and failed; created drafts are left out).

Values: draft, creating, created, partial, failed

Response

dataarray<object>
has_moreboolean
next_cursorstring

Errors

Example

curl "https://api.mb-suite.com/v1/campaign-manager/drafts" \
  -H "Authorization: Bearer $MB_API_KEY"

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl "https://api.mb-suite.com/v1/campaign-manager/drafts" \
  -H "Authorization: Bearer $MB_TEST_KEY"
GET/v1/campaign-manager/drafts/{draft_id}

Get a campaign draft

campaign_manager.drafts.get

ReadIdempotentSince 2026-11-01

Returns one campaign draft with its full blueprint (campaigns with platform, name, currency and their google, meta, tiktok or linkedin block, which keeps the builder's own key names as stored; assumptions, clarifying_questions, refinement_questions and detected_gates), status and created_entities. 404 campaign_draft_not_found if it is not in this organization. Requires view access to Campaign Manager. With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their fields are left out of the response (the permissions guide lists what each platform allows).

Scope
campaign_manager:read
Permission
View the module
MCP tool
campaign_manager_drafts_getOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.drafts.get".

Declared cost: up to 1 reads and 0 writes per call (they count against the daily quota).

Parameters

draft_idstringpathrequired

Campaign draft id (from campaign_manager.drafts.list).

Response

idstring

Draft id.

org_idstring

The organization.

statusenum

draft, creating, created, partial or failed.

Values: draft, creating, created, partial, failed

created_by_idstring | null

Who created it (uid).

source_strategy_idstring | null

The AI strategy it comes from.

conversation_idstring | null

The MIA conversation it comes from.

created_entitiesarray<object>

What the builder created, per campaign (empty until it runs).

campaign_countnumber

Campaigns in the plan.

campaign_namesarray<string>

Their names.

created_atnumber | null

Epoch ms.

updated_atnumber | null

Last edit (epoch ms).

blueprintobject

The campaign plan in the builder's format (the shape MIA proposes): campaigns with platform (google_ads, meta_ads, tiktok_ads, linkedin_ads), name, currency and the platform block (google, meta, tiktok or linkedin, whose keys are the builder's own and travel as they are), plus assumptions and questions. It is stored as is (up to 50 campaigns and 512 KB); the builder validates it against the ad account when the campaigns are created, at most 20 per run.

Errors

Example

curl "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_API_KEY"

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/campaign-manager/drafts

Save a new campaign draft

campaign_manager.drafts.create

WriteSince 2026-11-01

Saves a campaign plan as a new draft (status draft, revision 1) so a person can review, edit and create it in Campaign Manager's builder or from MIA's plan card. Send the blueprint in the builder's format (campaigns with platform, name, currency and the platform block, whose keys are the builder's own and travel as they are; assumptions and the questions with the names of the schema; up to 50 campaigns and 512 KB, and the builder creates at most 20 per run) and, optionally, the AI strategy it comes from. Ids of files already uploaded to a platform (asset resource names, image hashes of carousel cards, video and document URNs) are dropped: only the creation sets them, after the person picks the files. Nothing is created on the ad platforms: campaigns are created only by a person (the builder, or the «Crear en pausa» button of MIA's plan card), where the plan is validated against the ad account. Returns draft_id and the draft. Requires full access to Campaign Manager. With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their fields are left out of the response (the permissions guide lists what each platform allows).

Scope
campaign_manager:write
Permission
Edit in the module
MCP tool
campaign_manager_drafts_createOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.drafts.create".

Declared cost: up to 0 reads and 1 writes per call (they count against the daily quota).

Parameters

blueprintobjectbodyrequired

The campaign plan in the builder's format (the shape MIA proposes): campaigns with platform (google_ads, meta_ads, tiktok_ads, linkedin_ads), name, currency and the platform block (google, meta, tiktok or linkedin, whose keys are the builder's own and travel as they are), plus assumptions and questions. It is stored as is (up to 50 campaigns and 512 KB); the builder validates it against the ad account when the campaigns are created, at most 20 per run.

source_strategy_idstringbodyoptional

The AI strategy the plan comes from (Estrategias AI), for traceability.

conversation_idstringbodyoptional

The MIA conversation the plan comes from.

Response

draft_idstring

Draft id.

draftobject

The draft as it is now.

Errors

Example

curl -X POST "https://api.mb-suite.com/v1/campaign-manager/drafts" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "blueprint": {}
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl -X POST "https://api.mb-suite.com/v1/campaign-manager/drafts" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "blueprint": {}
}'
PATCH/v1/campaign-manager/drafts/{draft_id}

Replace a campaign draft's plan

campaign_manager.drafts.update

WriteIdempotentSince 2026-11-01

Replaces the blueprint of an existing draft (the whole plan, like the builder's autosave) as a new revision and sets it back to status draft: a plan card of MIA for the previous revision stops creating and asks the person to review it again. The same plan again changes nothing (no new revision, nothing audited), except on a failed draft, which goes back to draft as a new revision. A draft whose campaigns were already created (created or partial) is reopened only by a different plan, as a new revision. A failed or partial draft saved by someone who neither created it nor is an owner or admin keeps its status (only they can resume its creation). If another revision was saved meanwhile (another tab or MIA), 409 draft_changed: read it again and resend. Pass expected_rev (the revision you read) to save only over that one: if the draft is at another revision, 409 draft_changed with the current one in details.rev and nothing is written; retrying a save that already went in (the same plan, the draft one revision ahead and saved by you) returns the draft as it is. A draft whose campaigns are being created right now (by the builder or MIA's plan card) is 409 draft_in_progress. Ids of files already uploaded to a platform are dropped, as in create. 404 campaign_draft_not_found if it is not in this organization. Nothing is created on the ad platforms. Requires full access to Campaign Manager. With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their fields are left out of the response (the permissions guide lists what each platform allows).

Scope
campaign_manager:write
Permission
Edit in the module
MCP tool
campaign_manager_drafts_updateOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.drafts.update".

Declared cost: up to 2 reads and 1 writes per call (they count against the daily quota).

Parameters

draft_idstringpathrequired

Campaign draft id (from campaign_manager.drafts.list).

blueprintobjectbodyrequired

The campaign plan in the builder's format (the shape MIA proposes): campaigns with platform (google_ads, meta_ads, tiktok_ads, linkedin_ads), name, currency and the platform block (google, meta, tiktok or linkedin, whose keys are the builder's own and travel as they are), plus assumptions and questions. It is stored as is (up to 50 campaigns and 512 KB); the builder validates it against the ad account when the campaigns are created, at most 20 per run.

source_strategy_idstringbodyoptional

The AI strategy the plan comes from (Estrategias AI), for traceability.

conversation_idstringbodyoptional

The MIA conversation the plan comes from.

expected_revintegerbodyoptional

The plan's revision you saw. If the draft is at another revision now (someone saved meanwhile), 409 draft_changed with the current one in details.rev and nothing is written.

Response

draft_idstring

Draft id.

draftobject

The draft as it is now.

Errors

Example

curl -X PATCH "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "blueprint": {}
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl -X PATCH "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "blueprint": {}
}'
DELETE/v1/campaign-manager/drafts/{draft_id}

Delete a campaign draft

campaign_manager.drafts.delete

IrreversibleSince 2026-11-01

Deletes a campaign draft; it stays 30 days in the trash (platform.trash.restore brings it back). Campaigns already created from it stay on the ad platforms. A draft whose campaigns are being created right now (by the builder or MIA's plan card) is 409 draft_in_progress. Outside the app: DELETE confirms inline; or dry_run=true for the preview and a confirm_token. Requires full access to Campaign Manager and a credential that allows deletion.

With an API key, this DELETE runs directly: the record stays 30 days in the trash and the response carries its trash_item_id. With an OAuth token, and through the MCP, it needs dry_run → confirm_token.

Scope
campaign_manager:write and “Allow deletions” (campaign_manager:delete in OAuth)
Permission
Edit in the module
MCP tool
campaign_manager_drafts_deleteOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.drafts.delete".

Declared cost: up to 1 reads and 1 writes per call (they count against the daily quota).

Parameters

draft_idstringpathrequired

Campaign draft id (from campaign_manager.drafts.list).

Response

oktrue
trash_item_idstring

The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.

trash_item_idsarray<string>

Only when the deletion left more than one copy: all of them, the first being trash_item_id.

trash_expires_atnumber

When the copy leaves the trash for good (epoch ms): 30 days after the deletion.

Errors

Example

curl -X DELETE "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_API_KEY"

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl -X DELETE "https://api.mb-suite.com/v1/campaign-manager/drafts/{draft_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"