POST /v1/conversations — list conversations
Returns a paginated list of conversations. Results are sorted byupdated descending by default. Pass the updated value of the last returned conversation as the date cursor to fetch the next page.
Request body
The user ID of a member of the inbox. This is used to verify inbox membership and scope the results.
An object containing filter criteria for the conversations query.
An RFC 3339 pagination cursor. Only conversations updated before this timestamp are returned. Use the
updated field of the last item in the previous response to fetch the next page.Request example
Example
To paginate through all conversations, take the
updated field of the last item in each response and use it as the date value in your next request. Continue until the response returns an empty array.POST /v1/conversations/count — count conversations
Returns the total number of conversations, optionally filtered by a date range.Request body
An RFC 3339 timestamp. When provided, only conversations updated before this date are counted.
Example
The Conversation object
The unique ID of the conversation.
The channel type:
sms, mms, email, or chat.Whether the conversation is
open or closed.The team member the conversation is assigned to, if any.
The inbox this conversation belongs to.
The contact’s phone number or email address.
An array of team members who are participants in the conversation.
The ISO 8601 timestamp of when the conversation was created.
The ISO 8601 timestamp of the most recent activity in the conversation. Use this as the
date pagination cursor.Whether the conversation has been read by the requesting user.
Whether the conversation has received a reply.
Whether the contact has been blocked.
Whether notifications are muted for this conversation.
An ISO 8601 timestamp indicating when the snooze on this conversation expires, if snoozed.