curl --request POST \
--url https://api.posthook.io/v1/hooks/bulk/retry \
--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 Retry Hooks
Retry failed hooks in bulk. Provide specific hook IDs or use time-range filters.
POST
/
hooks
/
bulk
/
retry
curl --request POST \
--url https://api.posthook.io/v1/hooks/bulk/retry \
--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
}
}Retry failed hooks in bulk — either by specifying individual hook IDs or by applying a time-range filter. Bulk actions availability may vary by plan.
All methods return
SDK Methods
| Language | By IDs | By Filter |
|---|---|---|
| TypeScript | posthook.hooks.bulk.retry({ hookIDs }) | posthook.hooks.bulk.retry({ startTime, endTime, limit }) |
| Python | client.hooks.bulk.retry(hook_ids) | client.hooks.bulk.retry_by_filter(start_time, end_time, limit) |
| Go | client.Hooks.Bulk().Retry(ctx, &BulkActionByIDs{}) | client.Hooks.Bulk().RetryByFilter(ctx, &BulkActionByFilter{}) |
{ affected: number } — the count of hooks that were retried.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?