Skip to Content
Pouch
Lists

Create a list

POST
/v1/lists

Auth: Bearer key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Request Body

application/json
  1. body
domain_id*string

Domain this list belongs to.

Length1 <= length
name*string

List name, unique per domain.

Length1 <= length <= 200
double_opt_in?boolean

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

Response Body

The created 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.

Example Request
curl -X POST 'https://pouch.example.com/v1/lists' \  -H 'Content-Type: application/json' \  -d '{  "domain_id": "string",  "name": "string"}'
Example Response
{  "id": "string",  "domain_id": "string",  "name": "string",  "double_opt_in": true,  "created_at": "string",  "updated_at": "string"}