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

# Preview Matching Sequences

> Preview which active sequences would start when adding a new contact with the given lists and tags

Use this read-only endpoint before calling [Create Subscriber](https://docs.sequenzy.com/api-reference/subscribers/create.md) or [Create Subscriber Import](https://docs.sequenzy.com/api-reference/subscribers/import-create.md) to see which active sequences match a combination of lists and tags. You can pass any returned sequence IDs in `enrollSequenceIds` to enroll contacts into only the sequences you choose.

Requires an API key with the `sequences:read` scope. Nothing is created or modified.

## Request Body

**listIds** `string[]`

List IDs to evaluate (up to 500 non-empty IDs). Omit `listIds` to evaluate
your workspace default lists, or pass `[]` to evaluate adding a contact with
no lists. Every supplied ID must belong to your workspace. Do not send
together with `lists`.

**lists** `string[]`

Alias for `listIds` (up to 500 non-empty IDs), matching
`POST /api/v1/subscribers`. Do not send together with `listIds`.

**tags** `string[]`

Tag names to include when matching `tag_added` sequence triggers (up to 100
non-empty tags).

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/subscribers/sequences-preview" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "listIds": ["list_abc123"],
    "tags": ["beta"]
  }'
```

## Responses

```json 200 Matching sequences theme={null}
{
  "success": true,
  "sequences": [
    {
      "id": "seq_welcome",
      "name": "Welcome",
      "trigger": {
        "type": "contact_added",
        "listId": "list_abc123",
        "listName": "Newsletter"
      }
    },
    {
      "id": "seq_beta",
      "name": "Beta Follow-up",
      "trigger": {
        "type": "tag_added",
        "tagName": "beta"
      }
    }
  ]
}
```

```json 400 Invalid list ID or conflicting fields theme={null}
{
  "success": false,
  "error": "One or more listIds do not belong to this company."
}
```

```json 403 Missing sequences:read scope theme={null}
{
  "success": false,
  "error": "API key is missing required scope: sequences:read"
}
```

## Trigger Shapes

Each item in `sequences` includes the trigger that matched:

| `trigger.type` | Fields | Meaning |
| - | - | - |
| `contact_added` | `listId`, `listName` | Triggered by adding a contact to that list (`null` for any list). |
| `tag_added` | `tagName` | Triggered by one of your supplied tags or a sync-rule tag. |
| `contact_subscribed` | none | Triggered by the `contact.subscribed` event without email-based filters. |


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