Delete Webhook
curl --request DELETE \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"status": true,
"data": {
"deleted": true
},
"error": null
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}Webhooks
Delete Webhook
Delete a webhook. Its watcher stops and no further events are delivered.
DELETE
/
webhooks
/
{webhook_id}
Delete Webhook
curl --request DELETE \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"status": true,
"data": {
"deleted": true
},
"error": null
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}