Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

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.

WhereHowUse it for
The requestNdstill-Version: 2026-11-01 headerTesting a new version on one call before switching everything.
The API keySet when the key is created; change it in the console under Developers, API keysYour normal pin. Each service or agent runtime can move on its own schedule.
The org defaultOrg settingsKeys 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.

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

ChangeBreaking?Ships in
A new endpoint or resourceNoAny version
A new optional request parameter or body fieldNoAny version
A new field in a response objectNoAny version
A new event type, webhook or MCP toolNoAny version
A new value in an enum documented as open (reason codes, error codes, rails, connection providers)NoAny version
A new reason code from the decision pipelineNoAny version
Removing or renaming a field, parameter or endpointYesA new dated version
Making an optional parameter requiredYesA new dated version
Changing a field's type, format or unitsYesA new dated version
A new value in a closed enum (such as a payment status)YesA new dated version
Changing the meaning of an existing status or error typeYesA 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 message the API sent.
  • Branch on type for errors and on code only where you need to.
  • Use cursors, not page numbers, and don't parse them.

Upgrading to a new version#

  1. Read what changed

    Each version has an entry in the changelog listing every breaking change and how to adapt to it.

  2. Test one call at a time

    Send Ndstill-Version with 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.

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

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

  5. Move your webhook endpoints

    Webhook endpoints are pinned separately. Update each endpoint's api_version once 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 version field. A policy written for 2026-11-01 is 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 Deprecation response 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.