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.
Update a draft campaign. You can change the campaign name, subject, labels, HTML body, Sequenzy block content, campaign data, computed lists, or reply-to profile.
Request
Updated email subject line.
Updated HTML body. Sequenzy converts this into email blocks.
Updated Sequenzy email blocks. Use this instead of html when you need
editor-compatible content or conditional blocks. Do not send both html and
blocks in the same request.
Replacement label names. Send an empty array to clear labels. Missing labels
are created automatically. The API also accepts label as a compatibility
alias.
Existing reply profile email address for this company. Use this or
replyProfileId, not both.
Reply profile ID for this company. Use this or replyTo, not both.
Campaign-scoped JSON data. For example, upload an events array that this
campaign can use while rendering repeat blocks. The MVP supports up to 500
items per top-level array.
Personalized list definitions that select items from campaignData using
subscriber attributes. Templates can repeat over each list’s key; keys use
letters, numbers, underscores, and dots only. Use maxItems to cap how many
items each subscriber can receive in that list.
curl -X PUT "https://api.sequenzy.com/api/v1/campaigns/camp_abc123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"blocks": [
{
"id": "pro-offer",
"type": "text",
"content": "<p>Your Pro upgrade is ready.</p>",
"variant": "paragraph",
"condition": {
"variable": "plan",
"operator": "equals",
"value": "pro"
}
}
]
}'
curl -X PUT "https://api.sequenzy.com/api/v1/campaigns/camp_abc123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"labels": ["edm", "launch"]}'
curl -X PUT "https://api.sequenzy.com/api/v1/campaigns/camp_abc123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"campaignData": {
"events": [
{
"id": "evt_123",
"title": "Romeo and Juliet",
"region": "Auckland",
"genre": "theatre",
"url": "https://example.com/events/evt_123"
}
]
},
"computedLists": [
{
"key": "recommendedEvents",
"source": "events",
"maxItems": 6,
"rules": [
{
"itemField": "region",
"operator": "equals",
"subscriberField": "region"
},
{
"itemField": "genre",
"operator": "in",
"subscriberField": "interests"
}
]
}
]
}'
Responses
{
"success": true,
"campaign": {
"id": "camp_abc123",
"name": "April Launch",
"subject": "A quick update",
"status": "draft",
"labels": ["edm", "launch"],
"replyProfileId": "reply_abc123",
"replyToName": "Support",
"replyToEmail": "support@example.com"
}
}