List Hooks
Endpoints
List Hooks
Retrieve a paginated list of hooks for the current project. Supports cursor-based pagination and filtering by status.
GET
List Hooks
List your webhooks with cursor-based pagination.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.
Cursor-Based Pagination
Results are paginated using an opaque cursor. Pass thecursor from the previous response to fetch the next page. When no more results are available, no cursor is returned.
The
offset parameter has been removed. Use cursor for pagination instead.SDK Methods
| Language | Single Page | Auto-Paginate |
|---|---|---|
| TypeScript | posthook.hooks.list({ status, limit }) | posthook.hooks.listAll({ status }) |
| Python | client.hooks.list(status, limit) | client.hooks.list_all(status) |
| Go | client.Hooks.List(ctx, &HookListParams{}) | client.Hooks.ListAll(ctx, &HookListAllParams{}) |
listAll / list_all / ListAll methods return an iterator that handles cursor pagination automatically.
Usage Patterns
Common patterns for this endpoint include:- Dead Letter Queue: Process failures within a specific time window.
- Bulk Retry: Batch retry failed hooks.
- Auditing: Reconcile Posthook delivery logs with your internal records.
Authorizations
Query Parameters
Cursor for pagination. Use the value from the previous response to get the next page.
Field to sort results by
Available options:
postAt, createdAt Sort direction
Available options:
asc, desc Available options:
pending, completed, failed, retry Filter hooks scheduled before this timestamp
Filter hooks scheduled after this timestamp
Filter hooks created before this timestamp
Filter hooks created after this timestamp