Skip to main content
DELETE
/
api
/
v3
/
webhook
/
unsubscribe
Unsubscribe To Webhook V1
curl --request DELETE \
  --url https://api.presenton.ai/api/v3/webhook/unsubscribe \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>"
}
'
import requests

url = "https://api.presenton.ai/api/v3/webhook/unsubscribe"

payload = { "id": "<string>" }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'DELETE',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>'})
};

fetch('https://api.presenton.ai/api/v3/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": {}
    }
  ]
}

Headers

Authorization
string
required

Bearer JWT or API Key

Body

application/json
id
string
required

The ID of the webhook subscription to unsubscribe from

Response

Successful Response