# Run history & re-run from your code (/docs/automations/run-history/api)

Authenticated with `?privateKey=YOUR_KEY` (see [Authentication](/docs/authentication)).

<Endpoints ops={["POST /admin/automations/re-trigger", "POST /admin/automations/rerun-single", "GET /v3/leads/{leadId}/automation-history", "GET /v3/automations/{automationId}/runs"]} />

<ApiPlayground
  ops={["POST /admin/automations/re-trigger", "POST /admin/automations/rerun-single", "GET /v3/leads/{leadId}/automation-history", "GET /v3/automations/{automationId}/runs"]}
  method="get"
  path="/v3/leads/{leadId}/automation-history"
  tool="get_lead_automation_history"
  args={`{
  "leadId": ""
}`}
/>

## Use case: Retry after a fix [#use-case-retry-after-a-fix]

`POST /admin/automations/re-trigger` with the `leadIds` and `automationIds` to run again.
