/api/v1/object/{objectSlug}/dedup-ruleGet the duplicate-detection rule of an object.
Get the duplicate-detection rule of an object.
The rule decides what happens when a record created from an incoming
chat matches existing records on match_keys, which are field slugs.
match_logic or matches on any key, and on all of them. An object
that never had a rule set returns mode off. See
PUT /object/{objectSlug}/dedup-rule for the modes.
Scope: object.dedupRule.read.
Errors:
400— no object has that slug, or the object is inactive.
Response 200:
{
"status": 200,
"message": "Deduplication rule retrieved successfully",
"data": {
"mode": "comment",
"match_keys": ["phone-q8w2e4r6"],
"match_logic": "or",
"comment_targets": "original"
}
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"mode": "off",
"match_keys": "string",
"match_logic": "or",
"comment_targets": "string"
}Values: "off" · "separate_flag" · "unify" · "mirror" · "comment"
Values: "or" · "and"
Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs