Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request DELETE \ --url http://localhost:5001/api/v1/webhook/unsubscribe \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "id": "<string>" } '
import requests url = "http://localhost:5001/api/v1/webhook/unsubscribe" payload = { "id": "<string>" } headers = { "Authorization": "Basic <encoded-value>", "Content-Type": "application/json" } response = requests.delete(url, json=payload, headers=headers) print(response.text)
const options = { method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'}, body: JSON.stringify({id: '<string>'}) }; fetch('http://localhost:5001/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": {} } ] }
Remove one webhook subscription from this Presenton instance.
Read the async and webhooks guide.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the webhook subscription to unsubscribe from
Successful Response
Was this page helpful?