Skip to content
API reference

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.

MethodPathSummaryAuthStatus
GET/v1/messaging/deliveriesList delivery attemptsOperator sessionserved
PUT/v1/messaging/devicesRegister deviceConsumer sessionserved
DELETE/v1/messaging/devices/{installation_id}Unregister deviceConsumer sessionserved
POST/v1/messaging/dlq/{item_id}/replayReplay deliveryOperator sessionserved
GET/v1/messaging/inboxList inboxConsumer sessionserved
POST/v1/messaging/inbox/{item_id}/readMark inbox readConsumer sessionserved
POST/v1/messaging/intentsEnqueue messageService capabilityserved
PUT/v1/messaging/preferencesUpdate notification preferencesConsumer sessionserved
GET/v1/messaging/templatesList templatesOperator sessionserved
POST/v1/messaging/templatesCreate templateOperator sessionserved
POST/v1/messaging/templates/{template_id}/publishPublish templateOperator sessionserved
GET/webhooks/whatsapp/{connection_ref}Verify whatsapp webhookNoneserved
POST/webhooks/whatsapp/{connection_ref}Webhook whatsappProvider signatureserved

GET /v1/messaging/deliveries

List delivery attempts.

Operation IDlistDeliveryAttempts
AuthOperator session (console)
StatusServed

Responses

  • 200 Successful 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 IDregisterDevice
AuthConsumer session (app user)
StatusServed
Idempotency-KeyRequired — see idempotency

Request body (application/json, required): DeviceRegistration

Responses

  • 200 Successful 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 IDunregisterDevice
AuthConsumer session (app user)
StatusServed
Idempotency-KeyOptional — see idempotency

Parameters

NameInTypeRequiredNotes
installation_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Responses

  • 200 Successful 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 IDreplayDelivery
AuthOperator session (console)
StatusServed
Idempotency-KeyRequired — see idempotency

Parameters

NameInTypeRequiredNotes
item_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Request body (application/json, required): ReasonRequest

Responses

  • 202 Accepted for asynchronous processing — Job

Errors: 400 401 403 404 409 422 429 503 as problem details.

GET /v1/messaging/inbox

List inbox.

Operation IDlistInbox
AuthConsumer session (app user)
StatusServed

Responses

  • 200 Successful 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 IDmarkInboxRead
AuthConsumer session (app user)
StatusServed
Idempotency-KeyRequired — see idempotency

Parameters

NameInTypeRequiredNotes
item_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Responses

Errors: 400 401 403 404 409 422 429 503 as problem details.

POST /v1/messaging/intents

Enqueue message.

Operation IDenqueueMessage
AuthService capability (server-to-server only)
StatusServed
Idempotency-KeyRequired — see idempotency

Request body (application/json, required): MessageEnqueue

Responses

Errors: 400 401 403 404 409 422 429 503 as problem details.

PUT /v1/messaging/preferences

Update notification preferences.

Operation IDupdateNotificationPreferences
AuthConsumer session (app user)
StatusServed
Idempotency-KeyRequired — see idempotency

Request body (application/json, required): NotificationPreferences

Responses

  • 200 Successful 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 IDlistTemplates
AuthOperator session (console)
StatusServed

Responses

  • 200 Successful 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 IDcreateTemplate
AuthOperator session (console)
StatusServed
Idempotency-KeyRequired — see idempotency

Request body (application/json, required): TemplateCreate

Responses

  • 200 Successful 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 IDpublishTemplate
AuthOperator session (console)
StatusServed
Idempotency-KeyRequired — see idempotency

Parameters

NameInTypeRequiredNotes
template_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Request body (application/json, required): ReasonRequest

Responses

  • 200 Successful 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 IDverifyWhatsappWebhook
AuthNone (public)
StatusServed

Parameters

NameInTypeRequiredNotes
connection_refpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
hub.modequerystringyesmin length 1; max length 1024
hub.verify_tokenquerystringyesmin length 1; max length 1024
hub.challengequerystringyesmin length 1; max length 1024

Responses

  • 200 Validated 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 IDwebhookWhatsapp
AuthProvider signature (store / provider webhook)
StatusServed

Parameters

NameInTypeRequiredNotes
connection_refpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Request body (application/json, required): object

Responses

  • 200 Successful 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.