/v2:
What can change within v2
Within/v2, changes are additive only. Without notice, you may see:
- New endpoints and new resources
- New optional request parameters (query params, body fields) — existing requests keep working unchanged
- New fields on response objects — an object that had 10 keys yesterday may have 11 tomorrow
- New values in fields that are documented as open-ended (e.g. free-form status strings), and new error
codevalues alongside the documented set - New response headers
- Existing fields are not removed or renamed
- Field types are not changed (a
stringstays astring) - The response envelope (
{ data }/{ data, meta }/{ error, code, request_id }) stays stable - Existing endpoints are not removed (they may be deprecated — see below — but keep working)
- Validation is not tightened in a way that rejects previously valid requests
Parse tolerantly
Because additive changes ship without a version bump, build your client to ignore what it doesn’t recognize:- Ignore unknown fields in responses instead of failing on them. Avoid strict/closed schema validation (e.g.
additionalProperties: false, Zod.strict()) against API responses. - Don’t exhaustively match open-ended string fields — always keep a default branch.
- Read what you need, not the whole shape: destructure the fields you use and pass the rest through untouched.
Breaking changes → new version
Anything that would break a well-behaved v2 client — removing or renaming a field, changing a type, changing envelope shapes, removing an endpoint, tightening validation — ships only as a new URL version (/v3). The previous version keeps running while integrators migrate; v1 and v2 run side-by-side today under the same API keys, and the same will hold for future versions.
Deprecation and notice
When an endpoint or field within v2 is superseded (likePOST /v2/calls, the deprecated v1 alias):
- It’s marked deprecated in the OpenAPI spec, the API reference, and these guides, with a pointer to the replacement.
- It’s announced in the changelog.
- It keeps working for the life of v2 — deprecation is a signal to migrate, not a removal. Removal only happens at a major-version boundary, with advance notice to affected organizations before any sunset date.
Staying informed
- Changelog — every notable addition, deprecation, and fix, per release.
- OpenAPI spec — the machine-readable source of truth for the current surface; diff it to detect additions.
- Contact success@classet.ai to be notified directly about deprecations affecting your integration.