API
Lists API
Group contacts into lists, the audiences your campaigns go to.
Lists are the audiences a campaign can send to. Every campaign needs one list and sends only to subscribed people on that list. A one-person send can add someone to a list without emailing the rest of the list.
A list is static or dynamic. A static list holds the people you add. A dynamic list holds every contact who matches its filter, and VeloSend keeps its members up to date. Campaigns treat both the same way.
/api/v1/listsScope
/api/v1/listsScope
Fields
nameRequireddescriptiontypefilterReturns
id, type, filter
type is static (the default) or dynamic. A dynamic list needs a filter; see Dynamic lists below. Creating more dynamic lists than the plan allows returns 402 with limit_key max_dynamic_lists.
/api/v1/lists/{id}Scope
Returns the list with type, filter (null for a static list), member_count, and members_refreshed_at, the last time a dynamic list's members were worked out. GET /api/v1/lists returns the same fields for every list.
/api/v1/lists/{id}Scope
Fields
nameRequireddescriptionfilterfilter replaces a dynamic list's conditions, and its members are worked out again straight away. A list's type cannot change: sending a different type returns 422 with code list_type_fixed. A static list does not take a filter.
/api/v1/lists/{id}Scope
Deletes the list. Campaigns can no longer use it, and it can be restored for your plan's retention period. The contacts on it are not deleted.
Dynamic lists
{
"name": "Reorder gummies",
"type": "dynamic",
"filter": {
"all": [
{ "field": "custom.products_bought", "op": "contains", "value": "kids_gummies" },
{ "field": "custom.last_order_date", "op": "before_days_ago", "value": 25 },
{ "any": [
{ "field": "tags", "op": "contains", "value": "vip" },
{ "field": "custom.order_count", "op": "gte", "value": 2 }
] }
]
}
}A filter is a group. "all" matches contacts who meet every item in it, and "any" matches contacts who meet at least one. A group holds conditions and more groups, three levels deep at most, with 20 conditions in total.
Each condition has field, op, and value. field is email, first_name, last_name, phone, whatsapp, country, source, status, tags, last_instagram_activity, or custom.<key> for one of your contact fields.
| field | op | value |
|---|---|---|
| email, first_name, last_name, phone, whatsapp, country, source, and text fields | eq, neq, contains, starts_with, is_set, is_not_set | text |
| number fields | eq, gt, gte, lt, lte, is_set, is_not_set | a number |
| date fields and last_instagram_activity | before, after, before_days_ago, after_days_ago, is_set, is_not_set | a date such as 2026-10-01, or a number of days |
| boolean fields | eq, is_set, is_not_set | true or false |
| select fields | in, not_in, is_set, is_not_set | a list of choices |
| status | in, not_in | a list of subscribed, unsubscribed, bounced |
| tags | contains, not_contains | one tag |
- Text matches ignore upper and lower case.
- before_days_ago 25 matches dates 25 or more days ago. after_days_ago 7 matches dates in the last 7 days, today included. Days are counted in UTC.
- neq, not_in, not_contains, and is_not_set also match contacts with no value in that field.
- is_set and is_not_set take no value.
- source is where the contact came from, such as manual, instagram, or whatsapp.
- last_instagram_activity is the day of the contact's latest Instagram lead, comment, or message from Direct Chat. Contacts with none have no value.
A field, op, or value that does not fit returns 422 with code invalid_filter and a path, such as filter.all[1].op, that points at it.
When members update
A dynamic list's members are worked out when it is created or its filter changes, each time a campaign or WhatsApp send goes to it, when the list or its contacts are read, and within a few minutes of any contact changing. Filters that use before_days_ago or after_days_ago are also worked out again every 10 minutes. Deleted contacts are left out. Unsubscribed and bounced contacts can match, but campaigns only send to subscribed people.
A contact field that a dynamic list uses cannot be deleted until no dynamic list uses it.
Preview a filter
/api/v1/lists/preview-filterScope
Fields
filter (required)
Returns
count, subscribed, sample, filter
Counts the contacts the filter matches now and how many of them are subscribed, and returns up to 10 of them in sample. Nothing is saved. filter comes back in the form VeloSend stores, with choices in their saved spelling.
List contacts
/api/v1/lists/{id}/contactsScope
Query
limitoffsetReturns the current contacts of a list of either type, with the same fields as members.
Members
/api/v1/lists/{id}/membersScope
/api/v1/lists/{id}/membersScope
Fields
emailcontact_id/api/v1/lists/{id}/membersScope
Query
contact_id