Skip to Content
Pouch
Lists

Read a list

GET
/v1/lists/{id}

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

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Query Parameters

include?string

Comma-separated expansions to add: member_counts (members by status: pending, subscribed and unsubscribed).

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, domain_id, name, double_opt_in, created_at, updated_at, member_counts.

Response Body

The list.

application/json
  1. response
id?string

Opaque id, prefixed lst_.

domain_id?string

The domain this list belongs to.

name?string

List name, unique per domain.

double_opt_in?boolean

Whether a new membership must confirm before it can receive a batch.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

member_counts?

With include=member_counts. Members of the list by status, counted on read.

Example Request
curl -X GET 'https://pouch.example.com/v1/lists/string'
Example Response
{  "id": "string",  "domain_id": "string",  "name": "string",  "double_opt_in": true,  "created_at": "string",  "updated_at": "string",  "member_counts": {    "pending": 0,    "subscribed": 0,    "unsubscribed": 0  }}