---
title: "Add Profiles to List"
description: "How to call Add Profiles to List (POST /api/lists/{id}/relationships/profiles) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/add_profiles_to_list"
revision: "2026-10-15"
operationId: "add_profiles_to_list"
aliases: ["create_list_relationships","create_list_relationships_profile","create_list_relationships_profiles"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/lists/{id}/relationships/profiles"
authentication: "privateKey"
scopes: ["lists:write","profiles:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/add_profiles_to_list.json"
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/create_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/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"]
---

# Add Profiles to List

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

```http
POST https://a.klaviyo.com/api/lists/{id}/relationships/profiles
```

Add a profile to a list with the given list ID.

It is recommended that you use the [Subscribe Profiles endpoint](https://developers.klaviyo.com/en/reference/bulk_subscribe_profiles.md) if you're trying to give a profile [consent](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api.md) to receive email marketing, SMS marketing, or both.

This endpoint accepts a maximum of 1000 profiles per call.

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

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/lists/id/relationships/profiles' \
     --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": "profile",
      "id": "string"
    }
  ]
}'
```

### CLI

```bash
klaviyo lists add-profiles-to-list id \
  -d '{
  "data": [
    {
      "type": "profile",
      "id": "string"
    }
  ]
}'
```

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.add_profiles_to_list(
    "id",
    {
        "data": [
            {
                "type": "profile",
                "id": "string",
            },
        ],
    },
)
```

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.addProfilesToList(
  'id',
  {
    data: [
      {
        type: 'profile',
        id: 'string',
      },
    ],
  },
)
```

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.add_profiles_to_list(
  'id',
  {
    data: [
      {
        type: 'profile',
        id: 'string',
      },
    ],
  },
)
```

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->addProfilesToList(
    'id',
    [
        'data' => [
            [
                'type' => 'profile',
                'id' => 'string',
            ],
        ],
    ],
);
```

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

## Path parameters

- `id` (string, required)

## 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: `profile`
  - `id` (string, required)

### Example request body

```json
{
  "data": [
    {
      "type": "profile",
      "id": "string"
    }
  ]
}
```

## Responses

### 204: Success

This response has no body.

### 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"
      }
    }
  ]
}
```
