SMS & WhatsApp — API and MCP
Overview
This area exposes 6 operations. Each of them is at the same time an MCP tool.
This area is behind the module switch module.sms. With the module off, these operations answer 404.
Operations
| Method | Path | Purpose | Permission | Parameters |
|---|---|---|---|---|
GET | /api/v1/sms/campaigns | Collection of SmsCampaign | octi.sms.view | page, q, status, order[name], order[status], order[createdAt] |
POST | /api/v1/sms/campaigns | Create a SmsCampaign | octi.sms.manage | + body |
DELETE | /api/v1/sms/campaigns/{ulid} | Delete a SmsCampaign | octi.sms.manage | ulid |
GET | /api/v1/sms/campaigns/{ulid} | Read one SmsCampaign | octi.sms.view | ulid |
PATCH | /api/v1/sms/campaigns/{ulid} | Update a SmsCampaign | octi.sms.manage | ulid, + body |
POST | /api/v1/sms/campaigns/{ulid}/send | Versand auslösen — Reiht den Versand an die hinterlegte Zielgruppe ein (asynchron; Antwort ist die Kampagne im Zustand „queued", sentCount füllt sich im Hintergrund). Geprüft wird JE EMPFÄNGER: bestätigte SMS-Einwilligung und keine SMS-Sperre; jede Nummer wird je Kampagne höchstens einmal bedient. Nur aus „draft" oder „scheduled"; ein zweiter Anstoß auf eine eingereihte, laufende oder versendete Kampagne antwortet 422. Kostet Geld je Nachricht und lässt sich nicht zurückholen. | octi.sms.send | ulid, + body |
Purpose texts that do not follow the standard pattern are taken verbatim from the interface description in the code.