Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Websocket
Webhook
Set Webhook
Set Webhook for instance
POST
/
webhook
/
set
/
{instance}
Copy
curl --request POST \
--url https://api.l2msg.com/whatsapp/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"webhook": {
"enabled": true,
"url": "<string>",
"webhookByEvents": true,
"webhookBase64": true,
"events": [
"APPLICATION_STARTUP"
]
}
}'
Copy
{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}
Authorizations
Your authorization key header
Path Parameters
Name of the instance
Body
application/json
Response
201 - application/json
Created
The response is of type object
.
Copy
curl --request POST \
--url https://api.l2msg.com/whatsapp/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"webhook": {
"enabled": true,
"url": "<string>",
"webhookByEvents": true,
"webhookBase64": true,
"events": [
"APPLICATION_STARTUP"
]
}
}'
Copy
{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.