Conversations: Create New Conversation
gapify_create_conversationCreate a conversation for a contact in an inbox using required source and inbox IDs, with optional initial message, assignee, team, and status.
Instructions
Create a conversation for a contact in an inbox. Requires the contact inbox source_id (see gapify_create_contact_inbox) [Conversations]
POST /api/v1/accounts/{account_id}/conversations
Auth: User API key or Agent bot API key (header api-access-token).
Body fields: source_id (required), inbox_id (required), contact_id, additional_attributes, custom_attributes, status, assignee_id, team_id, message. 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 |
|---|---|---|---|
| status | No | Initial status of the conversation. One of: `open`, `resolved`, `pending`. Example: "open" | |
| message | No | The initial message to be sent to the conversation Example: {"content":"string","template_params":{"name":"sample_issue_resolution","category":"UTILITY","language":"en_US","processed_params":{"1":"Gapify"}}} | |
| team_id | No | Team Id for assigning a conversation to a team | |
| inbox_id | Yes | Id of inbox in which the conversation is created <br/> Allowed Inbox Types: Website, Phone, Api, Email | |
| source_id | Yes | Conversation source id | |
| account_id | Yes | The numeric ID of the account | |
| contact_id | No | Contact Id for which conversation is created | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| assignee_id | No | Agent Id for assigning a conversation to an agent | |
| custom_attributes | No | The object to save custom attributes for conversation, accepts custom attributes key and value Example: {"attribute_key":"attribute_value","priority_conversation_number":3} | |
| additional_attributes | No | Lets you specify attributes like browser information Example: {} |