---
title: "Rerun an evaluation"
method: POST
path: "/agents/runs/{id}/rerun"
tags: ["agents"]
---

# Rerun an evaluation

`POST /agents/runs/{id}/rerun`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/agents/runs/{id}/rerun`
- Auth: HTTP bearer

Clears the previous result, returns to running, and wakes the agent. Approved or sent runs cannot be rerun; pending drafts are replaced by the new result.

## Path parameters

- `id` string, required: run ID

## Response `202`

Accepted

- object
  - `success` boolean, required
  - `run_id` string, required

## Other responses

- `401`: Missing or invalid API key
- `404`: Run not found
- `409`: This run cannot be rerun in its current state
- `502`: Could not wake the agent

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
