Skip to main content

SDK compatibility

A generated SDK is only useful if it faithfully represents your API. SDK compatibility answers that question twice, with evidence rather than a promise:

  • Before you ship, the SDK compatibility manifest says, for every artifact the SDK kit generates, which operations it covers, which it leaves out and why, the runtime and auth it needs, and what to change where it falls short.
  • After you ship, the SDK compatibility beacon lets the people using a generated client tell you, only if they opt in, how their calls turn out, so you see which release broke them.

Both describe the SDK kit that Get SDK in Browse serves: TypeScript, Python and curl snippets, the Go client, the FastAPI and Express server stubs, the Terraform provider and the MCP server. The beacon is built into the Go client today.

When to use it​

You want to…UseWhere
Know what a generated artifact leaves out before you hand it overCompatibility manifestExport studio → SDK compatibility
Fail a CI job when an SDK artifact has a gapCompatibility manifestapiome sdk compatibility --fail-on warning
Check that a version's labels bump as much as its change needsCompatibility manifestThe manifest's Semver and provenance
Learn which published release your SDK users find incompatibleCompatibility beaconGET …/usage/sdk-beacons, grouped by revision and operation
Let SDK users report outcomes without sending their dataCompatibility beaconWithTelemetry in the generated Go client, off by default

The compatibility manifest​

  1. Open Export studio and click the "SDK compatibility" tab.
  2. Choose the project and the version (Latest by default).
  3. Read the Findings first: each names the artifact, what it leaves out, the generator's reason and What to do. Then read Artifacts for coverage, runtime, auth and pagination.

apiome sdk compatibility --project <project> prints the same manifest from the same endpoint, and --fail-on warning exits 4 so a pipeline can stop on a gap. See SDK compatibility manifest.

The compatibility beacon​

  1. Create an sdk_beacon usage source for the project and a reporting key with the Usage source preset (usage:ingest).
  2. Give your SDK users the endpoint, the key and the source id, and ask them to opt in.
  3. They pass WithTelemetry to the Go client. It then sends, in the background, counts per operation and outcome (ok, client_error, server_error, network, incompatible), and nothing else.
  4. Read the counts with GET /v1/tenants/{tenant}/usage/sdk-beacons.

The beacon never sends a body, header, URL, status code, latency, credential or anything that identifies the caller. To switch it off, disable the source; counts age out with your plan's usage retention. See SDK compatibility beacon.

How they fit together​

The manifest and the beacon use the same keys: the revision (the manifest's provenance.version_record_id) and the operation id (operations[].operation_id in the kit manifest). So you can line runtime evidence up with what the generator promised:

  • A finding in the manifest tells you an operation or auth scheme is missing before anyone uses the SDK.
  • A rise in incompatible for an operation on one revision tells you a release changed something the client can't read. Compare that revision with the one before it on Compare published versions, and check Contract testing and CI gates to catch the next one in CI.

The beacon is not product analytics: it reports on your API's contract, only for SDK users who choose to, and you own where it goes.

With the REST API​

EndpointDoesNeeds
GET /v1/tenants/{tenant}/projects/{project}/sdk-compatibilityReturns the manifest (apiome.sdk.compat-manifest/v1)Projects: view
POST /v1/tenants/{tenant}/usage/sdk-beaconAccepts an opted-in client's report (apiome.sdk.beacon/v1)A usage:ingest key
GET /v1/tenants/{tenant}/usage/sdk-beaconsReads the grouped countsConsumer contracts: view

See sdk-generation and usage in the REST reference: sdk-generation, usage.