Add or import 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.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
address*stringAddress to add.
3 <= lengthattributes?Flat attribute map substituted into {{name}} placeholders on a batch send.
{}source?stringWhere this member came from. api is reserved for subscribe on a send.
"manual""import""manual"confirmed?booleanImport only: marks the membership confirmed by the importer, skipping double opt-in.
The created membership. 200 with { imported, added, already_present, invalid, errors } for either import form — see the note.
application/json- response
id?stringOpaque id, prefixed lmb_.
list_id?stringThe list this membership belongs to.
address?stringNormalized recipient address.
status?stringWhether this address currently receives a batch.
"pending""subscribed""unsubscribed"source?stringHow this membership was created.
"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?booleanThe opt-in mode that applied to this membership.
confirmed_at?|ISO 8601 timestamp, or null.
confirmed_by?|Which mode confirmed this membership.
"link""import""not_required"nullpending_expires_at?|A pending membership past this timestamp never receives a batch.
unsubscribed_at?|ISO 8601 timestamp, or null.
created_at?stringISO 8601 timestamp.
updated_at?stringISO 8601 timestamp.
curl -X POST 'https://pouch.example.com/v1/lists/string/members' \ -H 'Content-Type: application/json' \ -d '{ "address": "string"}'{ "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"}