campaign_write · Method: prepare_messages
Hosted OAuth MCP, local MCP, and REST API.
Choose all: true for enrolled prospects with empty messages, or enrollmentId for one prospect. sourceRunId with candidateKeys selects candidates from a completed run. Do not combine unrelated selection modes. A queued count acknowledges work; inspect the campaign and get_run before claiming the messages are ready.
Example
All IDs, addresses and revisions below are illustrative. Replace them with values read from your workspace.- MCP
- REST
Inputs
For MCP, add
method: prepare_messages alongside these fields. For REST, use action: prepareMessages instead of method.
Fields inside an optional object are required only when that object is provided. Do not send fields from a different method.
Result
MCP returns the following projected schema as structured content and JSON text. The REST response may contain additional fields; do not rely on undocumented fields.Response schema
Response schema