Versioning
The major version is in the path, everything inside it stays backward compatible, and GET /versions tells you which versions exist, which is current and when an old one retires.
The convention
- The major version is in the path. Every request names it:
https://api.silvertext.com/v1/checks. Pick one when you integrate and keep it. - Inside a major version, nothing breaks. Changes ship as additions: new endpoints, new optional request fields and parameters, new response fields, new error codes, new values in open sets such as issue categories and check phases. Nothing is removed or renamed, no type or default changes, and no validation gets stricter. So a client must ignore fields and values it does not know rather than refuse them.
- A breaking change is a new major version at a new path (
/v2/). The previous one keeps answering for at least twelve months after its successor ships. When its retirement date is set, every response of the old version carries aDeprecationheader (the date it stopped being current) and aSunsetheader (the date it retires), with aLinkto the changelog. After that date it answers410 version_retired. - Revisions have a number. The spec's
info.version(1.1.0today) moves on every additive release and is quoted in the changelog, so you can tell which revision a server has fromGET /versionsor/v1/openapi.json.
Reading the versions
curl https://api.silvertext.com/versions{
"current": "v1",
"versions": [
{
"id": "v1",
"status": "current",
"released": "2026-09-18",
"deprecatedAt": null,
"sunsetAt": null,
"basePath": "/v1",
"spec": "/v1/openapi.json",
"specVersion": "1.1.0",
"docs": "https://silvertext.com/developers/reference",
"changelog": "https://silvertext.com/developers/changelog"
}
],
"policy": {
"scheme": "path",
"minimumSupportMonthsAfterSuccessor": 12,
"docs": "https://silvertext.com/developers/getting-started/versioning"
}
}status is current, deprecated (a newer version exists; this one still answers) or retired (answers 410). spec is the OpenAPI document of that version, on the API origin; /openapi.json without a version always describes the current one. No key is needed and the answer is cacheable.
What to build in
- Send every request to one major version and read
GET /versionsfrom time to time (or watch for aDeprecationheader in your logs) to learn when a successor ships. - Treat unknown response fields, unknown enum values and unknown error codes as something to pass over, not an error.
- Point code generators and agents at the versioned spec,
https://api.silvertext.com/v1/openapi.json, so what they build matches the version you call. - The Playground lets you pick a version and try every endpoint of it against the live API.
Errors
Every error is JSON with a stable machine-readable code and a human-readable message. Branch on the code, show the message.
Guides
The patterns behind a solid Silvertext integration: the check lifecycle, choosing checks, source rules, reading the report, files, idempotent retries and rate limits.