Reconcile your internal state with delivery records
You can use the List Hooks API to reconcile your internal state with Posthook’s delivery records. This is useful for verifying that critical financial or compliance events were definitely sent.
Workflow
List Completed Hooks:
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))}