---
title: "List WhatsApp slots of a workspace"
method: GET
path: "/api/v1/workspaces/{workspaceId}/slots"
tags: ["WhatsApp slots"]
---

# List WhatsApp slots of a workspace

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

## Request

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

## Path parameters

- `workspaceId` integer, required

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

OK

- PageOutputBody3
  - `items` SlotBody[], nullable, required
    - `created_at` string, date-time, required
    - `history_depth` integer, required: How many past messages of each chat OTP Run imports from the phone; 0 keeps only new messages
    - `id` string, required
    - `label` string, required
    - `last_error` string, required
    - `last_seen_at` string, date-time, nullable, required
    - `pairing_mode` string, required: code, qr or empty before the first pairing
    - `paused_until` string, date-time, nullable, required
    - `phone` string, required: E.164, empty until paired
    - `project_ids` string[], nullable, required: Projects that send from this number and receive its replies
    - `sent_today` integer, required
    - `state` 'new' | 'pairing' | 'connected' | 'disconnected' | 'logged_out' | 'banned', required
    - `updated_at` string, date-time, required
    - `workspace_id` integer, required
  - `next_cursor` string, nullable, required

## 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)
