API versions
An API can have several versions, like v1, v2 and beta. Each has its own spec and its own endpoint pages. Readers switch with a small menu next to the API name.
Every plan. Versions do not count as extra APIs.
URLs on docs.yourcompany.com
/pets v2 (current)/pets/addpet v2 (current)/pets/v1 v1/pets/v1/addpet v1/pets/beta/addpet beta
How it works
- Add a version
- Give it a name like
v2and a spec URL or file. The version you have now stays online. - Stable URLs
- The current version has the plain URLs, like
/pets/addpet. Other versions live at/<api>/<version>/..., so links people already shared keep pointing at the current docs. - Same page, other version
- Switching versions keeps the reader on the same endpoint when the other version has it.
- Make current
- When v2 is ready, click Make current next to it in the app. Delete a version and its pages come down right away.
Questions
Do versions cost extra?+
No. Versions are on every plan, including Free, and do not count toward the API limit.
Is this the same as version history?+
No. Version history keeps earlier states of one spec so you can revert. API versions are separate specs published side by side.
Can each version have its own spec URL?+
Yes. Each version is added from its own spec URL or uploaded file.
See your docs in a minute
Paste the link to your OpenAPI file. Free for one API, no card needed.