Webhooks
Delete a webhook
Deletes a webhook. Its events stop being sent.
DELETE
/
devapi
/
webhooks
/
{webhookId}
Delete a webhook
curl --request DELETE \
--url https://server.gallabox.com/devapi/webhooks/{webhookId} \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://server.gallabox.com/devapi/webhooks/{webhookId}"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://server.gallabox.com/devapi/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.gallabox.com/devapi/webhooks/{webhookId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://server.gallabox.com/devapi/webhooks/{webhookId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://server.gallabox.com/devapi/webhooks/{webhookId}")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.gallabox.com/devapi/webhooks/{webhookId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "6650a1b2c3d4e5f6a7b8ca02",
"accountId": "6650a1b2c3d4e5f6a7b8c9d9",
"name": "CRM sync",
"description": "Push new messages to our CRM",
"requestUrl": "https://crm.example.com/hooks/gallabox",
"requestMethod": "POST",
"requestHeaders": {
"X-Source": "gallabox"
},
"events": [
"Message.Received",
"Contact.Created"
],
"disabled": false,
"requestFailedCount": 0,
"createdAt": "2026-11-01T10:00:00.000Z",
"updatedAt": "2026-11-01T10:00:00.000Z"
}{
"status": "Unauthorized",
"message": "Unauthorized"
}{
"status": "PAYMENT_REQUIRED",
"message": "Account is Disconnected"
}{
"status": "<string>",
"message": "<string>",
"error": "<unknown>"
}{
"status": "ERROR",
"message": "Invalid Input",
"error": "channelId is required",
"errors": [
{
"channelId": "channelId is required"
}
]
}{
"status": "RequestLimitHit",
"message": "Account rate limit exceeded. Too many requests per minute."
}Authorizations
Path Parameters
Response
The deleted webhook.
⌘I
Delete a webhook
curl --request DELETE \
--url https://server.gallabox.com/devapi/webhooks/{webhookId} \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://server.gallabox.com/devapi/webhooks/{webhookId}"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://server.gallabox.com/devapi/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.gallabox.com/devapi/webhooks/{webhookId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://server.gallabox.com/devapi/webhooks/{webhookId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://server.gallabox.com/devapi/webhooks/{webhookId}")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.gallabox.com/devapi/webhooks/{webhookId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "6650a1b2c3d4e5f6a7b8ca02",
"accountId": "6650a1b2c3d4e5f6a7b8c9d9",
"name": "CRM sync",
"description": "Push new messages to our CRM",
"requestUrl": "https://crm.example.com/hooks/gallabox",
"requestMethod": "POST",
"requestHeaders": {
"X-Source": "gallabox"
},
"events": [
"Message.Received",
"Contact.Created"
],
"disabled": false,
"requestFailedCount": 0,
"createdAt": "2026-11-01T10:00:00.000Z",
"updatedAt": "2026-11-01T10:00:00.000Z"
}{
"status": "Unauthorized",
"message": "Unauthorized"
}{
"status": "PAYMENT_REQUIRED",
"message": "Account is Disconnected"
}{
"status": "<string>",
"message": "<string>",
"error": "<unknown>"
}{
"status": "ERROR",
"message": "Invalid Input",
"error": "channelId is required",
"errors": [
{
"channelId": "channelId is required"
}
]
}{
"status": "RequestLimitHit",
"message": "Account rate limit exceeded. Too many requests per minute."
}