Replay Events
curl --request POST \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/replay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_id": "1700000000000000000",
"from_date": "202606140000",
"to_date": "202606142359"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_id: '1700000000000000000',
from_date: '202606140000',
to_date: '202606142359'
})
};
fetch('https://api.omnixapi.com/api/v1/twitter/webhooks/replay', 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/replay"
payload = {
"webhook_id": "1700000000000000000",
"from_date": "202606140000",
"to_date": "202606142359"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"data": {
"job_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"error": null
}{
"status": false,
"data": null,
"error": "Missing required field: text"
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}Webhooks
Replay Events
Re-deliver a webhook’s events from a time window (up to the past 24h). from_date/to_date are UTC yyyymmddhhmm. Returns a job_id; delivery is async.
POST
/
webhooks
/
replay
Replay Events
curl --request POST \
--url https://api.omnixapi.com/api/v1/twitter/webhooks/replay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_id": "1700000000000000000",
"from_date": "202606140000",
"to_date": "202606142359"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_id: '1700000000000000000',
from_date: '202606140000',
to_date: '202606142359'
})
};
fetch('https://api.omnixapi.com/api/v1/twitter/webhooks/replay', 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/replay"
payload = {
"webhook_id": "1700000000000000000",
"from_date": "202606140000",
"to_date": "202606142359"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"data": {
"job_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"error": null
}{
"status": false,
"data": null,
"error": "Missing required field: text"
}{
"status": false,
"data": null,
"error": "Tweet not found: 1899999999999999999"
}Authorizations
Your OmniX API key, e.g. omnix_live_.... Billed per call.
Body
application/json