---
title: "Merge two identities (mergeIdentities)"
method: POST
path: "/mergeIdentities"
---

# Merge two identities (mergeIdentities)

`POST /mergeIdentities`

Merges a "toRetire" source identity into a "toSurvive" source identity. After a merge, the retired source is marked as merged and the surviving identity contains combined data. The response returns the surviving linkId.

## Request body

- ServiceRequestMergeIdentities
  - `content` MergeIdentitiesWsRequest — Request to merge (retire) one source identity into another, creating a single surviving identity.
    - `toSurviveSource` Source, required — Tracks an identity to a particular source system and record ID.
      - `date` string — The date of the source data in ISO format (yyyy-MM-dd).
      - `name` string — Name of the data source. Must be unique across Verato.
      - `id` string — ID of an identity within the given data source.
    - `toRetireSource` Source, required — Tracks an identity to a particular source system and record ID.
      - `date` string — The date of the source data in ISO format (yyyy-MM-dd).
      - `name` string — Name of the data source. Must be unique across Verato.
      - `id` string — ID of an identity within the given data source.
  - `trackingId` string

## Response `200`

Successful merge identities operation.

- ServiceResponseMergeIdentities
  - `auditId` string
  - `success` boolean
  - `warnings` string[]
  - `retryableError` boolean
  - `message` string
  - `content` MergeIdentitiesWsResponse — Response to a merge identities request, returning the surviving link ID and surviving source information.
    - `linkId` string — link ID of the surviving identity.
    - `toSurviveSource` Source — Tracks an identity to a particular source system and record ID.
      - `date` string — The date of the source data in ISO format (yyyy-MM-dd).
      - `name` string — Name of the data source. Must be unique across Verato.
      - `id` string — ID of an identity within the given data source.
  - `errors` string[]
  - `trackingId` string

---

[API](https://skmtc.dev/verato/apis/verato-organization-api.md) · [All operations](https://skmtc.dev/verato/apis/verato-organization-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/verato/verato-organization-api/revisions/9ebf5a50437d/schema)
