---
title: "List message threads on a number"
method: GET
path: "/messages/threads"
tags: ["messages"]
---

# List message threads on a number

`GET /messages/threads`

## Request

- Base URL: `https://api.voixcall.com/v1`
- URL: `https://api.voixcall.com/v1/messages/threads`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.voixcall.com/oauth/authorize`, token URL `https://api.voixcall.com/oauth/token`, scopes: `messages:history`)
  - HTTP bearer

One entry per sender on one of your opted-in VoixCall numbers, most recent activity first, with the message count and a preview of the latest message (third-party text, at most 500 bytes). Same opt-in, ownership and per-number limits as list-messages. Requires messages:history.

## Query parameters

- `limit` string: Page size, 1 to 100. Default 10.
- `starting_after` string: Return objects after this id (older).
- `ending_before` string: Return objects before this id (newer).
- `number` string, required: One of your VoixCall numbers: its id (num_...) or the number in E.164.

## Response `200`

OK

- ListMessageThread
  - `data` MessageThread[], nullable, required
    - `counterparty` string, required: The sender: E.164, a short code, or an alphanumeric sender name. Third-party text.
    - `id` string, required: Thread id (thr_ prefix); stable for a number and sender.
    - `last_body_preview` string, nullable, required: The latest message's text, at most 500 bytes. Third-party text. null once past the retention period.
    - `last_body_truncated` boolean, required
    - `last_message_at` string, date-time, required
    - `livemode` boolean, required
    - `message_count` integer, required: Inbound messages from this sender on this number.
    - `number` string, required: Your VoixCall number, E.164.
    - `object` 'message_thread', required: Always "message_thread".
  - `has_more` boolean, required: Whether more objects exist beyond this page in the direction of travel.
  - `object` 'list', required: Always "list".

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/voixcall/apis/voixcall-api.md) · [All operations](https://skmtc.dev/voixcall/apis/voixcall-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voixcall/apis/voixcall-api/revisions/9aac329ff0f5?raw)
