Criar contatos em lote curl --request POST \
--url 'https://api-chat.sonax.net.br/v2/external/contact/insert-many' \
--header "Authorization: Bearer ${SONAX_TOKEN_CHAT}" \
--header 'Content-Type: application/json' \
--data '{
"contacts": [
{
"nome": "Maria Exemplo",
"celular": "5521988880000"
},
{
"nome": "João Exemplo",
"celular": "5521977770000"
}
]
}'
{
"contacts": [
{
"nome": "Maria Exemplo",
"celular": "5521988880000"
},
{
"nome": "João Exemplo",
"celular": "5521977770000"
}
]
}
200exemplo documentado com dados fictícios {
"error": false,
"contatosCriados": [
{
"name": "TESTE API HUB Chat 2",
"email": null,
"celular": "5511990001370",
"whatsapp": null,
"whatsappId": null,
"telegram_id": null,
"contact_lid": null,
"bsuid": null,
"username": null,
"identificador": null,
"optInSource": [],
"optInSourceBlackList": [],
"optIns": [],
"wppId": null,
"tenant": "640000000000000000000000",
"customerTenant": null,
"departamento": null,
"funcao": null,
"tags": [],
"belongsToAttendant": null,
"attendedBy": null,
"status": true,
"channels": [],
"_id": "6a0000000000000000000000",
"customFields": [],
"channel_bsuid": [],
"__v": 0,
"createdAt": "2026-11-19T16:47:05.340Z",
"updatedAt": "2026-11-19T16:47:05.340Z",
"id": "6a0000000000000000000000"
}
],
"contatosComErro": []
}