Skip to main content
POST
/
api
/
v1
/
campaigns
/
{campaignId}
/
preview-computed-data
Preview Campaign Personalized Lists
curl --request POST \
  --url https://api.sequenzy.com/api/v1/campaigns/{campaignId}/preview-computed-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subscriberId": "<string>",
  "subscriber": {}
}
'
{
  "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"
        }
      ]
    }
  ]
}

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 the per-recipient lists that a campaign will compute from its campaign data.

Request

campaignId
string
required
Campaign ID.
subscriberId
string
Existing subscriber ID to use for the preview. Use this or subscriber.
subscriber
object
Inline preview subscriber. Use this or subscriberId.
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

{
  "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"
        }
      ]
    }
  ]
}