{"templateId":"api_docs","sharedDataIds":{"apiDocsStore":"api-docs-openapi/uinbox/v1/modules/messages.json","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"openapi/uinbox/v1/modules/messages.json","settings":{"baseUrlPath":"/openapi/uinbox/v1/modules/messages"},"disableAutoScroll":true,"seo":{"title":"Messages"},"dynamicMarkdocComponents":[],"metadata":{"type":"openapi","title":"Messages","version":"1.0.0","description":"Chat messages, and sending them.\n\n**A send reaches a real person and there is no test mode.** Before you build against it:\n\n- `message` is the channel's own payload. A text message is `{ \"type\": \"text\", \"text\": \"Hello\" }`; media and templates differ per channel.\n- **WhatsApp** only allows a free-form message within 24 hours of the contact's last inbound message. Outside that window the send must be an approved template, or it fails.\n- **Instagram** cannot open a conversation. The contact has to message first.\n- **SMS** honours opt-out: once a contact has replied STOP, sends to them fail.\n- Each connection has its own limits — daily conversation caps and per-line rules. `sendRules` on `GET /v1/connections/list` is the current state for a connection, and `sendRestrictions` on `GET /v1/messages` is the state for one chat.\n- A rule that blocks a send returns 4xx with the reason in `message`. A send that is accepted returns `data.status: \"queued\"`; delivery or failure appears later on the message itself.\n- Retrying after a timeout? Send the same `Idempotency-Key` and the original response comes back instead of a second message."},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"developer.iclosed.io","port":4000,"ipAddress":"216.73.216.19"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/openapi/uinbox/v1/modules/messages","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}