---
title: "Get all statuses"
method: GET
path: "/{sub_domain}/api/statuses"
tags: ["Statuses"]
---

# Get all statuses

`GET /{sub_domain}/api/statuses`

## Request

- Base URL: `https://api.commpeak.com/dialer`
- URL: `https://api.commpeak.com/dialer/{sub_domain}/api/statuses`
- Auth: API key in header `Authorization`

Retrieve the list of statuses that can be assigned to leads in your campaigns.

**When to use.** Build a status picker, or map your own codes to a status, before working with leads. To fetch a single status by its id, use `GET /statuses/{id}`.

**Parameters.** `id` (query, optional): return only the status with this id. `campaign_id` (query, optional): return only statuses that belong to this campaign. You can also filter, order, limit and select fields by any response field. See [Core API Concepts](https://td.commpeak.link/Readme-dialer-api-docs).

**Returns.** `{ "statuses": [ ... ] }`, where each entry has `id`, `campaign_id`, `name` and `code`.

**Example.** `GET /api/statuses/campaign_id/2`

## Path parameters

- `sub_domain` string, required: Dialer Name (subdomain)

## Query parameters

- `id` integer, nullable: Filter by status ID.
- `campaign_id` integer, nullable: Filter by campaign ID.

## Response `200`

Successful Response

- StatusResponse
  - `statuses` StatusResult[], required
    - `id` integer, nullable, required: Status ID.
    - `campaign_id` integer, nullable, required: Campaign ID the status belongs to.
    - `name` string, nullable, required: Status name.
    - `code` string, nullable, required: API status code, if one is mapped; otherwise null.

## Other responses

- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-dialer-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/revisions/18c5edc07544?raw)
