Validate Webhook
curl --request PUT \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'PUT', 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.put(url, headers=headers)
print(response.text){
"status": true,
"data": {
"attempted": true,
"valid": true
},
"error": null
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}Webhooks
Validate Webhook
Re-run the CRC handshake for a webhook (e.g. after configuring your receiver with the secret). Returns whether it’s now valid.
PUT
/
webhooks
/
{webhook_id}
Validate Webhook
curl --request PUT \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'PUT', 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.put(url, headers=headers)
print(response.text){
"status": true,
"data": {
"attempted": true,
"valid": true
},
"error": null
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}