Workflow
-
List Completed Hooks:
- Verify: Iterate through the list and compare against your own transaction logs.
- Alert: Flag any discrepancies (e.g., a transaction marked “processed” in your DB but missing a corresponding webhook).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Reconcile your internal state with delivery records
for await (const hook of posthook.hooks.listAll({
status: 'completed',
postAtAfter: '2025-01-01T00:00:00Z'
})) {
// Compare with your internal records
console.log(hook.id, hook.path, hook.data);
}
for hook in client.hooks.list_all(
status="completed",
post_at_after="2025-01-01T00:00:00Z"
):
# Compare with your internal records
print(hook.id, hook.path, hook.data)
for hook, err := range client.Hooks.ListAll(ctx, &posthook.HookListAllParams{
Status: "completed",
PostAtAfter: time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC),
}) {
if err != nil {
log.Fatal(err)
}
// Compare with your internal records
fmt.Println(hook.ID, hook.Path, string(hook.Data))
}
curl "https://api.posthook.io/v1/hooks?status=completed&postAtAfter=2025-01-01T00:00:00Z" \
-H "X-API-Key: $API_KEY"
Was this page helpful?