> ## 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.

# API versions

> Choose an API version with the Metaphi-Version header, and move to 2026-11-25.

Send `Metaphi-Version` on every request. Without it, a request uses `2026-10-11`. Every response names the version it used in its own `Metaphi-Version` header. An unknown version is refused with `400 api_version_invalid`.

| Version | Objects |
| - | - |
| `2026-11-25` | A [batch](https://docs.metaphi.ai/kennet/api/2026-11-25/batches.md) holds requests, each with one result: an output [file](https://docs.metaphi.ai/kennet/api/2026-11-25/files.md) or an [error](https://docs.metaphi.ai/kennet/api/2026-11-25/errors.md). The shape follows the Anthropic Message Batches and OpenAI Batch APIs |
| `2026-10-11` | [Anonymizations](https://docs.metaphi.ai/kennet/api/anonymizations.md) (`kennet.twin`) and [batches](https://docs.metaphi.ai/kennet/api/batches.md) of `kennet.batch_item` |

`2026-10-11` is unchanged and stays available.

## Move to 2026-11-25

1. Send `Metaphi-Version: 2026-11-25` on every request.
2. Create a new [webhook endpoint](https://docs.metaphi.ai/kennet/api/2026-11-25/events.md#webhook-endpoints) with that header. An endpoint receives only the events of the version it was created in. Once you no longer need `2026-10-11` events, delete the old endpoint with `Metaphi-Version: 2026-10-11`: each version lists and deletes only its own endpoints.
3. To send one trace, create a batch with one request. `POST /v1/kennet/twins` exists only in `2026-10-11`.
4. Download outputs with `GET /v1/kennet/files/{id}/content`, the id being the request's `result.output_file.id`.

| 2026-10-11 | 2026-11-25 |
| - | - |
| `kennet.twin`, `twin_` | A batch of one request |
| `kennet.batch_item` | `batch_request`, named by `batch_id` and `custom_id` |
| `requests[].file_id` | `requests[].input_file_id` |
| `GET /batches/{id}/items` | `GET /batches/{id}/requests` |
| `GET /twins/{id}/content` | `GET /files/{output_file.id}/content` |
| Item status `completed` | `succeeded` |
| `cancelled`, `cancelling` | `canceled`, `canceling` |
| Batch status `completed`, `cancelled`, `expired` | `ended`, with `ended_at`, `canceled_at` and `expired_at` |
| `created`, `ended`, `expires` | `created_at`, `ended_at`, `expires_at` |
| `kennet.twin.*`, `kennet.batch_item.failed` | `kennet.request.*` |
| `kennet.batch.completed`, `.cancelled`, `.expired` | `kennet.batch.ended` |

An anonymization created with `POST /v1/kennet/twins` reads in `2026-11-25` as a batch of one. The batch id is `batch_` followed by the anonymization's id without `twin_`, its request's `custom_id` is that same id, and `input_file_id` is `null`.

`GET /v1/kennet/events` lists only the events of the version you send. Events made before you moved stay listed under `2026-10-11`.


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