Get threads.

GET {{baseUrl}}/conversations/v3/conversations/threads?after=<string>&limit=<integer>&sort=<string>&sort=<string>&inboxId=<integer>&inboxId=<integer>&associatedContactId=<long>&threadStatus=<string>&latestMessageTimestampAfter=<dateTime>&archived=<boolean>&property=<string>&association=TICKET

Request Params

KeyDatatypeRequiredDescription
afterstringThe paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.
limitstringThe maximum number of results to display per page.
sortstringSet the sort order of the response. Valid options are id (default) and latestMessageTimestamp (which requires the latestMessageTimestampAfter field to also be set). If you’re filtering threads by associatedContactId , you can sort in descending order by prepending - to the sort option (e.g., -id or -latestMessageTimestampAfter ). Otherwise, results are always returned in ascending order.
sortstringSet the sort order of the response. Valid options are id (default) and latestMessageTimestamp (which requires the latestMessageTimestampAfter field to also be set). If you’re filtering threads by associatedContactId , you can sort in descending order by prepending - to the sort option (e.g., -id or -latestMessageTimestampAfter ). Otherwise, results are always returned in ascending order.
inboxIdstringThe ID of the conversations inbox you can optionally include to retrieve the associated messages for. This parameter cannot be used in conjunction with the associatedContactId property.
inboxIdstringThe ID of the conversations inbox you can optionally include to retrieve the associated messages for. This parameter cannot be used in conjunction with the associatedContactId property.
associatedContactIdstringThe ID of a contact you can optionally include to retrieve a filtered list of conversations for. This parameter cannot be used in conjunction with the inboxId property.
threadStatusstringThe status of the associated conversations to filter by (either OPEN or CLOSED). This property must be provided if you’re including the associatedContactId query parameter.
latestMessageTimestampAfterstringThe minimum latestMessageTimestamp. This is required only when sorting by latestMessageTimestamp.
archivedstringWhether to return only results that have been archived.
propertystring
associationstringYou can specify an association type here of TICKET. If this is set the response will included a thread associations object and associated ticket id if present. If there are no associations to a ticket with this conversation, then the thread associations object will not be present on the response.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;associatedContactId&quot;:&quot;\u003cstring\u003e&quot;,&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;inboxId&quot;:&quot;\u003cstring\u003e&quot;,&quot;spam&quot;:&quot;\u003cboolean\u003e&quot;,&quot;status&quot;:&quot;OPEN&quot;,&quot;closedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageSentTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageReceivedTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;assignedTo&quot;:&quot;\u003cstring\u003e&quot;,&quot;archived&quot;:&quot;\u003cboolean\u003e&quot;,&quot;originalChannelAccountId&quot;:&quot;\u003cstring\u003e&quot;,&quot;originalChannelId&quot;:&quot;\u003cstring\u003e&quot;},{&quot;associatedContactId&quot;:&quot;\u003cstring\u003e&quot;,&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;inboxId&quot;:&quot;\u003cstring\u003e&quot;,&quot;spam&quot;:&quot;\u003cboolean\u003e&quot;,&quot;status&quot;:&quot;CLOSED&quot;,&quot;closedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageSentTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageReceivedTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;assignedTo&quot;:&quot;\u003cstring\u003e&quot;,&quot;archived&quot;:&quot;\u003cboolean\u003e&quot;,&quot;originalChannelAccountId&quot;:&quot;\u003cstring\u003e&quot;,&quot;originalChannelId&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}}