---
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 by a customer to (merge/retire) data from one Source into another
    - `toSurviveSource` Source, required — Represents the information tracking an identity to a source that contains the identity
      - `date` string — The date of the source data in ISO format (yyyy-mm-dd).
      - `name` string — The name of the data source. Must be unique across Verato.
      - `id` string — The ID of an identity within the given data source.
    - `toRetireSource` Source, required — Represents the information tracking an identity to a source that contains the identity
      - `date` string — The date of the source data in ISO format (yyyy-mm-dd).
      - `name` string — The name of the data source. Must be unique across Verato.
      - `id` string — The ID of an identity within the given data source.
  - `trackingId` string

## Response `200`

OK

- ServiceResponseMergeIdentities
  - `auditId` string
  - `success` boolean
  - `warnings` string[]
  - `retryableError` boolean
  - `message` string
  - `content` MergeIdentitiesWsResponse — When two identities have been merged by the MergeIdentities WebService , return the link ID of the primary Identity
    - `linkId` string — Return the link ID of the Identity that received merged/retired data during a MergeIdentity request
    - `toSurviveSource` Source — Represents the information tracking an identity to a source that contains the identity
      - `date` string — The date of the source data in ISO format (yyyy-mm-dd).
      - `name` string — The name of the data source. Must be unique across Verato.
      - `id` string — The ID of an identity within the given data source.
  - `errors` string[]
  - `trackingId` string

---

[API](https://skmtc.net/verato/apis/verato-person-api.md) · [All operations](https://skmtc.net/verato/apis/verato-person-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/verato/verato-person-api/revisions/8225f2689816/schema)
