Developers

API Documentation

Most of an interface’s behaviour is decided in the empty cases: no answer, a rejected request, a limit reached. Those are the ones worth documenting first.

Reviewed 8 November 2026

A successful response is easy to document and rarely the source of a support call. The calls come from the other states: the corpus had nothing, the input was malformed, the limit was reached, half the batch failed. If a consumer cannot tell those apart programmatically, every one of them becomes an email.

StateWhat it meansWhat the consumer should do
AnsweredA response grounded in retrieved passagesRender it with the citations attached
AbstainedThe corpus holds no passage above the thresholdShow the gap; do not retry the same query
InvalidA field failed validationFix the input; the field is named in the payload
LimitedA rate or quota limit was reachedBack off for the stated interval
PartialSome items succeededProcess the successes; queue the rest
UnavailableThe service cannot respondRetry if safe; otherwise degrade

The error payload names the field, the reason and whether a retry is safe. “Error 500” is not a contract; it is an invitation to guess. The distinction between an abstention and a failure matters most, because an abstention is a legitimate answer that a UI should display rather than an incident to be logged.

The rest of the contract

  • Authentication through the client’s identity provider, or a scoped key in a secret store
  • Latency stated as a typical figure and a tail, with the conditions that change it
  • Idempotency keys for any call that writes
  • A version in the path, and both versions running during migration
  • A deprecation date and a migration note, agreed in writing

The specification ships as a machine-readable document alongside the prose, so a consumer can generate a client and see the failure states in the schema. Contract tests run against both, which is how the document stays true after the third change.

No public endpoint

There is no public API to try, and no key to request. The interface described here is delivered inside an engagement, against a named consumer and its data.

Questions

Access, interfaces and what exists.

There is no public API, sandbox or developer key today. Access is granted per engagement and written into scope.

Is there a public API?
No. Interfaces are delivered privately inside an engagement and documented for that consumer. There is no public endpoint or self-service key.
How are breaking changes communicated?
Announced before they are needed, with both versions running while integrators migrate and a deprecation date agreed in writing.
What does an abstention look like?
A successful response with an explicit gap, the nearest document considered and no fabricated answer. It is not an error, and it should not be retried unchanged.
Next step

Ask what can be integrated.

Describe the systems you already run and the boundary the work must respect. The reply will list what has been built and what has not.