curl --request POST \
--url https://api.wppfy.com/chat/notes/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"notes": "Cliente prefere contato no período da tarde"
}
'{
"response": "Chat notes updated",
"chat": {
"id": "<string>",
"wa_fastid": "<string>",
"wa_chatid": "<string>",
"wa_chatlid": "<string>",
"wa_archived": false,
"wa_contactName": "",
"wa_name": "",
"name": "",
"image": "",
"imagePreview": "",
"parent_community": {
"jid": "<string>",
"name": "<string>",
"image_url": "<string>",
"image_preview_url": "<string>",
"default_subgroup_jid": "<string>"
},
"wa_ephemeralExpiration": 0,
"wa_isBlocked": false,
"wa_isGroup": false,
"wa_isGroup_admin": false,
"wa_isGroup_announce": false,
"wa_isGroup_community": false,
"wa_isGroup_member": false,
"wa_isPinned": false,
"wa_label": [
"<string>"
],
"wa_notes": "",
"wa_lastMessageTextVote": "",
"wa_lastMessageType": "",
"wa_lastMsgTimestamp": 0,
"wa_lastMessageSender": "",
"lead_awaitingReply": true,
"wa_muteEndTime": 0,
"owner": "",
"wa_unreadCount": 0,
"phone": "",
"common_groups": "Grupo Família(120363123456789012@g.us),Trabalho(987654321098765432@g.us)",
"lead_name": "",
"lead_fullName": "",
"lead_email": "",
"lead_personalid": "",
"lead_status": "",
"lead_tags": [
"<string>"
],
"lead_notes": "",
"lead_isTicketOpen": false,
"lead_assignedAttendant_id": "",
"lead_kanbanOrder": 0,
"lead_field01": "",
"lead_field02": "",
"lead_field03": "",
"lead_field04": "",
"lead_field05": "",
"lead_field06": "",
"lead_field07": "",
"lead_field08": "",
"lead_field09": "",
"lead_field10": "",
"lead_field11": "",
"lead_field12": "",
"lead_field13": "",
"lead_field14": "",
"lead_field15": "",
"lead_field16": "",
"lead_field17": "",
"lead_field18": "",
"lead_field19": "",
"lead_field20": "",
"chatbot_agentResetMemoryAt": 0,
"chatbot_lastTrigger_id": "",
"chatbot_lastTriggerAt": 0,
"chatbot_disableUntil": 0,
"chatbot_summary": ""
},
"wa_notes": "Cliente prefere contato no período da tarde",
"source": "api"
}{
"error": "notes is required"
}{
"error": "chat not found"
}{
"error": "history sync still in progress, try again in a moment"
}{
"error": "error editing chat notes: client is not connected"
}Chats
Editar notas internas do chat
Atualiza wa_notes de um chat via app state do WhatsApp e persiste o resultado localmente.
Regras:
- envie
number - envie
notescomo campo principal - envie string vazia para limpar a nota do chat
POST
/
chat
/
notes
/
edit
curl --request POST \
--url https://api.wppfy.com/chat/notes/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"notes": "Cliente prefere contato no período da tarde"
}
'{
"response": "Chat notes updated",
"chat": {
"id": "<string>",
"wa_fastid": "<string>",
"wa_chatid": "<string>",
"wa_chatlid": "<string>",
"wa_archived": false,
"wa_contactName": "",
"wa_name": "",
"name": "",
"image": "",
"imagePreview": "",
"parent_community": {
"jid": "<string>",
"name": "<string>",
"image_url": "<string>",
"image_preview_url": "<string>",
"default_subgroup_jid": "<string>"
},
"wa_ephemeralExpiration": 0,
"wa_isBlocked": false,
"wa_isGroup": false,
"wa_isGroup_admin": false,
"wa_isGroup_announce": false,
"wa_isGroup_community": false,
"wa_isGroup_member": false,
"wa_isPinned": false,
"wa_label": [
"<string>"
],
"wa_notes": "",
"wa_lastMessageTextVote": "",
"wa_lastMessageType": "",
"wa_lastMsgTimestamp": 0,
"wa_lastMessageSender": "",
"lead_awaitingReply": true,
"wa_muteEndTime": 0,
"owner": "",
"wa_unreadCount": 0,
"phone": "",
"common_groups": "Grupo Família(120363123456789012@g.us),Trabalho(987654321098765432@g.us)",
"lead_name": "",
"lead_fullName": "",
"lead_email": "",
"lead_personalid": "",
"lead_status": "",
"lead_tags": [
"<string>"
],
"lead_notes": "",
"lead_isTicketOpen": false,
"lead_assignedAttendant_id": "",
"lead_kanbanOrder": 0,
"lead_field01": "",
"lead_field02": "",
"lead_field03": "",
"lead_field04": "",
"lead_field05": "",
"lead_field06": "",
"lead_field07": "",
"lead_field08": "",
"lead_field09": "",
"lead_field10": "",
"lead_field11": "",
"lead_field12": "",
"lead_field13": "",
"lead_field14": "",
"lead_field15": "",
"lead_field16": "",
"lead_field17": "",
"lead_field18": "",
"lead_field19": "",
"lead_field20": "",
"chatbot_agentResetMemoryAt": 0,
"chatbot_lastTrigger_id": "",
"chatbot_lastTriggerAt": 0,
"chatbot_disableUntil": 0,
"chatbot_summary": ""
},
"wa_notes": "Cliente prefere contato no período da tarde",
"source": "api"
}{
"error": "notes is required"
}{
"error": "chat not found"
}{
"error": "history sync still in progress, try again in a moment"
}{
"error": "error editing chat notes: client is not connected"
}Autorizações
Corpo
application/json
Resposta
Nota atualizada com sucesso
Exemplo:
"Chat notes updated"
Representa uma conversa/chamado no sistema
Show child attributes
Show child attributes
Conteúdo atual da nota após a atualização
Exemplo:
"Cliente prefere contato no período da tarde"
Origem da atualização
Opções disponíveis:
api Exemplo:
"api"
