> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metaphi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors and retries

> What we retry, what is final, and how to catch up on events.

## We retry our own failures

An anonymization that fails on our side, from a lost worker, a timeout or an outage, is retried while it stays `running`. You do nothing. It becomes `failed` with `internal_error` only after our retries are used up.

## `failed` is final and never charged

`failed`, `completed`, `cancelled` and `expired` are final: a final status never changes. Only `completed` is charged, once. Resubmit a `failed` or `expired` anonymization when `error.retryable` is `true`. Each charge is one entry in `GET /v1/kennet/balance_transactions`, of type `usage`, whose `source` is the anonymization's `id`.

One exception: an anonymization we resumed before 2026-11-25 can read `failed`, then its true status. It is charged only if it completes.

| Who acts | Codes | What to do |
| - | - | - |
| You | `input_invalid`, `input_expired` | Fix the input and submit it again |
| Us | `internal_error`, `deadline_exceeded` | Submit it again |
| Billing | `credit_exhausted` | [Add credit](https://docs.metaphi.ai/account/credit.md). The work resumes on its own |

## A result never changes after a batch ends

A batch ends once, with one `kennet.batch.*` event. Its items, their `twin_id` and its [results](https://docs.metaphi.ai/kennet/api/batches.md#download-a-batchs-results) never change after that.

## Catch up on missed events

Webhooks are delivered at least once. If your endpoint was down, list what you missed with [`GET /v1/kennet/events?starting_after=<event id>`](https://docs.metaphi.ai/kennet/api/webhooks#list-events), passing the last event you handled. Events are kept for 30 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.