Chat
Use this API to triage Bento Chat support threads with your normal Bento API keys and site_uuid. Conversation IDs are Chat display IDs, the same numbers you see in Chat conversation URLs.
Available Endpoints
The Conversation Model
Conversations are support threads in Bento Chat. Each record includes the contact, inbox, status, and latest activity. Message endpoints return the created message plus the conversation and contact summary.
Properties
- Name
idinteger- Description
Chat display ID for the conversation. Use this value in reply and note paths.
- Name
contactobject- Description
Contact summary with
id,name,email, andphone_number.
- Name
inboxobject- Description
Inbox summary with
id,name, andinbox_type.
- Name
assigneeobject|null- Description
Assigned agent when present. Contains
id,name, andemail.
- Name
statusstring- Description
Conversation status such as
open,resolved,pending, orsnoozed.
- Name
last_messagestring|null- Description
Content of the most recent message in the thread.
- Name
urlstring- Description
URL to open the conversation in Bento Chat.
List Conversations
Returns conversations for the site. Filter by status, assignment, inbox, page, and message search text.
Optional Attributes
- Name
statusstring- Description
One of
open,resolved,pending,snoozed, orall.
- Name
assignee_typestring- Description
One of
me,unassigned,assigned, orall.
- Name
inbox_idinteger- Description
Limit results to one inbox.
- Name
qstring- Description
Search text matched against conversation messages.
- Name
pageinteger- Description
Page number for paginated results.
Response
Returns matching conversations and pagination metadata.
- Name
conversationsarray- Description
Conversation records for the current page.
- Name
meta.countinteger- Description
Number of conversations returned on this page.
- Name
meta.total_countinteger- Description
Total conversations that match the filters.
- Name
meta.pageinteger- Description
Current page number.
- Name
meta.per_pageinteger- Description
Page size used for the response.
Get Conversation
Returns one conversation and its most recent messages.
Response
Returns the conversation summary plus a messages array.
- Name
idinteger- Description
Chat display ID for the conversation.
- Name
messagesarray- Description
Recent messages in chronological order. Each item includes
id,content,message_type,private,created_at, andsender.
List Conversations By Email
Returns the contact and their conversations for one email address.
Required Attributes
- Name
contact_emailstring- Description
Email address of the contact to look up.
Response
Returns the contact summary and their conversations.
- Name
contactobject- Description
Contact summary with
id,name,email, andphone_number.
- Name
conversationsarray- Description
Conversations for that contact, newest first.
List Inboxes
Returns inboxes for the site. Use an inbox id when starting a conversation.
Response
Returns the site inboxes.
- Name
successboolean- Description
truewhen the request succeeds.
- Name
inboxesarray- Description
Inbox records with
id,name,channel_type,email, greeting fields, andtimezone.
- Name
inboxes[].idinteger- Description
Inbox ID to pass as
inbox_idwhen starting a conversation.
- Name
inboxes[].channel_typestring- Description
Channel class such as
Channel::EmailorChannel::WebWidget.
Send A Reply
Sends a public reply in an existing conversation.
Required Attributes
- Name
message_contentstring- Description
Message body sent to the customer.
Response
Returns the created message with conversation and contact summaries.
- Name
successboolean- Description
truewhen the message is created.
- Name
messageobject- Description
Created message details, including
id,content,message_type,private,created_at, andsender.
- Name
conversationobject- Description
Conversation summary with
idandstatus.
- Name
contactobject- Description
Contact summary with
id,name, andemail.
Start A Conversation
Starts or continues a conversation for a contact email. Call List Inboxes first to get an inbox_id.
Required Attributes
- Name
inbox_idinteger|string- Description
Inbox ID from the list inboxes response.
- Name
contact_emailstring- Description
Email address of the contact.
- Name
message_contentstring- Description
Outgoing message body.
Optional Attributes
- Name
contact_namestring- Description
Name used when creating a new contact.
- Name
mail_subjectstring- Description
Subject line for email inbox conversations.
Response
Returns the created message with conversation and contact summaries.
- Name
successboolean- Description
truewhen the message is created.
- Name
messageobject- Description
Created message with
id,content, andcreated_at.
- Name
conversation.idinteger- Description
Chat display ID for the new or existing conversation.
- Name
contactobject- Description
Contact summary with
id,name, andemail.
Create A Private Note
Adds a private note to the conversation. Notes stay in the support thread and are not sent to the customer.
Required Attributes
- Name
contentstring- Description
Private note body.
Response
Returns the created private note with conversation and contact summaries.
- Name
successboolean- Description
truewhen the note is created.
- Name
message.privateboolean- Description
Always
truefor notes created through this endpoint.
- Name
message.contentstring- Description
Private note body.
Update Conversation Status
Updates the status of an existing conversation. Use resolved to close a support thread, or open to reopen one.
Required Attributes
- Name
statusstring- Description
One of
open,resolved,pending, orsnoozed.
Response
Returns the updated conversation summary.
- Name
successboolean- Description
truewhen the status is updated.
- Name
conversation.idinteger- Description
Chat display ID for the conversation.
- Name
conversation.statusstring- Description
Updated status such as
resolvedoropen.