---
title: "Get message threads for a phone number"
method: GET
path: "/message-threads"
tags: ["MessageThreads"]
---

# Get message threads for a phone number

`GET /message-threads`

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

## Query parameters

- `owner` string, required
- `skip` integer
- `query` string
- `limit` integer
- `contacts` boolean

## Response `200`

OK

- ResponsesMessageThreadsResponse
  - `data` EntitiesMessageThread[], required
    - `color` string, required
    - `contact` string, required
    - `contact_details` EntitiesContact
      - `created_at` string, required
      - `emails` string[], required
      - `id` string, required
      - `name` string, required
      - `phone_numbers` string[], required
      - `properties` object, required
      - `updated_at` string, required
      - `user_id` string, required
    - `created_at` string, required
    - `id` string, required
    - `is_archived` boolean, required
    - `is_read` boolean, required
    - `last_message_content` string, required
    - `last_message_id` string, required
    - `order_timestamp` string, required
    - `owner` string, required
    - `status` string, required
    - `updated_at` string, required
    - `user_id` string, required
  - `message` string, required
  - `status` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Unprocessable Entity
- `500` — Internal Server Error

## Changes

> 25 revisions in range; 1 could not be searched.

- **2024-01-11** `65947cee42ef` — 2 info
  - api tag `MessageThreads` added
  - api tag `Channel Threads` removed
- **2023-12-22** `7e5887f7aceb` — 2 info
  - api tag `Channel Threads` added
  - api tag `MessageThreads` removed

[Change history](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/changes/message-threads/get.md)

---

[API](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference.md) · [All operations](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ndolestudio/httpsms-api-reference/revisions/7e5d7ce790b3/schema)
