Webhook
Set Webhook
Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- PUTUpdate Group Members
- PUTUpdate Group Setting
- PUTToggle Ephemeral
- DELLeave Group
Chatwoot
RabbitMQ
WebSocket
Webhook
Set Webhook
Set Webhook for instance
POST
/
webhook
/
set
/
{instance}
curl --request POST \
--url https://{server-url}/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"url": "<string>",
"webhook_by_events": true,
"webhook_base64": true,
"events": [
"APPLICATION_STARTUP"
]
}'
{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
application/json
Response
201 - application/json
Created
The response is of type object
.
curl --request POST \
--url https://{server-url}/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"url": "<string>",
"webhook_by_events": true,
"webhook_base64": true,
"events": [
"APPLICATION_STARTUP"
]
}'
{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}