/v1/conversations/{conversation_id}/system-messagesbetaAdd a system message
- Needs
- Manage conversations: notes, assign, close, tags, reminders
(inbox:write) - Plan
- Any plan with API access
- Limits
- 60 a minute per key
- Dry run
- Yes — a full preview with ?dry_run=true
- Undo
- A system line cannot be removed.
Adds a line to a conversation's thread that your team sees and the customer never gets: an event from your own systems, such as an order shipped, a payment received or a record synced. No reply window applies, and it does not count against the send limits.
text: the line (plain text, up to 4096 characters).system_type: what kind of event it records, e.g.ORDER_UPDATE,PAYMENT_RECEIVEDorSHIPPING_UPDATE(letters, digits and_, up to 100, upper-cased; defaultNOTIFICATION). The platform's own types (MENTION,REMINDER,REMINDER_SET,REMINDER_ACKNOWLEDGED,REMINDER_DELETED,REMINDER_UPDATED,SLA_BREACH,CALL_EVENT,CLIENT_ACTION) are refused: to mention colleagues, add a note instead.meta: a JSON object kept with the line for integrations that read the thread later (at most 4 KB as JSON, nested at most 3 levels, 50 keys per object; keys are kept exactly as sent). The keysmentionStaffs,acknowledged,reminder_id,created_by_staff_idandidempotency_keyare refused (send your key as theIdempotency-Keyheader).priority: truemoves the conversation up and notifies its assignee, a manager and the team leads;meta.sourcethen appears in that notification, so it must be text (up to 200 characters) or a number.
Text and meta are shown as plain text, never as HTML. Try it with ?dry_run=true: the conversation and the fields are checked and nothing is added.
Try it
Protects against doing it twice if you retry: a retry with the same key gets the first answer back instead of running again.
Code and response
curl -X POST 'https://mcp.wa-api.cloud/v1/conversations/77410/system-messages?dry_run=true' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"text": "Order #4411 shipped with FedEx (tracking FX123456789).",
"system_type": "ORDER_UPDATE",
"meta": {
"order_id": "4411",
"carrier": "FedEx",
"tracking_number": "FX123456789",
"source": "shop"
}
}'The code reads your key from $API_KEY.
Parameters
| Field | Type | What it is |
|---|---|---|
| conversation_idrequired | string · path | The conversation id.pattern ^\d{1,19}$Signed in? Pick one from your data with “My data”. |
Body
| Field | Type | What it is |
|---|---|---|
| textrequired | string | The line your team sees (plain text, 1–4096 characters).1–4096 characters |
| system_type | string | The kind of event, e.g. ORDER_UPDATE (letters, digits and _, up to 100; upper-cased; default NOTIFICATION). The platform's own types are refused.pattern ^[A-Za-z][A-Za-z0-9_]*$ · 0–100 characters |
| meta | object | A JSON object kept with the line (at most 4 KB, 3 levels, 50 keys per object). Reserved keys are refused. |
| priority | boolean | true moves the conversation up and notifies its assignee, a manager and the team leads. |
Headers
| Field | Type | What it is |
|---|---|---|
| Authorizationrequired | header | Bearer $API_KEY — your API key. |
| Api-Version | header | The API version to use, e.g. 2026-10-01. Default: the version your key is pinned to.one of: 2026-10-01 · pattern ^\d{4}-\d{2}-\d{2}$ |
| Idempotency-Keyrequired | header | Required here. Any unique string (8–128 characters), e.g. your order id plus the step. Kept 24 hours. Not needed with dry_run=true.pattern ^[A-Za-z0-9._:-]+$ · 8–128 characters |
Response 201
The line was added (or the dry-run check). It shows in the conversation's message list as a `SYSTEM` message.
| Field | Type | What it is |
|---|---|---|
| message_idrequired | string or null | |
| statusrequired | string | created, or dry_run. |
| conversation_idrequired | string | |
| channelrequired | object | |
| idrequired | string | |
| namerequired | string or null | |
| typerequired | string | |
| system_typerequired | string | |
| visible_to_customerrequired | boolean | |
| dry_run | boolean | true when this was a dry run: every check ran and nothing changed. |
Errors
Errors are application/problem+json. Branch on code.
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | A field is missing or has the wrong format. |
| 401 | unauthenticated | The Authorization header is missing, the key is unknown, expired or revoked. |
| 403 | entitlement_required | The workspace's plan does not include API access ( |
| 403 | insufficient_scope | The key does not have the permission this operation needs. |
| 404 | not_found | No conversation with this id, or your key cannot see it. |
| 409 | conflict | Also returned while a request with the same Idempotency-Key is still running. |
| 429 | rate_limited | The key or workspace went over its rate limit. Wait for |
| 503 | upstream_unavailable | A service behind the API is briefly unavailable. Safe to retry with backoff. |
| 504 | timeout | The change did not finish in time. Retry with the same Idempotency-Key: it never runs twice. |
Examples
Record an order update for your team
Request body
{
"text": "Order #4411 shipped with FedEx (tracking FX123456789).",
"system_type": "ORDER_UPDATE",
"meta": {
"order_id": "4411",
"carrier": "FedEx",
"tracking_number": "FX123456789",
"source": "shop"
}
}Response 201
{
"message_id": "5501238",
"status": "created",
"conversation_id": "77410",
"channel": {
"id": "301",
"name": "Main WhatsApp",
"type": "whatsapp"
},
"system_type": "ORDER_UPDATE",
"visible_to_customer": false
}Operation path
The same operation is also at POST /v1/ops/inbox_add_system_message, with every field in the JSON body.