The Conversations API lets you read and manage conversation threads in your Sahut inbox programmatically. Use it to pull conversation data into your reporting tools, create conversations from external triggers, or update conversation status and assignments.Documentation Index
Fetch the complete documentation index at: https://docs.sahut.id/llms.txt
Use this file to discover all available pages before exploring further.
List conversations
Retrieve a paginated list of conversations in your workspace.Query parameters
Filter by status. One of:
open, pending, resolved, snoozed. Omit to return all statuses.Filter by channel ID. Returns only conversations from that channel.
Filter by assigned agent ID. Use
unassigned to get conversations with no assignee.Page number for pagination. Default:
1.Number of results per page. Default:
25. Max: 100.Example request
Example response
Get a conversation
Retrieve a single conversation by its ID.Path parameters
The conversation ID (e.g.,
conv_01HX2B9K3M5N7P).Example request
Create a conversation
Start a new conversation. This creates an outbound conversation — useful for proactive outreach.Request body
ID of the contact to start the conversation with.
ID of the channel to use for this conversation.
Optional initial message to send. Include
content (string) for a text message, or template_id for a WhatsApp template message.Agent ID to assign the conversation to immediately.
Example request
Update a conversation
Change a conversation’s status, assignee, or labels.Request body
New status. One of:
open, pending, resolved, snoozed.Agent ID to assign to. Pass
null to unassign.Team ID to assign to.
Array of label names to set on the conversation. Replaces existing labels.