---
title: "Operate live marketing: contacts/imports (may trigger existing automations), campaigns, schedules, reports, official ..."
method: POST
path: "/api/mcp/tools/execute_marketing"
tags: ["tools"]
---

# Operate live marketing: contacts/imports (may trigger existing automations), campaigns, schedules, reports, official ...

`POST /api/mcp/tools/execute_marketing`

## Request

- Base URL: `https://finestructure.ai`
- URL: `https://finestructure.ai/api/mcp/tools/execute_marketing`
- Auth: HTTP bearer

Operate live marketing: contacts/imports (may trigger existing automations), campaigns, schedules, reports, official Meta templates, flows, inbox replies and event connections. Can send to real people. Use only for the user's authorized operation. Read the exact schema first. A queued receipt is NOT delivery; inspect campaign/event/flow results. Uses the same engine as /audiences. Call get_marketing_capabilities(operation=...) for the native parameters, including body when required.

## Request body

- object
  - `operation` 'agents.create_reply' | 'assistant.decide' | 'assistant.ensure' | 'automations.create' | 'automations.update' | 'campaigns.email' | 'campaigns.run' | 'campaigns.schedule' | 'campaigns.sms' | 'campaigns.whatsapp' | 'contacts.import_file' | 'contacts.import_text' | 'contacts.upsert' | 'data.contact' | 'data.restore' | 'data.save' | 'email.confirmation' | 'email.domain.activate' | 'email.gmail.activate' | 'email.gmail.connect' | 'email.policy.save' | 'email.test' | 'events.configure' | 'events.install_app' | 'events.retry' | 'flows.approve' | 'flows.archive' | 'flows.control' | 'flows.launch' | 'flows.update' | 'inbox.flow' | 'inbox.reply' | 'lists.delete' | 'lists.from_filters' | 'notifications.queue' | 'reply_rules.delete' | 'reply_rules.save' | 'reports.update' | 'settings.update' | 'whatsapp.bind_agent' | 'whatsapp.official.create' | 'whatsapp.official.delete' | 'whatsapp.official.edit' | 'whatsapp.refresh_names' | 'whatsapp.templates.submit' | 'whatsapp.test', required
  - `parameters` object: Exact native parameters from capability discovery; omit for parameterless operations.

## Response `200`

Tool executed successfully

- ToolResult
  - `ok` boolean, required
  - `tool` string, required
  - `result` object, required

## Other responses

- `400`: Invalid arguments for this tool
- `401`: Missing or invalid bearer token
- `402`: Not enough credits on the account
- `403`: Token scope does not permit this tool
- `404`: Unknown tool name
- `429`: Rate limit exceeded, retry after the indicated delay
- `500`: Internal error while executing the tool

---

[API](https://skmtc.dev/finestructure/apis/fine-structure-api.md) · [All operations](https://skmtc.dev/finestructure/apis/fine-structure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finestructure/apis/fine-structure-api/revisions/02c50ed5fd70?raw)
