Skip to content
View in Postman (opens in new tab)

Merge users

post

/users/merge

Use this endpoint to merge one user into another user.

Up to 50 merges may be specified per request. This endpoint is asynchronous.

Troubleshooting

A success response was returned but the merged user is still searchable

A successful response confirms the request was accepted, but the merge operation involves two steps: merging the profiles and then removing the source profile. Because of this, the identifier_to_merge profile may remain searchable in the dashboard for a short period after a successful response. This is expected behavior—wait a few minutes and then verify the merge is complete.

If the merged user still exists after several minutes, verify that the identifiers in your request are correct and belong to users in the same workspace as the API key used for the request.

Error reference

The following table lists possible error messages that may occur.

Error Troubleshooting
'merge_updates' must be an array of objects Check that merge_updates is an array of objects.
a single request may not contain more than 50 merge updates You can only specify up to 50 merge updates in a single request.
identifiers must be objects with an 'external_id' property that is a string, 'user_alias' property that is an object, 'email' property that is a string, or 'phone' property that is a string Check the identifiers in your request.
'merge_updates' must only have 'identifier_to_merge' and 'identifier_to_keep' Check that merge_updates only contains the two objects identifier_to_merge and identifier_to_keep.

You can download the OpenAPI document and use it to validate schemas. To learn how, see Use OpenAPI schemas for request validation.

New Stuff!