Skip to main content
POST
/
orgs
/
{org_id}
/
contacts
/
merge
Merge Contacts
curl --request POST \
  --url https://api.example.com/orgs/{org_id}/contacts/merge \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_contact_id": "<string>",
  "target_contact_id": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "blocked": true,
  "channels": [
    {
      "id": "<string>",
      "channel_type": "internal",
      "channel_id": "<string>",
      "channel_name": "<string>",
      "channel_display_name": "<string>",
      "channel_avatar": "<string>",
      "country": "<string>",
      "agent": "<string>",
      "ip": "<string>",
      "language": "<string>",
      "platform_data": {},
      "created_at": "2023-12-25",
      "updated_at": "2023-12-25",
      "link": "<string>"
    }
  ],
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

org_id
string
required

The ID of the org

Body

Schema for merging contacts

source_contact_id
string
required

The ID of the contact to merge from (will be deleted)

target_contact_id
string
required

The ID of the contact to merge into (will be kept)

Response

200 - application/json

Schema for the contact

id
string
required
name
string | null
required
blocked
boolean
required
channels
object[]
required
created_at
string<date>
required
updated_at
string<date>
required