> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posthook.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Retry Hooks

> Retry failed hooks in bulk. Provide specific hook IDs or use time-range filters.

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.

### 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{})`  |

All methods return `{ affected: number }` — the count of hooks that were retried.


## OpenAPI

````yaml POST /hooks/bulk/retry
openapi: 3.0.0
info:
  title: Posthook API
  version: 1.0.0
  description: >-
    REST API for scheduling, managing, and inspecting durable webhook
    deliveries.
servers:
  - url: https://api.posthook.io/v1
security:
  - apiKey: []
paths:
  /hooks/bulk/retry:
    post:
      summary: Bulk Retry Hooks
      description: >-
        Retry failed hooks in bulk. Provide specific hook IDs or use time-range
        filters.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkActionRequest'
            examples:
              by-ids:
                summary: By Hook IDs
                value:
                  hookIDs:
                    - e5405623-2c1c-460e-9737-c884f7f59035
                    - a1b2c3d4-5678-90ab-cdef-1234567890ab
              by-filter:
                summary: By Time-Range Filter
                value:
                  startTime: '2026-02-01T00:00:00Z'
                  endTime: '2026-02-02T00:00:00Z'
                  limit: 500
      responses:
        '200':
          description: Bulk retry initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/BulkActionResponse'
              example:
                data:
                  affected: 2
components:
  schemas:
    BulkActionRequest:
      type: object
      description: >-
        Bulk action request. Provide either `hookIDs` for specific hooks, or
        `startTime`/`endTime`/`limit` for a filter-based selection.
      properties:
        hookIDs:
          type: array
          items:
            type: string
          maxItems: 1000
          description: >-
            Array of hook IDs to act on (max 1000). Mutually exclusive with
            filter parameters.
        startTime:
          type: string
          format: date-time
          description: >-
            Start of time range filter (RFC 3339). Use with `endTime` and
            `limit`.
        endTime:
          type: string
          format: date-time
          description: >-
            End of time range filter (RFC 3339). Use with `startTime` and
            `limit`.
        limit:
          type: integer
          minimum: 1
          maximum: 1000
          description: >-
            Maximum number of hooks to act on (1-1000). Required with time range
            filters.
        endpointKey:
          type: string
          description: Optional. Filter by endpoint key.
        sequenceID:
          type: string
          description: Optional. Filter by sequence ID.
    BulkActionResponse:
      type: object
      properties:
        affected:
          type: integer
          description: Number of hooks affected by the action.
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-API-Key
      in: header

````