--- title: HTTP API description: Health, update-trigger inspection, retry, replay, and dispatch history. --- # HTTP API ## Health ```text GET /healthz ``` Returns `ok`. ## Flow events ```text GET /flow-events?type=&limit= GET /flow-events/:id?limit= POST /flow-events/:id/retry POST /flow-events/:id/replay ``` The list endpoint returns stored events newest first. The detail endpoint returns the event and matching dispatch records. These endpoints inspect update triggers and dispatch attempts. They do not inspect or modify Git patch stacks directly. ## Dispatches ```text GET /flow-dispatches?eventId=&status=dispatched|failed|skipped&limit= ``` ## Admin auth When `PATCH_ADMIN_TOKEN` is set, flow endpoints require one of: ```text Authorization: Bearer X-Patch-Admin-Token: ```