---
title: "Merge Profiles"
description: "How to call Merge Profiles (POST /api/profile-merge) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/merge_profiles"
revision: "2026-10-15"
operationId: "merge_profiles"
aliases: ["create_profile_merge"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/profile-merge"
authentication: "privateKey"
scopes: ["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/merge_profiles.json"
jsonApi: {"fields":{"profile":["id"]}}
related: ["https://developers.klaviyo.com/en/reference/profiles/llms.txt","https://developers.klaviyo.com/en/reference/get_profiles.md","https://developers.klaviyo.com/en/reference/get_profile.md","https://developers.klaviyo.com/en/reference/create_profile.md","https://developers.klaviyo.com/en/reference/update_profile.md","https://developers.klaviyo.com/en/reference/create_or_update_profile.md","https://developers.klaviyo.com/en/reference/get_push_tokens_for_profile.md","https://developers.klaviyo.com/en/reference/get_push_token_ids_for_profile.md","https://developers.klaviyo.com/en/reference/get_lists_for_profile.md","https://developers.klaviyo.com/en/reference/get_list_ids_for_profile.md","https://developers.klaviyo.com/en/reference/get_segments_for_profile.md","https://developers.klaviyo.com/en/reference/get_segment_ids_for_profile.md"]
---

# Merge Profiles

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

```http
POST https://a.klaviyo.com/api/profile-merge
```

Merge a given related profile into a profile with the given profile ID.

The profile provided under `relationships` (the "source" profile) will be merged into the profile provided by the ID in the base data object (the "destination" profile). This endpoint queues an asynchronous task which will merge data from the source profile into the destination profile, deleting the source profile in the process. This endpoint accepts only one source profile.

To learn more about how profile data is preserved or overwritten during a merge, please [visit our Help Center](https://help.klaviyo.com/hc/en-us/articles/115005073847#merge-2-profiles3).

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `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/merge_profiles.json)

## Example request

### curl

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

### CLI

```bash
klaviyo profiles merge-profiles \
  -d '{
  "data": {
    "type": "profile-merge",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "relationships": {
      "profiles": {}
    }
  }
}'
```

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.Profiles.merge_profiles(
    {
        "data": {
            "type": "profile-merge",
            "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
            "relationships": {
                "profiles": {},
            },
        },
    },
)
```

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

### Node.js

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

const session = new ApiKeySession('your-private-api-key')
const profilesApi = new ProfilesApi(session)

const response = await profilesApi.mergeProfiles(
  {
    data: {
      type: 'profile-merge',
      id: '01GDDKASAP8TKDDA2GRZDSVP4H',
      relationships: {
        profiles: {},
      },
    },
  },
)
```

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::Profiles.merge_profiles(
  {
    data: {
      type: 'profile-merge',
      id: '01GDDKASAP8TKDDA2GRZDSVP4H',
      relationships: {
        profiles: {},
      },
    },
  },
)
```

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->Profiles->mergeProfiles(
    [
        'data' => [
            'type' => 'profile-merge',
            'id' => '01GDDKASAP8TKDDA2GRZDSVP4H',
            'relationships' => [
                'profiles' => new \stdClass(),
            ],
        ],
    ],
);
```

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

## Query parameters

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

## 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-merge`
  - `id` (string, required): The ID of the destination profile to merge into Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
  - `relationships` (object, required)
    - `profiles` (object, required)
      - `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/merge_profiles.json).

### Example request body

```json
{
  "data": {
    "type": "profile-merge",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "relationships": {
      "profiles": {}
    }
  }
}
```

## Responses

### 201: Success

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `id` (string, required): The ID of the destination profile that was merged into Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
  - `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": "profile",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "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"
      }
    }
  ]
}
```
