# Guide: Beplan API versioning and stability

The API is v1, and v1 only grows. Every operation is in beta today. Write your client so that what grows doesn't break it.

## Beta today

Every operation is marked **beta** (`x-beplan-stability: beta` in the OpenAPI document, a badge in the reference). Beta operations may still change, including in ways that break a client, before they are marked stable. Each operation also says since when it exists (`x-beplan-since`).

The MCP server reaches the same operations, with the same stability.

## What "only grows" means

Within v1, a stable operation only changes in ways an existing client survives:

- new operations;
- new optional inputs;
- new fields in answers;
- new values in enums marked open.

Beplan's release checks compare every change with the released document and refuse one that would break a stable operation: a removed or moved operation, a removed field, a changed type, a new required input or one that became required, a changed scope, an answer's closed enum gaining a value, a request's enum losing one, a stable operation going back to beta.

## Write your client for it

- **Ignore fields you don't know** in answers and in webhook payloads. Don't validate answers with a schema that refuses extra properties: the published schemas don't forbid them, because they will grow.
- **Handle unknown enum values** where the reference marks an enum as open ("may gain values"; `x-beplan-open-enums` in the document). Fall back to something sensible instead of failing.
- **Unknown fields in a request are ignored**, not refused. A typo in a field name does nothing rather than failing, so check what you send against the reference.
- **Branch on error codes**, not messages ([errors](https://beplan.io/docs/guides/errors/)). New codes can appear; treat an unknown one by its HTTP status.

MCP tools are stricter: an argument a tool doesn't know is refused, so an assistant that invents one gets an error it can correct.

## The OpenAPI document

The whole API is one OpenAPI 3.1 document: [openapi.json](https://beplan.io/docs/api/openapi.json). It is the released document the reference is built from, so it never lists an operation before it is live. Generate a client from it if you like; each operation carries Beplan's extensions (`x-beplan-scope`, `x-beplan-permission`, `x-beplan-effect`, `x-beplan-errors`, `x-beplan-examples`…).

---
HTML version: https://beplan.io/docs/guides/versioning/
