Skip to Content
Pouch
Lists

Add or import members

POST
/v1/lists/{id}/members

Auth: Bearer key scoped to the list's domain.

A single { address, ... } JSON body adds one member and returns 201 with the membership. A { members: [...], confirmed } JSON body, or a text/csv body (a header row with an address column, an optional confirmed column and any other column becoming an attribute), imports up to 5000 at once — same header shape GET /v1/lists/:id/export writes, so a re-upload of an export round-trips. Both import forms return 200 with { imported: Membership[], added, already_present, invalid, errors: [{ line, address, message }] }, where imported holds every named membership, new or not; a bad row is reported, not fatal to the rest. Never resurrects an address that already unsubscribed.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
address*string

Address to add.

Length3 <= length
attributes?

Flat attribute map substituted into {{name}} placeholders on a batch send.

Default{}
source?string

Where this member came from. api is reserved for subscribe on a send.

Default"manual"
Value in"import""manual"
confirmed?boolean

Import only: marks the membership confirmed by the importer, skipping double opt-in.

Response Body

The created membership. 200 with { imported, added, already_present, invalid, errors } for either import form — see the note.

application/json
  1. response
id?string

Opaque id, prefixed lmb_.

list_id?string

The list this membership belongs to.

address?string

Normalized recipient address.

status?string

Whether this address currently receives a batch.

Value in"pending""subscribed""unsubscribed"
source?string

How this membership was created.

Value in"api""import""manual"
source_message_id?|

Set when source is api — the send whose subscribe added this member.

manual_actor?|

Set when source is manual — who added the member.

attributes?

Flat map substituted into {{name}} placeholders on a batch send.

double_opt_in?boolean

The opt-in mode that applied to this membership.

confirmed_at?|

ISO 8601 timestamp, or null.

confirmed_by?|

Which mode confirmed this membership.

Value in"link""import""not_required"null
pending_expires_at?|

A pending membership past this timestamp never receives a batch.

unsubscribed_at?|

ISO 8601 timestamp, or null.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

Example Request
curl -X POST 'https://pouch.example.com/v1/lists/string/members' \  -H 'Content-Type: application/json' \  -d '{  "address": "string"}'
Example Response
{  "id": "string",  "list_id": "string",  "address": "string",  "status": "pending",  "source": "api",  "source_message_id": "string",  "manual_actor": "string",  "attributes": {},  "double_opt_in": true,  "confirmed_at": "string",  "confirmed_by": "link",  "pending_expires_at": "string",  "unsubscribed_at": "string",  "created_at": "string",  "updated_at": "string"}