Replay deliveries in a time range
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_at: '2023-11-07T05:31:56Z', to_at: '2023-11-07T05:31:56Z'})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay"
payload = {
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z"
}
'{
"reset_count": 123
}Webhooks
Replay deliveries in a time range
Requires the platform:webhooks:manage scope (as an M2M scope or a user permission).
Reset succeeded or dead deliveries created in the given range back to pending for re-sending. Use after receiver downtime to recover missed events; receivers deduplicate by the X-Keystone-Delivery-Id header. The range may span at most 7 days and one call resets at most 200 deliveries, oldest first: repeat the call until reset_count comes back below that number.
POST
/
v1
/
platforms
/
me
/
webhooks
/
{endpoint_id}
/
deliveries
/
replay
Replay deliveries in a time range
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_at: '2023-11-07T05:31:56Z', to_at: '2023-11-07T05:31:56Z'})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay"
payload = {
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/deliveries/replay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z"
}
'{
"reset_count": 123
}Authorizations
Auth0 JWT access token. See Authentication for details.
Path Parameters
Body
application/json
Response
Successful Response
Outcome of resetting delivery rows back to pending.