---
title: "WhatsApp conversations with the latest message of each"
method: GET
path: "/api/v1/workspaces/{workspaceId}/conversations"
tags: ["Messages"]
---

# WhatsApp conversations with the latest message of each

`GET /api/v1/workspaces/{workspaceId}/conversations`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/workspaces/{workspaceId}/conversations`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` integer, required

## Query parameters

- `search` string
- `slot_id` string: Only conversations through this number
- `limit` integer

## Response `200`

OK

- ThreadsOutputBody
  - `items` ThreadBody[], nullable, required
    - `last_at` string, date-time, required
    - `last_direction` 'sent' | 'received', required
    - `last_status` string, required: Status of the last sent message, empty when the last message was received
    - `last_text` string, required
    - `name` string, required
    - `phone` string, required
    - `slot_id` string, nullable, required: Number of the last message, null when unknown
    - `unanswered` integer, required: Messages received after the last one sent

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
