Compatibility
What changes within /v1, how deprecations are announced, and how much notice you get before anything is removed.
Agent Workplace is in early beta, but the /v1 HTTP interface follows the rules on
this page. They describe how future changes are made. No supported operation is
deprecated, and no /v2 is planned. The OpenAPI document also marks one
removed operation deprecated; it already answers 410.
Changes within /v1
These changes can happen at any time, without notice:
- New operations, and new optional request fields or parameters.
- New response fields. While SDK 0.17.0 and earlier, and CLI 0.14.0 and earlier, are
still in use, new fields appear only when you ask for them with an option such as
include. HTTP callers should ignore fields they don't use. - New error codes. Handle a code you don't know by its HTTP status; see Errors.
- Changes to error messages, which are human-readable text, never a contract.
A new value of an existing enumerated field, such as a new state, would break clients that act on the values they know, so it arrives only behind an opt-in option or as a new field.
Limits, allowances, and prices are product settings rather than part of the interface. Changes to them are announced in the product changelog.
Breaking changes
Within /v1, these happen only after a deprecation with at least 90 days' notice:
- Removing or renaming an operation, a field, or a released error code.
- Changing a field's type or meaning, or making an optional input required.
A change that can't be made that way goes into a new major version such as /v2.
/v1 stays available for at least 6 months after a new major version is
released, so you can move at your own pace.
Security fixes can't always wait. A change needed to protect accounts or data can take effect without notice, and the changelog explains it.
How you're told
When an operation or field is deprecated:
-
The product changelog announces it, with the replacement and the date it ends. The changelog has an RSS feed.
-
Responses from a deprecated operation carry a
Deprecationheader with the time it was deprecated, aSunsetheader with the date it ends once that's set, and aLinkheader withrel="deprecation"pointing to the announcement:Deprecationis a Unix time in seconds after@(RFC 9745), andSunsetis an HTTP date (RFC 8594). -
The OpenAPI document marks the operation
deprecated.
Log these headers when you see them, so a deprecated call you rely on doesn't go unnoticed.
Removed operations
After its end date, a removed operation answers 410 Gone with a stable error code
and a message that names its replacement. For example, the retired agent-mediated
ownership confirmation, POST /v1/access/nomination/confirm, answers
ownership_confirmation_retired.
Clients
The SDK and CLI have their own versions, separate from /v1; see
compatibility and upgrades.
Pinning a client doesn't pin the hosted API, but under these rules a pinned client
keeps working until an operation it uses reaches its end date. Native
authentication routes and the temporary transfer URLs that Files and Mail issue have
their own contracts and aren't part of /v1.