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
}
}
}
Set Webhook for 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
}
}
}
Your authorization key header
ID of the instance to connect
Created
The response is of type object
.