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.

GET/api/v1/lists

Scope

lists:read
POST/api/v1/lists

Scope

lists:write

Fields

nameRequireddescriptiontypefilter

Returns

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.

GET/api/v1/lists/{id}

Scope

lists:read

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.

PUT/api/v1/lists/{id}

Scope

lists:write

Fields

nameRequireddescriptionfilter

filter 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.

DELETE/api/v1/lists/{id}

Scope

lists:write

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

json
{
  "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.

fieldopvalue
email, first_name, last_name, phone, whatsapp, country, source, and text fieldseq, neq, contains, starts_with, is_set, is_not_settext
number fieldseq, gt, gte, lt, lte, is_set, is_not_seta number
date fields and last_instagram_activitybefore, after, before_days_ago, after_days_ago, is_set, is_not_seta date such as 2026-10-01, or a number of days
boolean fieldseq, is_set, is_not_settrue or false
select fieldsin, not_in, is_set, is_not_seta list of choices
statusin, not_ina list of subscribed, unsubscribed, bounced
tagscontains, not_containsone 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

POST/api/v1/lists/preview-filter

Scope

lists:read

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

GET/api/v1/lists/{id}/contacts

Scope

lists:read

Query

limitoffset

Returns the current contacts of a list of either type, with the same fields as members.

Members

GET/api/v1/lists/{id}/members

Scope

lists:read
POST/api/v1/lists/{id}/members

Scope

lists:write

Fields

emailcontact_id
DELETE/api/v1/lists/{id}/members

Scope

lists:write

Query

contact_id