API Versioning & Deprecations
How the TryItOn API is versioned: the v1 path, which changes can happen inside v1, how deprecated parameters work, and how the SDK versions relate.
The version is in the path
Every endpoint lives under https://tryiton.now/api/v1. There's no version header and no date to pin. The v1
in the path is the API version.
What can change inside v1
Changes inside v1 add to the API. They don't remove or rename anything you already use. Expect these over time:
- New endpoints.
- New optional request fields.
- New fields in responses.
- New
error.namevalues. The spec says it plainly: "New names may be added." - New enum values, such as a new live session
endReason.
Write your client so these don't break it:
- Ignore response fields you don't know. Don't fail on extra keys.
- Handle unknown error names. Branch on
error.namefor the ones you care about, and fall back on the HTTP status for the rest. Never match onerror.message: its wording can change. See Errors. - Handle unknown enum values. Treat a status or end reason you don't recognize as a generic case, not a crash.
Breaking changes
A change that would break existing clients would ship under a new path version, such as /api/v2, and be announced
in the changelog. There's no v2 today.
Deprecations
A deprecated parameter stays accepted, so old requests keep working. It's marked deprecated in the
OpenAPI spec and in the API reference, and the deprecation is listed in the changelog.
Nothing is deprecated today.
SDK versions
The SDKs follow semantic versioning. A major version can break your code, a minor version adds features, and a patch fixes bugs.
- SDK versions are separate from the API version. Every 2.x SDK calls
/api/v1. - Go puts the major version in the module path:
github.com/tryiton-now/tryiton-go/v2. - tryiton-live, the browser package for live try-on, is still at 0.x. Read its changelog before you move to a new minor version.
Pin the major version in your package manager and read the SDK's CHANGELOG.md before you upgrade. Links are on
the changelog page.
Related
Changelog
Dated changes to the TryItOn virtual try-on API, its SDKs and the tryiton-live browser package: new endpoints and fields, limits, deprecations and releases.
Troubleshooting
Fixes for common TryItOn API problems: 403 and 429 errors, stuck or failed jobs, CORS, expired results, poor quality and live sessions that won't start.