Skip to content

Find duplicate contacts

GET
/api/v1/contacts/duplicates
curl --request GET \
--url https://digize.com/api/v1/contacts/duplicates \
--header 'x-api-key: <x-api-key>'

Contacts that look like the same person: the same email, the same phone, or the same name at the same company. Each pair has the one added first and the other, with why they match, up to 200 pairs. Merge one with crm.contacts.merge.

Needs the crm:read permission.

Done

Media typeapplication/json
object
pairs
required
Array<object>
object
contact
required
object
id
required
string
firstName
required
string
lastName
required
string
name
required
string
email
required
string | null
phone
required

In E.164, such as +15125550142.

string | null
city
required
string | null
companyId
required
string | null
companyName
required
string | null
ownerId
required

The member who looks after them, by user id.

string | null
source
required
string
Allowed values: checkout form booking import manual message google_ads google_local_services lead_ad
tags
required
Array<string>
stage
required

Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.

string
Allowed values: lead customer repeat
orders
required
number
lifetimeValue
required

What they’ve paid, less refunds, in minor units.

number
lastOrderAt
required
Any of:
string format: date-time
lastActivityAt
required
string format: date-time
score
required

Lead score, from the scoring rules in CRM settings.

number
custom
required

Custom field values by field key.

object
key
additional properties
Any of:
string
createdAt
required
string format: date-time
duplicate
required
object
id
required
string
firstName
required
string
lastName
required
string
name
required
string
email
required
string | null
phone
required

In E.164, such as +15125550142.

string | null
city
required
string | null
companyId
required
string | null
companyName
required
string | null
ownerId
required

The member who looks after them, by user id.

string | null
source
required
string
Allowed values: checkout form booking import manual message google_ads google_local_services lead_ad
tags
required
Array<string>
stage
required

Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.

string
Allowed values: lead customer repeat
orders
required
number
lifetimeValue
required

What they’ve paid, less refunds, in minor units.

number
lastOrderAt
required
Any of:
string format: date-time
lastActivityAt
required
string format: date-time
score
required

Lead score, from the scoring rules in CRM settings.

number
custom
required

Custom field values by field key.

object
key
additional properties
Any of:
string
createdAt
required
string format: date-time
reasons
required
Array<string>
Allowed values: email phone name_company
total
required

How many pairs there are in all.

number

Example

{
"pairs": [
{
"contact": {
"source": "checkout",
"stage": "lead"
},
"duplicate": {
"source": "checkout",
"stage": "lead"
},
"reasons": [
"email"
]
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}