curl --request POST \
--url https://api.wppfy.com/message/find \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"chatid": "5511999999999@s.whatsapp.net",
"limit": 20,
"offset": 0
}
'{
"returnedMessages": 123,
"messages": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageid": "<string>",
"chatid": "<string>",
"fromMe": false,
"isGroup": false,
"messageType": "text",
"messageTimestamp": 0,
"edited": "",
"quoted": "",
"reaction": "",
"sender": "",
"senderName": "",
"source": "",
"status": "",
"text": "",
"vote": "",
"buttonOrListid": "",
"convertOptions": "",
"fileURL": "",
"content": "<string>",
"owner": "",
"track_source": "",
"track_id": "",
"created": "(strftime('%Y-%m-%d %H:%M:%f', 'now'))",
"updated": "(strftime('%Y-%m-%d %H:%M:%f', 'now'))",
"ai_metadata": {
"agent_id": "<string>",
"request": {
"messages": "<array>",
"tools": "<array>",
"options": {
"model": "<string>",
"temperature": 123,
"maxTokens": 123,
"topP": 123,
"frequencyPenalty": 123,
"presencePenalty": 123
}
},
"response": {
"choices": "<array>",
"toolResults": "<array>",
"error": "<string>"
}
}
}
],
"limit": 123,
"offset": 123,
"nextOffset": 123,
"hasMore": true
}Searches for messages with multiple available filters. This endpoint allows:
id to find an exact messagechatid for messages from a specific conversationtrack_source and track_id for messages with tracking datalimit to control how many messages to returncurl --request POST \
--url https://api.wppfy.com/message/find \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"chatid": "5511999999999@s.whatsapp.net",
"limit": 20,
"offset": 0
}
'{
"returnedMessages": 123,
"messages": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageid": "<string>",
"chatid": "<string>",
"fromMe": false,
"isGroup": false,
"messageType": "text",
"messageTimestamp": 0,
"edited": "",
"quoted": "",
"reaction": "",
"sender": "",
"senderName": "",
"source": "",
"status": "",
"text": "",
"vote": "",
"buttonOrListid": "",
"convertOptions": "",
"fileURL": "",
"content": "<string>",
"owner": "",
"track_source": "",
"track_id": "",
"created": "(strftime('%Y-%m-%d %H:%M:%f', 'now'))",
"updated": "(strftime('%Y-%m-%d %H:%M:%f', 'now'))",
"ai_metadata": {
"agent_id": "<string>",
"request": {
"messages": "<array>",
"tools": "<array>",
"options": {
"model": "<string>",
"temperature": 123,
"maxTokens": 123,
"topP": 123,
"frequencyPenalty": 123,
"presencePenalty": 123
}
},
"response": {
"choices": "<array>",
"toolResults": "<array>",
"error": "<string>"
}
}
}
],
"limit": 123,
"offset": 123,
"nextOffset": 123,
"hasMore": true
}Specific message ID for exact search
"user123:r3EB0538"
Chat ID in international format
"5511999999999@s.whatsapp.net"
Tracking source to filter messages
"chatwoot"
Tracking ID to filter messages
"msg_123456789"
Maximum number of messages to return (default 100)
x >= 120
Offset for pagination (0 returns the most recent messages)
List of found messages with pagination metadata
Number of messages returned in this page
Show child attributes
ID único interno da mensagem (formato r + 7 caracteres hex aleatórios)
ID original da mensagem no provedor
ID da conversa relacionada
Indica se a mensagem foi enviada pelo usuário
Indica se é uma mensagem de grupo
Tipo de conteúdo da mensagem
text, image, video, document, audio, location, button, list, reaction Timestamp original da mensagem em milissegundos
Histórico de edições da mensagem
ID da mensagem citada/respondida
ID da mensagem reagida
ID do remetente da mensagem
Nome exibido do remetente
Plataforma de origem da mensagem
ios, web, android Status do ciclo de vida da mensagem
pending, sent, delivered, read, failed, deleted Texto original da mensagem
Dados de votação de enquete e listas
ID do botão ou item de lista selecionado
Conversão de opções de da mensagem, lista, enquete e botões
URL para download de arquivos de mídia
Conteúdo completo da mensagem em formato JSON
Dono da mensagem
Origem do rastreamento da mensagem
ID para rastreamento da mensagem (aceita valores duplicados)
Data de criação no sistema (formato SQLite YYYY-MM-DD HH:MM:SS.FFF)
Data da última atualização (formato SQLite YYYY-MM-DD HH:MM:SS.FFF)
Metadados do processamento por IA
Show child attributes
ID do agente de IA responsável
Dados da requisição à API de IA
Show child attributes
Histórico de mensagens enviadas para a API
Ferramentas disponíveis para o agente
Opções de configuração da API
Show child attributes
Limit applied to the search
Offset used to retrieve results
Suggested offset for the next page
Indicates if there are more messages after this page