> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seleqt.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Lead status

## Lead Status API

Every person in Seleqt has one **lead status**, shared by all of their rows in the workspace: the contact in a lead list and every campaign they are in. A status set on any of those rows applies everywhere.

The status is set:

* by Seleqt itself — a sequence starts (`ACTIVE`), a reply comes in and is classified, an email bounces, the lead unsubscribes, a meeting is booked. These automatic changes only move a lead forward (a later reply never undoes `MEETING_BOOKED`) and never move a lead out of `STOPPED`;
* by a person in the app, or through this API (any status, in any direction);
* by a [Google Sheet sync](https://docs.seleqt.ai/api-reference/public/sheet-syncs.md) or a CRM field mapped to **Status**.

### Available Endpoints

* **[GET /public/lead-status/](#get-lead-status)** - The statuses and the workspace's stop rule
* **[PATCH /public/prospects/:id/lead-status/](https://docs.seleqt.ai/api-reference/public/lead-status-set.md)** - Set one lead's status (optionally resume outreach)
* **[GET /public/prospects/:id/lead-status/events/](https://docs.seleqt.ai/api-reference/public/lead-status-events.md)** - A lead's status history
* **[POST /public/campaigns/:id/lead-status/](https://docs.seleqt.ai/api-reference/public/lead-status-campaign.md)** - Stop or resume outreach for leads of a campaign
* **[POST /public/lead-lists/:id/lead-status/](https://docs.seleqt.ai/api-reference/public/lead-status-lead-list.md)** - Stop or resume outreach for leads of a lead list

### Statuses

| Value | Label | Can stop outreach |
| - | - | - |
| `ACTIVE` | Active | No |
| `REPLIED` | Replied | No (use the campaign's own "Stop on reply" setting) |
| `INTERESTED` | Interested | When added to the stop rule |
| `MEETING_BOOKED` | Meeting booked | When added to the stop rule |
| `NOT_INTERESTED` | Not interested | When added to the stop rule |
| `BOUNCED` | Bounced | When added to the stop rule |
| `UNSUBSCRIBED` | Unsubscribed | When added to the stop rule |
| `STOPPED` | Stopped | **Always** |

A lead that was never contacted has no status (`null`).

### Stopping and resuming outreach

* A status in the workspace's **stop rule** stops all outreach to the person: every pending step of the person in **every campaign** is cancelled, and running sequences move to `STOPPED`. `STOPPED` is always in the stop rule; Admins can add other statuses under **Settings** in the app. Seleqt also checks the status again right before each send, so nothing goes out between a status change and the cancel.
* Changing the status back (for example from `STOPPED` to `ACTIVE`) does **not** restart anything. The stopped sequences stay stopped until outreach is resumed — with `resume: true` on [PATCH /public/prospects/:id/lead-status/](https://docs.seleqt.ai/api-reference/public/lead-status-set.md), or `action: "resume"` on the campaign / lead list endpoints.
* Resuming sets the status back to `ACTIVE` (when it is a stopping status or empty) and every sequence a stop ended picks up where it stopped: the cancelled steps are planned again without their delay. Steps that already ran are never repeated. In a paused campaign the steps are planned when the campaign is resumed.

### The `lead_status` field on leads

Lead objects returned by [GET /public/lead-lists/:id/leads/](https://docs.seleqt.ai/api-reference/public/lead-lists-get-leads.md) and [POST /public/campaigns/:id/export/](https://docs.seleqt.ai/api-reference/public/campaigns-export.md) include `lead_status` (one of the values above, or `null`).

Leads from before the lead status existed have no stored status until something happens to them. For these, lead endpoints ([lead list leads](https://docs.seleqt.ai/api-reference/public/lead-lists-get-leads.md), [campaign export](https://docs.seleqt.ai/api-reference/public/campaigns-export.md)) and [GET /public/prospects/:id/lead-status/events/](https://docs.seleqt.ai/api-reference/public/lead-status-events.md) return the status their campaigns add up to, with `lead_status_derived: true`.

### Source of a change

Every change is recorded with its source: `SELEQT` (automatic), `MANUAL` (a person in the app), `SHEET` (a Google Sheet sync), `CRM` (a CRM sync) or `API`. Changes made with an API key or through the MCP connector are recorded as `API`.

Subscribe to the [`lead.status_changed`](https://docs.seleqt.ai/webhooks/webhook-events) webhook event to be notified of every change.

***

## GET /api/v1/public/lead-status/

Returns the lead statuses and the statuses that stop outreach in your current workspace.

Auth: `X-API-Key`

### Response

```json theme={null}
{
  "success": true,
  "statuses": [
    { "value": "ACTIVE", "label": "Active", "stoppable": false },
    { "value": "REPLIED", "label": "Replied", "stoppable": false },
    { "value": "INTERESTED", "label": "Interested", "stoppable": true },
    { "value": "MEETING_BOOKED", "label": "Meeting booked", "stoppable": true },
    { "value": "NOT_INTERESTED", "label": "Not interested", "stoppable": true },
    { "value": "BOUNCED", "label": "Bounced", "stoppable": true },
    { "value": "UNSUBSCRIBED", "label": "Unsubscribed", "stoppable": true },
    { "value": "STOPPED", "label": "Stopped", "stoppable": true }
  ],
  "stop_on": ["NOT_INTERESTED", "STOPPED", "UNSUBSCRIBED"]
}
```

| Field | Type | Description |
| - | - | - |
| `success` | boolean | Always `true` on a successful response. |
| `statuses` | array | Every lead status, in display order. |
| `statuses[].value` | string | The status code used everywhere in the API. |
| `statuses[].label` | string | The label shown in the app. |
| `statuses[].stoppable` | boolean | Whether the status can be part of the stop rule. |
| `stop_on` | array of strings | The statuses that stop all outreach in this workspace. Always contains `STOPPED`. |

The stop rule is changed by Admins in the app; it can't be changed through the public API.

### Example

```bash theme={null}
curl -H "X-API-Key: <key>" \
  "https://api.seleqt.ai/api/v1/public/lead-status/"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.