Delete an endpoint
curl --request DELETE \
--url https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}', 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://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deleted": true,
"id": "6ac2a82edfafd1b6c6a9c27d"
}{
"error": {
"code": "invalid_request",
"message": "The request is invalid.",
"details": {
"fields": [
{
"field": "target_url",
"problem": "Field required"
}
]
}
}
}{
"error": {
"code": "unauthenticated",
"message": "Invalid workspace API key.",
"details": {}
}
}{
"error": {
"code": "permission_denied",
"message": "This workspace API key is not permitted to manage outbound webhooks. Needed: [outbound_webhooks:write]",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Webhook endpoint not found.",
"details": {}
}
}{
"error": {
"code": "limit_exceeded",
"message": "A workspace may have at most 10 webhook endpoints.",
"details": {
"max_endpoints": 10
}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry after the interval in the Retry-After header.",
"details": {
"retry_after_seconds": 42
}
}
}{
"error": {
"code": "internal_error",
"message": "An internal error occurred. Retry with exponential backoff.",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}outbound-webhooks
Delete an endpoint
This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.
Deletes the endpoint and stops sending to its URL. Events not yet delivered to it aren’t sent.
DELETE
/
endpoints
/
{endpoint_id}
Delete an endpoint
curl --request DELETE \
--url https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}', 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://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/v1/outbound-webhooks/endpoints/{endpoint_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deleted": true,
"id": "6ac2a82edfafd1b6c6a9c27d"
}{
"error": {
"code": "invalid_request",
"message": "The request is invalid.",
"details": {
"fields": [
{
"field": "target_url",
"problem": "Field required"
}
]
}
}
}{
"error": {
"code": "unauthenticated",
"message": "Invalid workspace API key.",
"details": {}
}
}{
"error": {
"code": "permission_denied",
"message": "This workspace API key is not permitted to manage outbound webhooks. Needed: [outbound_webhooks:write]",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Webhook endpoint not found.",
"details": {}
}
}{
"error": {
"code": "limit_exceeded",
"message": "A workspace may have at most 10 webhook endpoints.",
"details": {
"max_endpoints": 10
}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry after the interval in the Retry-After header.",
"details": {
"retry_after_seconds": 42
}
}
}{
"error": {
"code": "internal_error",
"message": "An internal error occurred. Retry with exponential backoff.",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}Authorizations
Was this page helpful?