v24

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-015163191.7 KB
MessageThreads

Get message threads for a phone number

Get list of contacts which a phone number has communicated with (threads). It will be sorted by timestamp in descending order.

get/message-threads

Query parameters

ownerstring required

owner phone number

skipinteger

number of messages to skip

querystring

filter message threads containing query

limitinteger

number of messages to return

Response

OK

messagestring required
statusstring required

Example response

{
  "data": [
    {
      "color": "indigo",
      "contact": "+18005550100",
      "created_at": "2022-06-05T14:26:09.527976+03:00",
      "id": "32343a19-da5e-4b1b-a767-3298a73703ca",
      "is_read": true,
      "last_message_content": "This is a sample message content",
      "last_message_id": "32343a19-da5e-4b1b-a767-3298a73703ca",
      "order_timestamp": "2022-06-05T14:26:09.527976+03:00",
      "owner": "+18005550199",
      "status": "PENDING",
      "updated_at": "2022-06-05T14:26:09.527976+03:00",
      "user_id": "WB7DRDWrJZRGbYrv2CKGkqbzvqdC"
    }
  ],
  "message": "Request handled successfully",
  "status": "success"
}