Skip to content

Messages (1.0.0)

Chat messages, and sending them.

A send reaches a real person and there is no test mode. Before you build against it:

  • message is the channel's own payload. A text message is { "type": "text", "text": "Hello" }; media and templates differ per channel.
  • 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.
  • Instagram cannot open a conversation. The contact has to message first.
  • SMS honours opt-out: once a contact has replied STOP, sends to them fail.
  • 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.
  • 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.
  • Retrying after a timeout? Send the same Idempotency-Key and the original response comes back instead of a second message.
Download OpenAPI description
Languages
Servers
Mock server
https://developer.iclosed.io/_mock/openapi/uinbox/v1/modules/messages
Production
https://uinboxpub.api.iclosed.io