Messaging API
Device registration, notification preferences, inbox, templates and message intents.
On this page
Contract version 1.1.0. 13 operations; 13 served, 0 specified only.
Note
"Served" means the endpoint exists in the runtime, not that it is enabled for your app. Provider-backed endpoints return 503 FEATURE_UNAVAILABLE until the matching connection is ready.
| Method | Path | Summary | Auth | Status |
|---|---|---|---|---|
| GET | /v1/messaging/deliveries | List delivery attempts | Operator session | served |
| PUT | /v1/messaging/devices | Register device | Consumer session | served |
| DELETE | /v1/messaging/devices/{installation_id} | Unregister device | Consumer session | served |
| POST | /v1/messaging/dlq/{item_id}/replay | Replay delivery | Operator session | served |
| GET | /v1/messaging/inbox | List inbox | Consumer session | served |
| POST | /v1/messaging/inbox/{item_id}/read | Mark inbox read | Consumer session | served |
| POST | /v1/messaging/intents | Enqueue message | Service capability | served |
| PUT | /v1/messaging/preferences | Update notification preferences | Consumer session | served |
| GET | /v1/messaging/templates | List templates | Operator session | served |
| POST | /v1/messaging/templates | Create template | Operator session | served |
| POST | /v1/messaging/templates/{template_id}/publish | Publish template | Operator session | served |
| GET | /webhooks/whatsapp/{connection_ref} | Verify whatsapp webhook | None | served |
| POST | /webhooks/whatsapp/{connection_ref} | Webhook whatsapp | Provider signature | served |
GET /v1/messaging/deliveries
List delivery attempts.
| Operation ID | listDeliveryAttempts |
| Auth | Operator session (console) |
| Status | Served |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
PUT /v1/messaging/devices
Register device.
| Operation ID | registerDevice |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): DeviceRegistration
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
DELETE /v1/messaging/devices/{installation_id}
Unregister device.
| Operation ID | unregisterDevice |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Optional — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
installation_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/messaging/dlq/{item_id}/replay
Replay delivery.
| Operation ID | replayDelivery |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
item_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Request body (application/json, required): ReasonRequest
Responses
202Accepted for asynchronous processing —Job
Errors: 400 401 403 404 409 422 429 503 as problem details.
GET /v1/messaging/inbox
List inbox.
| Operation ID | listInbox |
| Auth | Consumer session (app user) |
| Status | Served |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/messaging/inbox/{item_id}/read
Mark inbox read.
| Operation ID | markInboxRead |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
item_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Responses
200Successful operation —InboxItem
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/messaging/intents
Enqueue message.
| Operation ID | enqueueMessage |
| Auth | Service capability (server-to-server only) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): MessageEnqueue
Responses
200Successful operation —MessageIntent
Errors: 400 401 403 404 409 422 429 503 as problem details.
PUT /v1/messaging/preferences
Update notification preferences.
| Operation ID | updateNotificationPreferences |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): NotificationPreferences
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
GET /v1/messaging/templates
List templates.
| Operation ID | listTemplates |
| Auth | Operator session (console) |
| Status | Served |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/messaging/templates
Create template.
| Operation ID | createTemplate |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): TemplateCreate
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/messaging/templates/{template_id}/publish
Publish template. Validate variables, privacy and provider approval; immutable version.
| Operation ID | publishTemplate |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
template_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Request body (application/json, required): ReasonRequest
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
GET /webhooks/whatsapp/{connection_ref}
Verify whatsapp webhook. Meta challenge endpoint: validate hub.mode=subscribe and constant-time hub.verify_token match for this connection, then echo hub.challenge as text/plain. No consumer session and no message send.
| Operation ID | verifyWhatsappWebhook |
| Auth | None (public) |
| Status | Served |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
connection_ref | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
hub.mode | query | string | yes | min length 1; max length 1024 |
hub.verify_token | query | string | yes | min length 1; max length 1024 |
hub.challenge | query | string | yes | min length 1; max length 1024 |
Responses
200Validated Meta challenge echoed verbatim — string
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /webhooks/whatsapp/{connection_ref}
Webhook whatsapp. Raw body authentication and provider-specific schema. Persist before ACK; app/environment/account verification required. Opaque connection_ref is routing, not authentication.
| Operation ID | webhookWhatsapp |
| Auth | Provider signature (store / provider webhook) |
| Status | Served |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
connection_ref | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Request body (application/json, required): object
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.