Unsubscribe To Webhook
curl --request DELETE \
--url https://api.example.com/api/v1/webhook/unsubscribe \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/webhook/unsubscribe"
payload = { "id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>'})
};
fetch('https://api.example.com/api/v1/webhook/unsubscribe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Open Source API v1
Unsubscribe To Webhook
DELETE
/
api
/
v1
/
webhook
/
unsubscribe
Unsubscribe To Webhook
curl --request DELETE \
--url https://api.example.com/api/v1/webhook/unsubscribe \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/webhook/unsubscribe"
payload = { "id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>'})
};
fetch('https://api.example.com/api/v1/webhook/unsubscribe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
The ID of the webhook subscription to unsubscribe from
Response
Successful Response
Was this page helpful?
⌘I