API referenceLists

Create a list

POST/lists

public lists appear in the preference center; double_opt_in makes new members confirm by email.

Authorization

apiKey
AuthorizationBearer <token>

A project API key: Authorization: Bearer s0_…

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/lists" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "object": "list",  "id": "string",  "name": "string",  "description": "string",  "visibility": "private",  "default_subscription": "opt_in",  "double_opt_in": true,  "subscribers_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}