curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/newsletters/{id}/reaction \
--header 'Content-Type: application/json' \
--data '
{
"server_id": 119
}
'{
"sent": true
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Reagir a uma publicação
Body { "server_id": 119, "reaction": "👍" }. server_id vem da listagem de publicações ou do webhook received. Reação vazia ("") remove a sua. Imediata: exige a instância conectada (caso contrário, 409 instance_not_connected).
POST
/
instances
/
{instance_id}
/
token
/
{token}
/
newsletters
/
{id}
/
reaction
curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/newsletters/{id}/reaction \
--header 'Content-Type: application/json' \
--data '
{
"server_id": 119
}
'{
"sent": true
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Path Parameters
Id da instância (dashboard › instância › Credenciais).
Token da instância. Trate como senha.
Id do canal (<id>@newsletter).
Example:
"120363999999999999@newsletter"
Body
application/json
Response
Reação enviada.