Skip to content

Contract status

This documentation is written from the frozen Sonic Docs v1 contract, version 1.0.0:

  • the OpenAPI document, api/specs/openapi.yaml, from which the API reference is generated;
  • the v1 decisions, api/specs/v1-decisions.md, which set limits, authorization, idempotency, retention and durability rules;
  • the service contract, api/specs/service-interfaces.md, which describes the HTTP, WebSocket and webhook flows and the error codes;
  • the schema-validated fixtures in api/specs/examples/, which the guides display directly.

Every endpoint in the contract is marked planned. The contract is frozen for implementation, but no endpoint is deployed. The base URL https://api.sonicdocs.ai/v1 is the intended production address, not a working one. Required fields will not change within v1; optional response fields may be added, so clients should ignore fields they do not recognize.

What the examples have and have not proven

Section titled “What the examples have and have not proven”

The curl, JavaScript and Python examples are contract examples. Each build runs them against a local mock built from the OpenAPI contract:

  • every request an example sends must match the operation it calls: path, method, bearer authentication, declared parameters, media type and request schema;
  • every response the mock returns is a fixture, or a value derived from one, that validates against the contract schemas;
  • the webhook receivers must accept a correctly signed delivery, acknowledge a duplicate once, and reject a tampered body, a stale timestamp and a wrong secret.

This shows the examples agree with the contract. It does not show they work against a running service. That evidence comes from executing them against staging, which has not happened yet.

  • A deployed API, staging environment or production availability.
  • Public signup or browser login. First API keys are provisioned by an operator.
  • SDK, CLI or MCP packages.
  • Webhook endpoint management. Destinations and secrets are configured by an operator in v1.
  • Bates numbering and redaction profiles. They are reserved in the contract and disabled until their safety and fidelity tests pass.
  • Measured accuracy, speed, availability or recovery figures. No such figures appear in these docs.

The remaining checks belong to the public release work:

  1. Run every example against staging and record the results.
  2. Reconcile these guides with implemented behavior, including any changes to limits or error codes.
  3. Remove the planned labels only for endpoints verified in staging.
  4. Remove the noindex setting so search engines can index the site. The site is published at developer.sonicdocs.ai but asks not to be indexed until the examples pass in staging.