---
title: "Evaluate an inbound email manually"
method: POST
path: "/agents/runs"
tags: ["agents"]
---

# Evaluate an inbound email manually

`POST /agents/runs`

## 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`
- Auth: HTTP bearer

Returns 409 if the agent already has a run for this email; clients should rerun instead.

## Request body

- object
  - `agent_id` string
  - `email_id` string

## Response `202`

Accepted

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

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Agent or email not found
- `409`: An evaluation already exists
- `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)
