Webhooks
Delete Webhook
Delete a webhook subscription
DELETE
/
webhooks
/
{id}
cURL
curl --request DELETE \
--url https://api.beachdepository.com/v1/webhooks/ep_abc123 \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/webhooks/ep_abc123", {
method: "DELETE",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.delete(
"https://api.beachdepository.com/v1/webhooks/ep_abc123",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/webhooks/ep_abc123"
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))
}
{
"data": {
"deleted": true
}
}
Deletes a webhook subscription. See Webhooks.
Authorizations
string
required
Send
Bearer <token> in this header. The key needs webhooks:manage.Path Parameters
string
required
cURL
curl --request DELETE \
--url https://api.beachdepository.com/v1/webhooks/ep_abc123 \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/webhooks/ep_abc123", {
method: "DELETE",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.delete(
"https://api.beachdepository.com/v1/webhooks/ep_abc123",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/webhooks/ep_abc123"
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))
}
{
"data": {
"deleted": true
}
}
⌘I
cURL
curl --request DELETE \
--url https://api.beachdepository.com/v1/webhooks/ep_abc123 \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/webhooks/ep_abc123", {
method: "DELETE",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.delete(
"https://api.beachdepository.com/v1/webhooks/ep_abc123",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/webhooks/ep_abc123"
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))
}
{
"data": {
"deleted": true
}
}