---
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/v2025-01-15/reference/merge_profiles"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/merge_profiles"
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
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/profiles/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profiles.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_or_update_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_lists_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_list_ids_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_segments_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_segment_ids_for_profile.md"]
---

# Merge Profiles

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/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: 2025-01-15` (required)
- Scopes: `profiles:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

```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: 2025-01-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "profile-merge",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "relationships": {
      "profiles": {}
    }
  }
}'
```

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-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 aren't listed here; they're in the endpoint's OpenAPI document.

### 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)

#### Example response body

```json
{
  "data": {
    "type": "profile",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

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