Versioning & migration
Use /api/v1 for integrations
The workspace REST contract lives under /api/v1. The Preview (legacy)
tab in the API Reference describes historical unversioned paths,
not upcoming features. The current app does not route the old unversioned
workspace paths (/api/workspaces/…), even if an older deployment or the
legacy reference still shows them. Do not rely on an alias, redirect,
deprecation header, or sunset date. Some other app routes, such as
public guest menus and instance administration, have their own paths;
don't rewrite every link under /api automatically.
Migrate an older client
- Find the v1 operation for each call. Confirm its method, path, input and permission. Start with the quickstart to verify the credential and workspace against the destination release.
- Read normal JSON results from
data. Treat lists and detail responses separately, handle404for a missing cocktail detail, and follow operation-specific exceptions for pagination, raw JSON transfers and binary responses. - Parse the schema-specific v1 shapes. For example, the current cocktail
detail uses the compact
glass: { id, name, deposit, hasImage }reference (when present),hasImage/imageUrl, and the aggregatesaverageRatingandratingCount. Fetch image bytes separately. - Verify error handling, permission failures and write semantics against a test workspace. Regenerate a typed client from a schema matching the deployed app when possible; the static documentation bundle may be from a different release.