About this page · Updated 2026-11-04 17:45 UTC
What this page is: Manage subscriber lists, segmentation, and contact lifecycles for targeted and compliant campaign delivery.
How far to trust this page: the build checked 35 names, paths, tools, scopes and error codes against the real product (0 do not match). Names, paths and numbers checked on 2026-10-22; behaviour prose not verified claim by claim.
Updated 2026-11-04 17:45 UTCLatest change: Audience filters: an end date now includes the whole dayRecently updated pages
Lists & Contact Management
Professional contact management with advanced segmentation capabilities.
Requests need an account API key (Authorization: ApiKey ak_live_...) and your workspace ID in X-Tenant-Id: see Authentication rules and Find your workspace ID.
Creating a List
POST /comm-api/api/lists
Content-Type: application/json
X-Tenant-Id: your-tenant-uuid
{
"name": "Newsletter Subscribers",
"kind": "subscribers",
"source_label": "Website signup form, since 2024",
"description": "People who signed up for the monthly newsletter on the website. Double opt-in. Safe to send marketing to."
}
A list explains itself, so nobody (a teammate, or an AI agent working for you) has to guess from the name. That is the list card.
The list card
| Field | Meaning |
|---|---|
description | What the list is for, who is in it, where the contacts came from, and any caution (for example the consent basis). At most 1000 characters. Leave counts out: they change, and the API computes them for you. |
kind | One of subscribers, customers, leads, event, test, reengagement, derived, system_view, other. |
source_label | Where the contacts came from, in a few words (at most 200 characters). |
provenance | Recorded by the system, not written by you: who made the list (created_by: agent, dashboard or api), how (origin), its sources and exclusions, dated notes. Send X-Motorical-Actor: agent, dashboard or api to say who is acting; it is informational and never a permission. |
GET /comm-api/api/lists/{id} returns the whole card. The counts are computed on every read, so they are never stale: member_count, eligible_count (active, not deleted, not suppressed), unsubscribed_count, bounced_count, other_inactive_count and suppressed_count. It also returns used_by (the campaigns that send to or exclude the list, each with a role of include or exclude), snapshot and description_check.
snapshot: true means the membership was copied once (from a filter, or by deriving it from other lists) and does not follow its source afterwards. The API only warns about a thin description (description_check); it never refuses one unless you ask it to: send strict: true on POST /lists or PATCH /lists/{id} and a weak card (or, on create, a missing kind) is refused with 422 LIST_CARD_INVALID and the findings in warnings, nothing stored. Send dry_run: true to check a create or an edit without writing anything; the answer carries dry_run: true (and previous for an edit).
PATCH /comm-api/api/lists/{id} is a partial update: only the fields you send change, and null clears one.
Importing Contacts
There are four ways in. Pick by how many people you have and who is doing it:
| You have | Use | Notes |
|---|---|---|
| 1 to 1001 people, as rows you already hold | POST /comm-api/api/lists/{id}/contacts/bulk (JSON) | Dry run, a result for every row. See Add contacts as JSON. An AI agent uses this through the comms_import_contacts tool. |
| A CSV file, up to 10 MB | POST /comm-api/api/lists/{id}/contacts/import (CSV) | Dry run, tolerant of messy files. Limited to 10 uploads per 15 minutes per workspace. See below. |
| A CSV file, by hand, on a computer | The dashboard: Comm → Lists → the collapsed Import Contacts (CSV) card | Choose the Target List, tick the consent box, choose the file (up to 10 MB or 100,000 rows). Not available on phones. |
| A few addresses, ad hoc | POST /comm-api/api/lists/{id}/contacts with emails | Up to 5000 addresses per request. No dry run and no per-row result: use the JSON route above whenever you want either. |
Over MCP: an agent can send up to 1001 rows you give it as text, and cleans messy rows itself first. A bigger list, or any file, is uploaded by you in the dashboard card above: an agent cannot upload files and never pastes a large list into chat, so the file stays between you and Motorical.
Rules for every route:
- Nobody who opted out comes back. An import never re-activates a contact who unsubscribed or bounced, never gives them consent, and a suppressed address stays suppressed. A stale file re-uploaded later cannot bring them back, and no campaign is sent to an unsubscribed contact. The same holds when you add addresses to a list with
emails: a contact that already exists keeps its status. - Motorical only knows its own opt-outs. A new account does not know who unsubscribed in your previous tool. Before importing from Mailchimp or any other tool, export its unsubscribed and cleaned lists and add them as suppressions first (Comm → Suppressions → Bulk Import, or
POST /comm-api/api/suppressions/bulk, see Suppressions), or remove those rows from the file. Import only people who are currently subscribed. - Consent is your own statement, that these people agreed to receive marketing email from you. It is a different name on each route: the
consent_givenfield (JSON),consentGiven=true(CSV API), the "I confirm these contacts have given explicit consent (GDPR Article 6)" box (dashboard) andconsentConfirmed(MCP tool). If you leave it unset, contacts are still added but no consent is recorded for them. An AI agent must ask you and never assumes the answer. - Where they came from. Give a
source_label(up to 200 characters) so the list says where its contacts came from. It is optional on the REST calls and required by the MCP tool.
Moving from Mailchimp or another tool? Follow Migrating from Mailchimp: it covers the order of steps, the export files and the header names.
Import a CSV file
Import contacts via CSV with validation and deduplication:
POST /comm-api/api/lists/{id}/contacts/import
Content-Type: multipart/form-data
X-Tenant-Id: your-tenant-uuid
file: contacts.csv
CSV Format
email,name,phone,identity_type,identity_name
alice@example.com,Alice Smith,+12025550111,individual,
billing@acme.co,Billing Dept,+442071234567,company,ACME Ltd
support@startup.io,Support Team,,company,StartupCo
All fields except email are optional.
Send the file as multipart/form-data in the field file (maximum 10 MB). Add dryRun=true (query or body) to check the file without writing anything, and consentGiven=true only when you can truthfully give the consent statement above. A UTF-8 byte-order mark, a semicolon as the separator, a title row above the headers and common alternative header names (for example Email Address) are accepted. Duplicates inside the file are collapsed.
The answer is { processed, added, upserts, errors, errorSamples, duplicatesCollapsed, skippedTitleRow, delimiter }: added were put on the list, upserts were already on it, errorSamples shows a few of the rows that failed. Past 10 uploads in 15 minutes the answer is 429.
Managing Contacts
Add Contacts to a List
POST /comm-api/api/lists/{id}/contacts
Content-Type: application/json
X-Tenant-Id: your-tenant-uuid
{
"emails": ["user1@example.com", "user2@example.com"]
}
List All Contacts
GET /comm-api/api/lists/{id}/contacts?page=1&pageSize=50&q=search-term
X-Tenant-Id: your-tenant-uuid
Delete a Contact
DELETE /comm-api/api/contacts/{contactId}
X-Tenant-Id: your-tenant-uuid
Delete a List
DELETE /comm-api/api/lists/{id}
X-Tenant-Id: your-tenant-uuid
A list that a draft, scheduled or sending campaign sends to, or that any campaign excludes (finished or not), cannot be deleted. The answer is 409 LIST_IN_USE with used_by naming the campaigns (each with its role) and used_by_count. Deleting it would silently change who those campaigns reach. Bulk delete (DELETE /lists) reports the lists in use in failed[] with reason: "LIST_IN_USE" and deletes the rest.
What happens to the people
A list is a set of memberships; the people belong to the workspace. Deleting a list therefore leaves them in your audience unless you say otherwise. Send contacts=delete_orphans (query or body) to also erase the people who are on no other list. The default is keep. People who unsubscribed, bounced, complained or are suppressed are always kept: they are the record that stops a later import from mailing them again. Add dry_run=true to see the numbers first:
{ "success": true, "contacts": { "mode": "delete_orphans", "candidates": 40, "would_delete": 31, "kept": 9 } }
POST /comm-api/api/contacts/cleanup-orphans does the same for people who are already on no list (for example after earlier deletes), also with dry_run.
Archive a List
POST /comm-api/api/lists/{id}/archive hides a list from GET /lists (use ?archived=include or ?archived=only to see it) and makes campaigns refuse it with 409 LIST_ARCHIVED. Nothing is deleted. POST /comm-api/api/lists/{id}/unarchive brings it back.
Undo an Import
Every JSON import returns a batch_id. Send it back as batch_id on later requests to keep a big file in one batch. GET /comm-api/api/lists/{id}/imports lists the batches and POST /comm-api/api/lists/{id}/imports/{batchId}/undo takes one back (dry_run first): the batch's memberships are removed and the people it created are erased unless they are on another list or have unsubscribed, bounced or are suppressed. People who already existed stay. A second undo answers 409 ALREADY_UNDONE. CSV uploads do not create batches.
Same Names
Creating or renaming a list to a name another list already has succeeds with a warnings entry naming it; send strict: true to get 409 LIST_NAME_IN_USE instead.
Contact Features
- CSV and JSON import — a CSV file up to 10 MB, or up to 1001 contacts as JSON with a dry run
- Contact Segmentation — Organize contacts into targeted lists
- Validation — invalid addresses, duplicates and unsafe values are reported per row, never silently dropped
- Contact Profiles — Rich contact data with custom fields and engagement history
Add contacts as JSON, with a dry run
For up to 1001 contacts at a time, without a CSV file:
curl -X POST https://motorical.com/comm-api/api/lists/LIST_ID/contacts/bulk \
-H "Authorization: ApiKey ak_live_YOUR_KEY" \
-H "X-Tenant-Id: your-tenant-uuid" \
-H "Content-Type: application/json" \
-d '{
"dry_run": true,
"on_existing": "keep",
"source_label": "Autumn expo badge scan",
"contacts": [
{ "email": "ada@example.com", "name": "Ada Lovelace" },
{ "email": "grace@example.com" }
]
}'
Every row gets its own result and the summary adds up to the number received. Outcomes: created, added_existing, already_in_list, invalid, duplicate_in_request, rejected_unsafe, skipped_unsubscribed, skipped_bounced, skipped_inactive, skipped_suppressed. People who unsubscribed, bounced or are suppressed are never added back. With dry_run: true nothing is written and would_change shows what a real run would do. on_existing is keep (default) or update (refresh the name of a contact you already have). Errors: CONTACTS_REQUIRED, TOO_MANY_CONTACTS (more than 1001 rows: use the CSV import or the dashboard card), INVALID_ON_EXISTING.
Build a list from other lists
curl -X POST https://motorical.com/comm-api/api/lists/derive \
-H "Authorization: ApiKey ak_live_YOUR_KEY" \
-H "X-Tenant-Id: your-tenant-uuid" \
-H "Content-Type: application/json" \
-d '{
"name": "Newsletter minus expo leads",
"operation": "difference",
"source_list_ids": ["NEWSLETTER_LIST_ID"],
"exclude_list_ids": ["EXPO_LEADS_LIST_ID"],
"description": "Newsletter subscribers who did not come from the autumn expo.",
"dry_run": true
}'
Search and count the whole audience
POST /comm-api/api/recipients/search finds people across the whole workspace, not one list. POST /comm-api/api/recipients/summary counts them (by status, consent, engagement, domain and list, and how many are on no list) without returning anyone. Both take the same filter; every key is optional, keys combine with AND, and an unknown key is refused with UNKNOWN_FILTER_KEY.
curl -X POST https://motorical.com/comm-api/api/recipients/search \
-H "Authorization: ApiKey ak_live_YOUR_KEY" \
-H "X-Tenant-Id: your-tenant-uuid" \
-H "Content-Type: application/json" \
-d '{ "filter": { "email_domain": "example.com", "list_id_not": ["NEWSLETTER_LIST_ID"] }, "limit": 25 }'
Filter keys: status[], engagement[], consent_kind, suppressed, list_id[], list_id_not[], no_list, campaign_id[], batch_id (an import batch), email_domain (exactly the part after the at sign), search, date_from, date_to, last_activity_from, last_activity_to, never_active. A bare date used as an end (date_to, last_activity_to) covers that whole day; a full timestamp is exact. Results carry as_of (when they were read) and interpreted (the date range in plain words). Search returns total, has_more and rows with the lists each person is on; sort is recent, email or activity. Through the MCP the addresses are masked.
The same filter makes a list: POST /comm-api/api/lists/derive with "operation": "filter" and a filter (at least one key, no source lists). It is a snapshot like any derived list; suppressed people are copied but counted apart (would_be_eligible in the dry run).
GET /comm-api/api/suppressions/lookup?email= tells whether one address is suppressed, why and since when.
Taking contacts off a list is POST /comm-api/api/lists/{id}/contacts/bulk-remove with { "contactIds": [...] } (up to 5000 ids) or { "selectAllMatching": true, "q": "..." } for everything matching a search on that list. It removes list membership only: the contacts themselves are not deleted and stay on their other lists. The answer is { "removed": n }. An agent through the MCP can only use the explicit-ids form, up to 100 at a time.
operation is union, intersection (needs at least two sources) or difference (needs exclude_list_ids, which are only used by a difference). Up to 10 source lists. The result is a snapshot: the members are copied once (at most 10000) and later changes to the sources do not flow in. The new list's card records its sources and exclusions. With dry_run: true you get the counts without creating anything. Errors include NAME_REQUIRED, INVALID_OPERATION, SOURCES_REQUIRED, TOO_MANY_SOURCES, INTERSECTION_NEEDS_TWO, EXCLUDE_REQUIRED, EXCLUDE_NOT_ALLOWED, SOURCES_OVERLAP_EXCLUDES and LIST_NOT_FOUND.
Compare lists and see how they connect
GET /comm-api/api/lists/compare?a=LIST_ID&b=LIST_IDreturnsonly_a,only_b,bothandunion(people), and the same four counts for the eligible people, so the overlap is a number instead of a guess. Errors:LISTS_REQUIRED,INVALID_ID,SAME_LIST,LIST_NOT_FOUND.GET /comm-api/api/lists/{id}/relationsreturnsderived_from(its sources),excludes,children(lists made from it),excluded_by, and a smallgraphof the connected lists.GET /comm-api/api/mapis the workspace in one call: lists (short cards), the 50 most recent campaigns, templates, and theedgesbetween them (sends_to,excludes,uses,derived_from).
Exporting Contacts
Download complete contact lists with all fields for backup, migration, or analysis:
GET /comm-api/api/lists/{id}/contacts/export
X-Tenant-Id: your-tenant-uuid
GDPR Data Portability
Comprehensive data export per contact including:
- Contact profile and custom fields
- List memberships and join dates
- Campaign participation history
- Email interaction tracking (opens, clicks)
- Unsubscribe events and suppression status
GDPR exports are delivered securely as email attachments to protect personal data.
Contact Deletion with Anonymization
Right to Erasure (Article 17) — Delete contacts while preserving anonymized campaign statistics. This ensures your aggregate analytics remain accurate while fully removing personal data.