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, asYYYY-MM-DD.
/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 carriesx-upstack-cli-min-version and your CLI is older, it prints this and exits: