Messages API: Create a message
gapify_client_create_messageSend a message to a specific conversation in an inbox using contact and conversation identifiers. Include text content and an optional echo ID for WebSocket tracking.
Instructions
Create a message [Messages API] POST /public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages Body fields: content, echo_id. Extra fields can be passed via extra_body. Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Content for the message | |
| echo_id | No | Temporary identifier which will be passed back via websockets | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| conversation_id | Yes | The numeric ID of the conversation | |
| inbox_identifier | Yes | The identifier obtained from API inbox channel | |
| contact_identifier | Yes | The source id of contact obtained on contact create |