Manage Lists
Create, organize, and manage contact lists to segment your audience for targeted email campaigns.Goal
By the end of this guide you will be able to create lists within a contact structure, list all existing lists, update list names, delete lists, duplicate a list, and merge multiple lists into one.Prerequisites
- An API key with
contacts:writescope (for full list management) orcontacts:readscope (for read-only access) - Your API base URL (found on the Settings > API Keys page)
- A contact structure ID — lists belong to a contact structure. Retrieve yours with
GET /api/contact-structure(see Manage Custom Fields)
Steps
1. Create a list
Create a new list within a contact structure. The only required field isname.
201 Created):
- List type defaults to
"static"(the only supported type currently) - List names can be up to 1,000 characters
2. List all lists (paginated)
Retrieve lists with pagination, sorting, and search support.200 OK):
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (1-indexed) |
size | integer | Number of results per page |
sort | string | Sort field and direction, e.g. name:asc, createdAt:desc |
criteria | string | Search filter text to match list names |
_id, name, and type only):
3. Get a single list
200 OK):
4. Update a list
Rename a list by sending aPATCH request. You must include the current __v (version) value for optimistic concurrency control.
200 OK):
__v field prevents conflicts when multiple clients update the same list. Always send the current __v value from your last GET response. If another update occurred in the meantime, you will receive a 400 error with a ConcurrencyError type.
5. Delete a list
Delete a single list by ID:204 No Content): Empty body.
To delete multiple lists at once, send a DELETE to the lists collection endpoint:
204 No Content): Empty body.
6. Duplicate a list
Create a copy of an existing list (contacts are copied to the new list).201 Created):
7. Merge lists
Combine two or more lists into a new list. Contacts from all source lists are added to the new list (duplicates are handled automatically).200 OK):
- The source lists are not deleted; they remain intact
- The merged list is a new list containing all unique contacts from the source lists
- At least one
listIdis required
Common Errors
| Status | Error | Cause | Fix |
|---|---|---|---|
401 | UnauthorizedError | Invalid or inactive API key | Verify your key in Settings > API Keys |
403 | ForbiddenError | Key lacks contacts:write scope | Upgrade the key’s scopes or create a new key with contacts:write |
400 | ValidationError | Missing required fields (e.g., name) | Check request body against the schema requirements |
400 | ConcurrencyError | __v mismatch on update — another update occurred since your last read | Fetch the latest version with GET and retry with the current __v |
404 | RecordNotFound | Contact structure ID or list ID does not exist | Verify IDs match existing resources |
429 | TooManyRequestsError | Rate limit or monthly quota exceeded | Wait for the Retry-After period. See Rate Limits |
Next Steps
- Manage Contacts — create contacts and assign them to lists
- Search Contacts — find contacts within a specific list
- Manage Custom Fields — define the fields on your contact structure
- Migration from Legacy — end-to-end data migration workflow