Skip to main content
Send the version you built against in the x-upstack-api-version header. Every response returns the version it used in the same header.

Which API version should I send?

Send the newest version in this table. A version is named by the date it went live, as YYYY-MM-DD.
The header works the same way on every endpoint under /db-mgmt/api, /accounts/api and /tr/api.

What happens if I send no version?

You get the oldest version that still works. When a version is replaced, requests without the header keep getting the old version until it stops working, then move to the newer one.

How do I know a version is being replaced?

Responses served under a replaced version carry these headers: The API changelog lists what changed in the newer version.

How long does a replaced version keep working?

30 days. A version is deprecated on the day its replacement goes live and stops working 30 days later. Every breaking change follows the same rule.

What happens after a version stops working?

  • A request that names it returns 400:
  • A request without the header gets the newest version.
  • Responses also carry x-upstack-cli-min-version, the oldest CLI release that reads the newest version. See How does the CLI handle versions?

What does an unknown version return?

400, naming the versions you can use:

How does the CLI handle versions?

The CLI stops itself when it’s too old to read the API’s responses. When a response carries x-upstack-cli-min-version and your CLI is older, it prints this and exits:
The request has already finished by then, so a command that writes has already applied its change. CLI 1.0.7 and later do this. See Install the CLI.