---
title: "Create List"
description: "How to call Create List (POST /api/lists) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_list"
revision: "2026-10-15"
operationId: "create_list"
method: "POST"
endpoint: "https://a.klaviyo.com/api/lists"
authentication: "privateKey"
scopes: ["lists:write"]
rateLimits: {"burst":"10/s","steady":"150/m","daily":"150/d"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json"
jsonApi: {"fields":{"list":["created","id","name","opt_in_process","updated"]}}
related: ["https://developers.klaviyo.com/en/reference/lists/llms.txt","https://developers.klaviyo.com/en/reference/get_lists.md","https://developers.klaviyo.com/en/reference/get_list.md","https://developers.klaviyo.com/en/reference/update_list.md","https://developers.klaviyo.com/en/reference/delete_list.md","https://developers.klaviyo.com/en/reference/get_tags_for_list.md","https://developers.klaviyo.com/en/reference/get_tag_ids_for_list.md","https://developers.klaviyo.com/en/reference/get_profiles_for_list.md","https://developers.klaviyo.com/en/reference/get_profile_ids_for_list.md","https://developers.klaviyo.com/en/reference/add_profiles_to_list.md","https://developers.klaviyo.com/en/reference/remove_profiles_from_list.md","https://developers.klaviyo.com/en/reference/get_flows_triggered_by_list.md","https://developers.klaviyo.com/en/reference/get_ids_for_flows_triggered_by_list.md"]
---

# Create List

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_list

```http
POST https://a.klaviyo.com/api/lists
```

Create a new list.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `lists:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`, Daily: `150/d`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/lists' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "list",
    "attributes": {
      "name": "Newsletter",
      "opt_in_process": "double_opt_in"
    }
  }
}'
```

### CLI

```bash
klaviyo lists create \
  -d '{
  "data": {
    "type": "list",
    "attributes": {
      "name": "Newsletter",
      "opt_in_process": "double_opt_in"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Lists.create_list(
    {
        "data": {
            "type": "list",
            "attributes": {
                "name": "Newsletter",
                "opt_in_process": "double_opt_in",
            },
        },
    },
)
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, ListsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const listsApi = new ListsApi(session)

const response = await listsApi.createList(
  {
    data: {
      type: 'list',
      attributes: {
        name: 'Newsletter',
        optInProcess: 'double_opt_in',
      },
    },
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Lists.create_list(
  {
    data: {
      type: 'list',
      attributes: {
        name: 'Newsletter',
        opt_in_process: 'double_opt_in',
      },
    },
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Lists->createList(
    [
        'data' => [
            'type' => 'list',
            'attributes' => [
                'name' => 'Newsletter',
                'opt_in_process' => 'double_opt_in',
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Query parameters

- `fields[list]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created`, `id`, `name`, `opt_in_process`, `updated`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `list`
  - `attributes` (object, required)
    - `name` (string, required): A helpful name to label the list Example: `Newsletter`
    - `opt_in_process` (string, nullable): The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'. If not provided, uses account default. Allowed values: `double_opt_in`, `single_opt_in` Example: `double_opt_in`

### Example request body

```json
{
  "data": {
    "type": "list",
    "attributes": {
      "name": "Newsletter",
      "opt_in_process": "double_opt_in"
    }
  }
}
```

## Responses

### 201: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `list`
  - `id` (string, required): Primary key that uniquely identifies this list. Generated by Klaviyo. Example: `Y6nRLr`
  - `attributes` (object, required)
    - `name` (string, nullable): A helpful name to label the list Example: `Newsletter`
    - `created` (string<date-time>, nullable): Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `opt_in_process` (string, nullable): The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'. Allowed values: `double_opt_in`, `single_opt_in` Example: `double_opt_in`
  - `relationships` (object)
    - `profiles` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
    - `tags` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
    - `flow-triggers` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_list.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "list",
    "id": "Y6nRLr",
    "attributes": {
      "name": "Newsletter",
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "opt_in_process": "double_opt_in"
    },
    "relationships": {
      "profiles": {
        "data": [
          {
            "type": "profile",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "tags": {
        "data": [
          {
            "type": "tag",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "flow-triggers": {
        "data": [
          {
            "type": "flow",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
