# List a sequence’s people

> Everyone who was added to a sequence, newest first.

`GET /v1/sequences/{id}/enrollments`

Everyone who was added to a sequence, newest first. `contact_id` narrows it to one person’s runs, to see whether they are in it now or were before.

Needs a key with the `messages:read` scope. [Keys and scopes](https://usebluebot.com/docs/concepts/api-keys)

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The sequence’s id. Starts with `seq_` |

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | string | No | Only runs in this state. One of `active`, `completed`, `stopped`, `canceled` |
| `contact_id` | string | No | Only this person’s runs. Starts with `ct_` |
| `limit` | integer | No | How many to return, 1 to 100. Default 25. 1 to 100. Default `25` |
| `cursor` | string | No | The `next_cursor` of the page before. Leave it out for the first page. Up to 200 characters |

## Example

```bash
curl "https://usebluebot.com/api/v1/sequences/seq_1Hq2LxW9cVbN3mKpRtYs0a/enrollments" \
  -H "Authorization: Bearer $BLUEBOT_API_KEY"
```

```ts
import BlueBot from '@usebluebot/sdk';

const client = new BlueBot({ apiKey: process.env.BLUEBOT_API_KEY });

const page = await client.sequences.enrollments.list('seq_1Hq2LxW9cVbN3mKpRtYs0a');
console.log(page.data);
```

```python
import os
from bluebot import BlueBot

client = BlueBot(api_key=os.environ["BLUEBOT_API_KEY"])

page = client.sequences.enrollments.list("seq_1Hq2LxW9cVbN3mKpRtYs0a")
print(page.data)
```

## Response

`200`: A page of runs.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | "list" | Yes |   |
| `data` | array of Enrollment | Yes |   |
| `data[].id` | string | Yes | A enr_ id. Starts with `enr_` |
| `data[].object` | "enrollment" | Yes |   |
| `data[].sequence_id` | string | Yes | A seq_ id. Starts with `seq_` |
| `data[].contact_id` | string | Yes | A ct_ id. Starts with `ct_` |
| `data[].handle` | string | Yes | A phone number in E.164 (`+15555550123`) or an email address an Apple ID uses (iMessage only). |
| `data[].state` | string | Yes | One of `active`, `completed`, `stopped`, `canceled` |
| `data[].current_step` | integer | Yes | The position of the next step. |
| `data[].next_run_at` | timestamp or null | Yes | When the next step happens, while active. |
| `data[].stop_reason` | string or null | Yes | Why it ended early, when it did. One of `replied`, `stopped`, `canceled`, `sequence_archived`, `failed` |
| `data[].enrolled_via` | string | Yes | One of `dashboard`, `api`, `zapier`, `make`, `n8n`, `pipedream`, `cli`, `hook`, `keyword`, `mcp`, `assistant`, `widget` |
| `data[].variables` | map of string | Yes | Values for the steps’ `{{variables}}`. |
| `data[].enrolled_at` | timestamp | Yes | When the person was added. |
| `data[].completed_at` | timestamp or null | Yes | When it ended, by finishing or stopping. |
| `data[].timeline` | array of object | No | What happened, oldest first. Only on `GET /v1/enrollments/{id}`. |
| `data[].timeline[].type` | string | Yes | One of `enrolled`, `text_queued`, `text_skipped`, `waiting`, `window`, `stopped`, `completed`, `canceled` |
| `data[].timeline[].position` | integer or null | Yes | The step it is about. |
| `data[].timeline[].message_id` | string or null | Yes | A msg_ id. Starts with `msg_` |
| `data[].timeline[].until` | timestamp or null | Yes | For a wait, when it ends. |
| `data[].timeline[].detail` | string or null | Yes | What happened, in words. |
| `data[].timeline[].at` | timestamp | Yes | When. |
| `has_more` | boolean | Yes | Whether another page follows. |
| `next_cursor` | string or null | Yes | Send as `cursor` for the next page; null on the last. |

The answer, `200`:

```json
{
  "object": "list",
  "data": [
    {
      "id": "enr_1Hq2LxW9cVbN3mKpRtYs0a",
      "object": "enrollment",
      "sequence_id": "seq_1Hq2LxW9cVbN3mKpRtYs0a",
      "contact_id": "ct_1Hq2LxW9cVbN3mKpRtYs0a",
      "handle": "+15555550123",
      "state": "active",
      "current_step": 2,
      "next_run_at": "2026-11-15T19:41:00.000Z",
      "stop_reason": null,
      "enrolled_via": "api",
      "variables": {
        "listing": "412 Oak St"
      },
      "enrolled_at": "2026-11-13T19:41:00.000Z",
      "completed_at": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## Errors

Every refusal has the same envelope and a page of its own. These are the ones this operation can give.

| Code                                                    | Status | What it means                                                                                                                                    |
| ------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`unauthorized`](https://usebluebot.com/docs/errors/unauthorized)             | 401    | The request carried no key, or a key BlueBot doesn’t know: mistyped, revoked, or a test key sent to the live API.                                |
| [`insufficient_scope`](https://usebluebot.com/docs/errors/insufficient_scope) | 403    | The key doesn’t carry the scope the endpoint needs. Each endpoint’s reference names its scope.                                                   |
| [`rate_limited`](https://usebluebot.com/docs/errors/rate_limited)             | 429    | Too many requests. A key may make 120 requests a minute. The `RateLimit` header says how many are left, and `Retry-After` how long to wait.      |
| [`internal`](https://usebluebot.com/docs/errors/internal)                     | 500    | Something went wrong on BlueBot’s side. It was reported. Send the request again; with an Idempotency-Key that is always safe.                    |
| [`invalid_request`](https://usebluebot.com/docs/errors/invalid_request)       | 400    | Something in the request doesn’t fit: a missing or malformed field, a bad id, or a combination the endpoint refuses. `details` names each field. |
| [`not_found`](https://usebluebot.com/docs/errors/not_found)                   | 404    | There is no such thing on this account. Ids are prefixed by kind, so a message id starts with `msg_`.                                            |

## Try it
