GET /v1/contacts/{id}/merge-preview
const url = 'https://seu-endereco-da-api/v1/contacts/example/merge-preview?mergedContactId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://seu-endereco-da-api/v1/contacts/example/merge-preview?mergedContactId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --header 'Authorization: Bearer <token>'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”Query Parameters
Seção intitulada “Query Parameters”Contact that will be absorbed
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
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
object
object
Keys of protected fields the contact has filled in; the value only comes from the reveal route
object
object
True when either contact is blocked; the block survives the merge
object
Campos preenchidos nos dois contatos com valores diferentes: o do sobrevivente vence, a não ser que a fusão leve a chave em keepMergedFields
object
Chave do campo disputado
Rótulo do campo, como a conta o nomeou
Valor do contato que sobrevive, que fica a não ser que a chave vá em keepMergedFields; null quando o campo é protegido
object
Valor do contato absorvido, que fica quando a chave vai em keepMergedFields; null quando o campo é protegido
object
True quando o campo é protegido, e por isso nenhum dos dois valores é enviado
Última gravação do valor no sobrevivente, ou a criação do contato quando não há histórico
Última gravação do valor no absorvido, ou a criação do contato quando não há histórico
Lado com o valor gravado por último; empate fica com o sobrevivente
object
What kind of record moves, e.g. deals, tasks, tags
Conversations of the absorbed contact that share a channel and get folded into the survivor’s
Example
{ "survivingContact": { "blocked": { "reason": "spam" } }, "mergedContact": { "blocked": { "reason": "spam" } }, "fieldConflicts": [ { "mostRecent": "surviving" } ]}