POST /v1/contacts/{id}/merge
const url = 'https://seu-endereco-da-api/v1/contacts/example/merge';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mergedContactId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","keepMergedFields":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/contacts/example/merge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mergedContactId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "keepMergedFields": [ "example" ] }'Permissão que a Chave de acesso precisa: Unir contatos duplicados (contacts:merge) e Ver o telefone inteiro do contato (contacts:read_phone).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
Example generated
{ "mergedContactId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "keepMergedFields": [ "example" ]}Responses
Seção intitulada “Responses”object
object
Present on the detail: the fields the AI filled, each with what it did and whether it can be undone.
object
Present on the detail: field key to the ISO instant it last changed, read from the value history; a field the caller cannot see is left out.
object
The caller may edit this contact: one of their conversations or deals, a contact they created with no conversation, or contacts:update_all
Masked to the domain for readers without contacts:read_phone
object
Keys of protected fields the contact has filled in; the value only comes from the reveal route
True when the contact must not receive campaigns, sequences or automations
Quando os dados pessoais deste contato foram apagados a pedido; o historico segue existindo
Set while the contact is blocked; inbound is stored silently and nothing is sent
object
object
object
object
True when the contact has a default department the reader may not see; defaultDepartment is then null, and the screen must not offer to replace it as if it were empty
object
Cargo da pessoa na empresa
object
Presigned url for the contact’s whatsapp profile photo
Id of the contact this one was merged into
Example
{ "contact": { "blocked": { "reason": "spam" } }}Contact already merged or deleted