WUAPI
  1. Webhook
WUAPI
  • Messages
    • Send plain text
      POST
    • Send image
      POST
    • Send audio
      POST
    • Send video
      POST
    • Send document
      POST
    • Send location
      POST
    • Send link
      POST
    • Send contact
      POST
    • Delete message by id
      DELETE
    • Get message by id
      GET
  • Users
    • Create new user
      POST
    • Get all users
      GET
  • Instances
    • Create new instance
      POST
    • List All instance
      GET
    • Update instance
      PUT
    • List by instance id
      GET
    • Delete instance
      DELETE
    • Restart instance
      GET
    • Get QRCode
      GET
    • Get QRCode in base64 image.
      GET
    • Disconnect instance
      GET
    • Update profile picture
      PUT
    • Delete profile picture
      DELETE
    • Update profile name
      PUT
  • Webhook
    • Connection event for your instance
      POST
    • Disconnection event for your instance
      POST
    • Event when you receive a message
      POST
    • Event when you send a message
      POST
  • Queues
    • Get queue instance
    • Delete queue instance
    • Get queue failed instance
    • Retry queue
  • Groups
    • Create new group
    • Get all groups
    • Get group by id
    • Add contact to group
    • Update picture of group
    • Set admins only
    • Add and remove admins in group
  • Manage
    • Restart server
  1. Webhook

Event when you send a message

POST
/deliveryWebhookUrl
Webhook
Last modified:2024-06-12 01:04:44
OperationId:deliveryWebhookUrl
This event is sent when you send a message.

Request

Authorization
Add parameter in header
authorization
Example:
authorization: ********************
Body Params application/json
webhook
string 
optional
from
string 
optional
to
string 
optional
timestamp
integer 
optional
ack
integer 
optional
type
string 
required
fromMe
boolean 
optional
senderName
string 
optional
chatName
string 
optional
links
array [object] 
optional
chat
optional
One of
text
object 
optional
Example
{
    "webhook": "string",
    "from": "string",
    "to": "string",
    "timestamp": 0,
    "ack": 0,
    "type": "string",
    "fromMe": true,
    "senderName": "string",
    "chatName": "string",
    "links": [
        {}
    ],
    "chat": {
        "text": {
            "message": "string"
        }
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/deliveryWebhookUrl' \
--header 'Content-Type: application/json' \
--header 'authorization;' \
--data-raw '{
    "webhook": "string",
    "from": "string",
    "to": "string",
    "timestamp": 0,
    "ack": 0,
    "type": "string",
    "fromMe": true,
    "senderName": "string",
    "chatName": "string",
    "links": [
        {}
    ],
    "chat": {
        "text": {
            "message": "string"
        }
    }
}'

Responses

🟢200success.
application/json
Body
sucesso
boolean 
optional
Example
{
    "sucesso": true
}
Modified at 2024-06-12 01:04:44
Previous
Event when you receive a message
Next
Get queue instance
Built with