BusinessMCP

Modules API: run marketing and sales jobs from your code

6 min readLast updated November 12, 2026

The marketing and sales modules over REST, MCP and a TypeScript SDK: list the modules and their state, run one job now as a draft, read the result, and see what a specialist proposed. Free includes a small monthly allowance of draft runs; past it the API answers plan_required with an upgrade link.

What it does

A module is a specialist that runs one part of your sales: Automated Sales, Automated Support, Automated Email and Paid Ads. Each module has jobs (a newsletter draft, a campaign draft). This API lets your own code, or an AI agent, do four things:

  • List the modules with this workspace's state: phase, jobs and their modes, what each needs connected, and the allowance.
  • Run one job now, at most in Draft, and get a run id back.
  • Read a run: status, summary, the job's output and the draft its specialist wrote.
  • See proposals a specialist is waiting on the owner for, and approve or reject one.

It never sets a module up, never starts one and never changes a mode. Those stay with a person in the dashboard.

From signup to the first draft

No account yet? Agent signup returns an mcph_ key from two calls and an emailed code. Then:

# 1. What can this workspace run?
curl -s https://businessmcp.com/api/v1/modules \
  -H 'Authorization: Bearer mcph_...'

# 2. Draft this week's newsletter. Answers 202 with a run id.
curl -s -X POST https://businessmcp.com/api/v1/modules/email/runs \
  -H 'Authorization: Bearer mcph_...' -H 'Content-Type: application/json' \
  -d '{"job": "email_newsletter"}'
# {"run_id":"...","status":"queued","poll_url":"https://businessmcp.com/api/v1/modules/runs/..."}

# 3. Poll until status is done, failed, needs_credits or cancelled.
curl -s https://businessmcp.com/api/v1/modules/runs/RUN_ID \
  -H 'Authorization: Bearer mcph_...'

The module has to be running and the job switched on, both by a person in the dashboard. A job set to Auto runs in Draft when started here, so nothing is sent.

TypeScript. npm install @mcphosting/marketing (MIT, zero dependencies):

import { Marketing, PlanRequiredError } from '@mcphosting/marketing'

const mk = new Marketing({ apiKey: process.env.BUSINESSMCP_API_KEY! })
try {
  const { run_id } = await mk.run('email', 'email_newsletter')
  const run = await mk.waitForRun(run_id)
  console.log(run.status, run.output)
} catch (e) {
  if (e instanceof PlanRequiredError) console.log('Upgrade:', e.upgradeUrl)
  else throw e
}

Endpoints

All under https://businessmcp.com/api/v1, with Authorization: Bearer mcph_.... The full schema is in the OpenAPI document.

  • GET /modules: the catalogue with state, jobs, connections and the allowance.
  • POST /modules/{id}/runs with {"job": "...", "topic"?: {...}}: run one job now. Owner or admin keys.
  • GET /modules/{id}/runs: the module's runs, newest first.
  • GET /modules/runs/{runId}: one run, with output and draft.
  • GET /modules/{id}/proposals: what the specialist proposed (open ones by default).
  • POST /modules/proposals/{artifactId}/decision with {"decision": "approve" | "reject"}: the owner's decision, through the same path as the dashboard. Owner or admin keys on a paid plan.

Starting a run and deciding a proposal share the tight rate limit of the assistant runs; reads use the normal read limit. See the API reference.

What Free includes

On Free the API lists the modules and reads their state, runs and proposals. Running a job starts on Starter: a Free run is refused with plan_required and an upgrade_url. Why, per module:

  • Paid Ads: Ad drafts are written in a session on the paid quality model, and the campaign job needs a connected ad account.
  • Automated Sales: The sales engine follows up real people; it runs only as a module the owner started.
  • Automated Support: Support answers real customers; it runs only as a module the owner started.
  • Automated Email: Email jobs write to a real audience; they run only as a module the owner started.

A run is the module's normal run, the same as Run now on the module page, on the monthly AI allowance the plan includes. Two conditions, both set by a person in the dashboard: the module is running, and the job is switched on. A job set to Auto runs in Draft when started through the API.

The same over MCP

The MCP endpoint carries the same five operations as tools, under the same rules: list_modules, run_module_job, list_module_runs, get_module_run and list_module_proposals. run_module_job needs an owner or admin key. Deciding a proposal has no tool on purpose: it is the owner's decision, made in the dashboard or through the REST call above.

Errors

Every refusal is {"error": {"code", "message", "retryable", ...}}:

  • plan_required (402): the plan does not run modules. upgrade_url opens checkout in one click.
  • invalid_input (400): an unknown job, a module that is not running or a job that is switched off.
  • not_permitted (403): the key's role or access policy does not allow it. See Access control.
  • not_found (404), unavailable (503, retry when retryable is true).

Frequently asked questions

Can the API send an email, publish a post or spend on ads?

No. A run through the API is one job, at most in Draft. It produces what the job produces in the dashboard, which is a paused approval card or a draft that waits for the owner.

Can the API set up or start a module?

No. A person sets a module up and presses Start in the dashboard, and only a person changes what a job may do. The API only runs a job that is already switched on.

What happens when a Free workspace tries to run a job?

The run is refused with HTTP 402 and the code plan_required. The body carries a message and an upgrade_url that opens checkout for the first plan with modules. Listing modules and reading runs stay free.

Keep going

Turn your company into one AI-ready data platform on a single hosted MCP endpoint.