---
title: "Retry failed history-import messages"
method: POST
path: "/api/assistant/backfill"
tags: ["Mailzero Assistant"]
---

# Retry failed history-import messages

`POST /api/assistant/backfill`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/assistant/backfill`
- Auth: HTTP bearer

Requeues terminal failures from the latest import for mailboxes that remain AI-enabled. Automatic retries have already been exhausted before a message appears here. Requires the assistant:write scope.

## Response `200`

Number of terminal failures requeued

- object
  - `ok` boolean
  - `retried` integer

## Other responses

- `401`: Missing or invalid API key
- `429`: Rate limit exceeded - wait and retry

---

[API](https://skmtc.dev/domani/apis/domani-run-api.md) · [All operations](https://skmtc.dev/domani/apis/domani-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/domani/apis/domani-run-api/revisions/7679f8159533?raw)
