> ## 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 Campaign Personalized Lists

> Preview campaign personalized lists for a subscriber

Preview the per-recipient lists that a campaign will compute from its campaign data.

## Request

<ParamField path="campaignId" type="string" required>
  Campaign ID.
</ParamField>

<ParamField body="subscriberId" type="string">
  Existing subscriber ID to use for the preview. Use this or `subscriber`.
</ParamField>

<ParamField body="subscriber" type="object">
  Inline preview subscriber. Use this or `subscriberId`.
</ParamField>

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/preview-computed-data" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subscriber": {
      "email": "anna@example.com",
      "customAttributes": {
        "region": "Auckland",
        "interests": ["theatre", "arts"]
      }
    }
  }'
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "variables": {
      "campaign": {
        "events": []
      },
      "recommendedEvents": [
        {
          "id": "evt_123",
          "title": "Romeo and Juliet"
        }
      ]
    },
    "lists": [
      {
        "key": "recommendedEvents",
        "items": [
          {
            "id": "evt_123",
            "title": "Romeo and Juliet"
          }
        ],
        "exposures": [
          {
            "slot": 1,
            "id": "evt_123",
            "title": "Romeo and Juliet"
          }
        ]
      }
    ]
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": "Provide subscriberId or subscriber."
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": "Campaign not found"
  }
  ```
</ResponseExample>
