GET - Get Chats
https://wapi.nvhost.com.br/chat/all
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secretcurl --location 'https://wapi.nvhost.com.br/chat/all' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret'
GET - Get Chat By Number
https://wapi.nvhost.com.br/chat/:number
HEADERS
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secretcurl --location 'https://wapi.nvhost.com.br/chat/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret'
GET - Get Chat Messages By Number
https://wapi.nvhost.com.br//chat/:number/messages
Get messages for specific chat
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secretcurl --location 'https://wapi.nvhost.com.br/chat/:number/messages' \
--header 'x-instance-id: acme' \
--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \
--header 'api_key: secret'
POST - Send Message
https://wapi.nvhost.com.br/chat/send-message/:number
Send text message to a specific number.
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{"message": "Test","quote_message_id": ""}Example Request
curl --location 'https://wapi.nvhost.com.br/chat/send-message/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"message": "Test","quote_message_id": ""}'
POST - Send Buttons (BETA)
https://wapi.nvhost.com.br/chat/send-buttons/:number
Send text message to a specific number.
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{
"title": "title",
"footer": "footer",
"message": "Test",
"buttons": [
{
"id": "3",
"body": "Test 2"
},
{
"id": "2",
"body": "Test 3"
}
]
}Example Requestcurl --location 'https://wapi.nvhost.com.br/chat/send-buttons/:number' \
--header 'x-instance-id: acme' \
--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \
--header 'api_key: secret' \
--data '{
"title": "title",
"footer": "footer",
"message": "Test",
"buttons": [
{
"id": "3",
"body": "Test 2"
},
{
"id": "2",
"body": "Test 3"
}
]
}'POST - Send Lists (BETA)
https://wapi.nvhost.com.br/chat/send-lists/:number
Send text message to a specific number.
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{
"title": "title",
"buttonText": "button text",
"footer": "footer",
"message": "Test",
"sections": [
{
"title": "section title",
"rows": [
{
"id": "1",
"title": "Title 1",
"description": "Description 1"
},
{
"id": "2",
"title": "Title 2",
"description": "Description 2"
},
{
"id": "3",
"title": "Title 3",
"description": "Description 3"
}
]
}
]
}Example Requestcurl --location 'https://wapi.nvhost.com.br/chat/send-lists/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"title": "title","buttonText": "button text","footer": "footer","message": "Test","sections": [{"title": "section title","rows": [{"id": "1","title": "Title 1","description": "Description 1"},{"id": "2","title": "Title 2","description": "Description 2"},{"id": "3","title": "Title 3","description": "Description 3"}]}]}'POST - Send Image
Send a image to a specific number. You can either provide a base64 encoded image or a direct image URL.
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{
"caption": "",
"image": ""
}curl --location 'https://wapi.nvhost.com.br/chat/send-image/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"caption": "","image": ""}'POST - Send File
https://wapi.nvhost.com.br/chat/send-file/:number
Send a file to a specific number. You can either provide a base64 encoded file or a direct image URL.
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{
"mime": "",
"file": "",
"caption": ""
}curl --location 'https://wapi.nvhost.com.br/chat/send-file/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"mime": "","file": "","caption": ""}'POST - Send Location
https://wapi.nvhost.com.br/chat/send-location/:numberx-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{"lat": "","lng": ""}curl --location 'https://wapi.nvhost.com.br/chat/send-location/:number' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"lat": "","lng": ""}'DELETE - Revoke Message
https://wapi.nvhost.com.br/chat/revoke-message/:number/:messageId
x-instance-id acmex-instance-secret wpp.e7d569a1b04f2855070368508e3f9074api_key secret{
"everyone": false
}curl --location --request DELETE 'https://wapi.nvhost.com.br/chat/revoke-message/:number/:messageId' \--header 'x-instance-id: acme' \--header 'x-instance-secret: wpp.e7d569a1b04f2855070368508e3f9074' \--header 'api_key: secret' \--data '{"everyone": false}'




