Authorizations
Apikey
Path Parameters
O nome da sessão (instanceName)
ID do canal ou código de convite
curl --request GET \
--url https://api.wappfy.com.br/api/{session}/channels/{id}/messages/preview \
--header 'apikey: <api-key>'
[
{
"reactions": {
"👍": 10,
"❤️": 5
},
"message": {
"id": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA",
"timestamp": 1666943582,
"from": "11111111111@c.us",
"fromMe": true,
"source": "api",
"to": "11111111111@c.us",
"participant": "<string>",
"body": "<string>",
"hasMedia": true,
"media": {
"url": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
"mimetype": "audio/jpeg",
"filename": "example.pdf",
"s3": {
"Bucket": "my-bucket",
"Key": "default/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga"
},
"error": null
},
"ack": -1,
"ackName": "<string>",
"author": "<string>",
"location": {
"description": "<string>",
"latitude": "<string>",
"longitude": "<string>"
},
"vCards": [
"<string>"
],
"_data": {},
"replyTo": {
"id": "AAAAAAAAAAAAAAAAAAAA",
"participant": "11111111111@c.us",
"body": "Hello!",
"_data": {}
}
},
"viewCount": 123
}
]
Você pode usar ou código de convite (https://www.whatsapp.com/channel/123) ou (123) OU ID do Canal (123@newsletter) (You can use either invite code (https://www.whatsapp.com/channel/123) or (123)ORChannel ID (123@newsletter)). O parâmetro deve ser o session.
curl --request GET \
--url https://api.wappfy.com.br/api/{session}/channels/{id}/messages/preview \
--header 'apikey: <api-key>'
[
{
"reactions": {
"👍": 10,
"❤️": 5
},
"message": {
"id": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA",
"timestamp": 1666943582,
"from": "11111111111@c.us",
"fromMe": true,
"source": "api",
"to": "11111111111@c.us",
"participant": "<string>",
"body": "<string>",
"hasMedia": true,
"media": {
"url": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
"mimetype": "audio/jpeg",
"filename": "example.pdf",
"s3": {
"Bucket": "my-bucket",
"Key": "default/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga"
},
"error": null
},
"ack": -1,
"ackName": "<string>",
"author": "<string>",
"location": {
"description": "<string>",
"latitude": "<string>",
"longitude": "<string>"
},
"vCards": [
"<string>"
],
"_data": {},
"replyTo": {
"id": "AAAAAAAAAAAAAAAAAAAA",
"participant": "11111111111@c.us",
"body": "Hello!",
"_data": {}
}
},
"viewCount": 123
}
]
Apikey
O nome da sessão (instanceName)
ID do canal ou código de convite