Versioning
Date-pinned API versions, what counts as a breaking change, and how to upgrade.
Agents run for a long time without anyone touching their code. The API is designed so that an integration you write today keeps working, unchanged, until you choose to move it forward. It does that with dated versions: you pin a date, and the shape of every request and response you get stays the shape of that date.
How versions work#
A version is a date, such as 2026-11-01. It covers the request and response shapes of every endpoint, the webhook payloads, and the error format.
Choose the version in one of three places. The first one present wins.
| Where | How | Use it for |
|---|---|---|
| The request | Ndstill-Version: 2026-11-01 header | Testing a new version on one call before switching everything. |
| The API key | Set when the key is created; change it in the console under Developers, API keys | Your normal pin. Each service or agent runtime can move on its own schedule. |
| The org default | Org settings | Keys created without a version, and OAuth tokens. |
The SDKs send the header on every request with the version they were built for, so upgrading an SDK and upgrading the API version happen together.
curl https://api.ndstill.com/v2/payment-intents/pi_01JC… \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"Responses echo the version they were rendered with in the Ndstill-Version response header, so you can log what you actually got.
The current version is 2026-11-01. It is the first dated version of v2, and the policy document format uses the same date in its version field.
What counts as breaking#
ndStill only ships breaking changes in a new dated version. Additive changes arrive in your current version, and well-behaved clients don't notice them.
| Change | Breaking? | Ships in |
|---|---|---|
| A new endpoint or resource | No | Any version |
| A new optional request parameter or body field | No | Any version |
| A new field in a response object | No | Any version |
| A new event type, webhook or MCP tool | No | Any version |
| A new value in an enum documented as open (reason codes, error codes, rails, connection providers) | No | Any version |
| A new reason code from the decision pipeline | No | Any version |
| Removing or renaming a field, parameter or endpoint | Yes | A new dated version |
| Making an optional parameter required | Yes | A new dated version |
| Changing a field's type, format or units | Yes | A new dated version |
A new value in a closed enum (such as a payment status) | Yes | A new dated version |
| Changing the meaning of an existing status or error type | Yes | A new dated version |
To stay safe across additive changes:
- Ignore response fields you don't recognize. Don't fail validation on them.
- Treat open enums as open: have a default branch for reason codes, error codes and rails you don't know, and show the
messagethe API sent. - Branch on
typefor errors and oncodeonly where you need to. - Use cursors, not page numbers, and don't parse them.
Upgrading to a new version#
Read what changed
Each version has an entry in the changelog listing every breaking change and how to adapt to it.
Test one call at a time
Send
Ndstill-Versionwith the new date on individual requests, with a test key, and compare the responses with what your code expects. The console's request log shows the version each request used.Run your simulations on the new version
If you check policies in CI with POST
/decisions/simulate, run that suite with the new version header too. Decision outcomes don't change between versions, but the shapes around them can.Move the key
Change the version on the API key, or upgrade the SDK. You can move one key at a time and roll back by setting the old date again while it is supported.
Move your webhook endpoints
Webhook endpoints are pinned separately. Update each endpoint's
api_versiononce your handler accepts the new payload shape.
Webhook payload versions#
Each webhook endpoint has its own api_version, set when you create it with POST/webhook-endpoints and changed with PATCH/webhook-endpoints/{id}. Every delivery to that endpoint is rendered in that version, whatever version the call that caused the event used. This means a service on a new API version never surprises an older webhook handler.
During an upgrade you can run two endpoints, one per version, pointed at old and new handlers, then disable the old one. Webhooks covers delivery and signing.
MCP tools and policy documents#
- MCP tools follow the API version of the token's grant. New tools are additive. A breaking change to a tool's input or output ships as a new tool name (for example
pay_v2) alongside the old one, because MCP clients cache tool lists. - Policy documents carry their own
versionfield. A policy written for2026-11-01is evaluated with the rules of that format for as long as it is supported, even after newer formats exist. The validator tells you when a newer format is available and what it adds.
Deprecation and support#
The designed support policy is:
- A dated version is supported for at least 12 months after the next version is published.
- Deprecations are announced in the changelog, in a
Deprecationresponse header on affected calls, and by email to org owners and developers, at least 6 months before support ends. - The console's Developers section shows which keys and webhook endpoints still use a deprecated version, with request counts, so you can find stragglers.
- Security fixes can't wait for a version. If one ever has to change behaviour, it ships to every version, with a changelog note explaining why.
Because ndStill is still in development, 2026-11-01 is the only version, and it describes the API as designed. Shapes can still change before general availability; when they do, the changelog says so.