curl --request POST \
--url https://api.posthook.io/v1/hooks/bulk/replay \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"hookIDs": [
"e5405623-2c1c-460e-9737-c884f7f59035",
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'{
"data": {
"affected": 2
}
}Endpoints
Bulk Replay Hooks
Replay completed hooks in bulk. Creates new hook deliveries with the same payload. Provide specific hook IDs or use time-range filters.
POST
/
hooks
/
bulk
/
replay
curl --request POST \
--url https://api.posthook.io/v1/hooks/bulk/replay \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"hookIDs": [
"e5405623-2c1c-460e-9737-c884f7f59035",
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'{
"data": {
"affected": 2
}
}Replay completed hooks in bulk — creating new deliveries with the same payload. Useful for re-processing hooks after a bug fix or data migration. Bulk actions availability may vary by plan.
All methods return
SDK Methods
| Language | By IDs | By Filter |
|---|---|---|
| TypeScript | posthook.hooks.bulk.replay({ hookIDs }) | posthook.hooks.bulk.replay({ startTime, endTime, limit }) |
| Python | client.hooks.bulk.replay(hook_ids) | client.hooks.bulk.replay_by_filter(start_time, end_time, limit) |
| Go | client.Hooks.Bulk().Replay(ctx, &BulkActionByIDs{}) | client.Hooks.Bulk().ReplayByFilter(ctx, &BulkActionByFilter{}) |
{ affected: number } — the count of hooks that were replayed.Body
application/json
Bulk action request. Provide either hookIDs for specific hooks, or startTime/endTime/limit for a filter-based selection.
Was this page helpful?