Project API

Lists API

Manage audiences and their membership.

View as Markdown ↗

Project key. Acts in the project the key belongs to. An all-access key works too — name the project with an X-Project-Id header. How keys and scopes work.

Endpoints

GET/v1/lists
POST/v1/lists
GET/v1/lists/{id}
PATCH/v1/lists/{id}
DELETE/v1/lists/{id}
GET/v1/lists/{id}/contacts
POST/v1/lists/{id}/contacts
DELETE/v1/lists/{id}/contacts/{contact_id}

Create & manage

Body parameters

namestringrequired

Display name for the list.

descriptionstringoptional

Optional description.

double_optinbooleanoptional

Require email confirmation for new members. Defaults to false. See double opt-in below.

cURL
curl -X POST https://emailbump.com/api/v1/lists \
  -H "Authorization: Bearer ebk_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Newsletter", "double_optin": true }'

Membership

Add a contact by id or email (this fires any list-join automations):

cURL
curl -X POST https://emailbump.com/api/v1/lists/LIST_ID/contacts \
  -H "Authorization: Bearer ebk_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "email": "jamie@example.com" }'

You can also add a contact to lists when you create it, via list_ids on POST /v1/contacts.

  • GET /v1/lists/{id}/contacts returns the list's members: confirmed contacts, and on a double-opt-in list, pending ones. Contacts who unsubscribed from the list aren't included.
  • DELETE /v1/lists/{id}/contacts/{contact_id} removes a member. It keeps a contact's opt-out: if they unsubscribed from the list, the DELETE leaves that on record, so adding them again later (from the API, the dashboard, an import or a flow) doesn't put them back.
  • Adding is idempotent and always answers 200, so a sync can re-add everyone. The reply says what happened: status is where the contact now stands on the list (confirmed, pending, unsubscribed or needs_consent) and added is whether this call added them. Adding a contact who unsubscribed from the list returns status: "unsubscribed", added: false. On a double-opt-in list, a contact with no verified opt-in on record returns status: "needs_consent", added: false (see below).
  • To see who left a list, export it: GET /v1/contacts/export?list_id=LIST_ID includes everyone with a membership row, with a list_status column.
Response
{
  "ok": true,
  "list_id": "LIST_ID",
  "contact_id": "CONTACT_ID",
  "status": "confirmed",
  "added": true
}

Double opt-in

Set double_optin: true on a list to require confirmed subscription. It's a per-list setting — each list confirms independently; there's no single global confirmation.

  • Adding a contact to a double-opt-in list enrols them as pending and emails them a confirmation link (subject: "Please confirm your subscription"). The confirmation email does not include the internal list name.
  • A contact with no verified permission on record (they never confirmed one of your signup forms), or whose address bounced or reported spam, is not added: no confirmation could ever be sent to them, so they would wait as pending forever. The add answers status: "needs_consent", added: false, and they can join through one of your signup forms. An invitation still queued while they can't be asked (say they unsubscribed) is not sent.
  • They become an active member — and the list-join automation fires — only when they click the link. Re-adding a contact who is already pending or confirmed does not re-send.
  • An invitation lasts 7 days from when it was sent. After that its link no longer works and the pending row is removed: they never joined. The link only ever confirms that invitation — it does not bring back someone who has since left the list (signing up again through a form does), and it adds nobody who isn't pending.
  • Campaigns to the list send only to confirmed members; pending and per-list unsubscribed contacts are excluded.
  • Confirmation and per-list unsubscribe are hosted pages (/list-confirm/{token}, /list-unsubscribe/{token}) — no extra API calls needed.