Messages
Send reaction to a message
POST
/
v1
/
messages
/
react
Send reaction to a message
curl --request POST \
--url https://api.wazapin.com/v1/messages/react \
--header 'Content-Type: application/json' \
--data '
{
"channel_id": "<string>",
"message_id": "<string>",
"reaction": "<string>",
"to": "<string>",
"from_me": true,
"participant": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
channel_id: '<string>',
message_id: '<string>',
reaction: '<string>',
to: '<string>',
from_me: true,
participant: '<string>'
})
};
fetch('https://api.wazapin.com/v1/messages/react', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/messages/react"
payload = {
"channel_id": "<string>",
"message_id": "<string>",
"reaction": "<string>",
"to": "<string>",
"from_me": True,
"participant": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>",
"message_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Channel ID
Minimum string length:
1Provider message ID
Minimum string length:
1Reaction emoji
Minimum string length:
1Recipient/chat phone
Minimum string length:
1Whether target message is from this account (defaults true)
Participant JID (optional)
⌘I
Send reaction to a message
curl --request POST \
--url https://api.wazapin.com/v1/messages/react \
--header 'Content-Type: application/json' \
--data '
{
"channel_id": "<string>",
"message_id": "<string>",
"reaction": "<string>",
"to": "<string>",
"from_me": true,
"participant": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
channel_id: '<string>',
message_id: '<string>',
reaction: '<string>',
to: '<string>',
from_me: true,
participant: '<string>'
})
};
fetch('https://api.wazapin.com/v1/messages/react', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/messages/react"
payload = {
"channel_id": "<string>",
"message_id": "<string>",
"reaction": "<string>",
"to": "<string>",
"from_me": True,
"participant": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>",
"message_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}