What it contains
The OpenAPI document at /docs/api/openapi.json lists every live operation, the same set the official SDKs, the CLI and MCP use. It describes the server address, bearer authentication, parameters, request bodies, error responses, required scopes (x-wellfriend-required-scopes), asynchronous operations (x-wellfriend-asynchronous), request-unit costs (x-wellfriend-metering-units) and the events each operation emits (x-wellfriend-events).
Generating a client
- Pin the OpenAPI document each client release was generated from.
- Check the generated authentication code keeps the key on the server.
- Keep the Idempotency-Key header and idempotencyKey body fields exactly as specified.
- Keep tolerance for unknown response fields and handle the error format.
- Test a generated client against a test key before you release it.
What OpenAPI does not decide
- Which of your users may do what
- How you store and rotate keys
- Your retry budget and how you store operations
- What analytics mean for your business
- How you check outputs
- Your rollout and incident process
Detecting changes
In CI, fetch the current document or GET /api/v2/capabilities, compare it with your pinned copy, and require a deliberate client update when something important changes. Do not regenerate a production client silently during a deployment.