Messages: Create New Message
gapify_create_messageSend a new message or private note in a specific customer-support conversation by providing the account ID, conversation ID, and content.
Instructions
Send a new message or private note in a conversation [Messages]
POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages
Auth: User API key or Agent bot API key (header api-access-token).
Body fields: content (required), message_type, private, content_type, content_attributes, template_params. 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 | Yes | Text of the message. Any language, including Persian, is sent unchanged. | |
| private | No | Flag to identify if it is a private note Example: false | |
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| content_type | No | Content type of the message. One of: `text`, `input_email`, `cards`, `input_select`, `form`, `article`. Use `text` for normal messages. Example: "cards" | |
| message_type | No | Direction of the message. One of: `outgoing` (agent to contact), `incoming`. Example: "outgoing" | |
| conversation_id | Yes | The numeric ID of the conversation | |
| template_params | No | The template params for the message in case of whatsapp Channel Example: {"name":"sample_issue_resolution","category":"UTILITY","language":"en_US","processed_params":{"1":"Gapify"}} | |
| content_attributes | No | attributes based on your content type Example: {} |