PaginatedResponse[CampaignRead]
items object[]required
Unique numeric identifier of the record.
Human-readable campaign name.
ID of the product (workspace) that owns this record. Most endpoints scope access by product.
ID of the agent (a configured AI assistant / bot persona) this record belongs to.
Creation time (UTC, ISO 8601).
starts_at objectrequired
When the campaign becomes active (UTC); null means no lower bound.
- date-time
- null
expires_at objectrequired
When the campaign stops being active (UTC); null means no upper bound.
- date-time
- null
Whether the campaign is enabled. Active campaigns require bucket weights summing to 100.
batch_names objectrequired
Comma-separated, normalized batch tokens this campaign targets; empty/null targets leads generically.
- string
- null
config objectrequired
Free-form campaign configuration (JSON). crm_fields_conditions optionally limits which leads participate in this A/B campaign.
Free-form campaign configuration (JSON). crm_fields_conditions optionally limits which leads participate in this A/B campaign.
{
"items": [
{
"id": 0,
"name": "string",
"product_id": 0,
"agent_id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"starts_at": "2024-07-29T15:51:28.071Z",
"expires_at": "2024-07-29T15:51:28.071Z",
"is_active": true,
"batch_names": "string",
"config": {}
}
],
"page": 0,
"limit": 0,
"total": 0,
"pages": 0
}