About this reference
The REST API reference is generated on every docs build from api/specs/openapi.yaml, the frozen v1 contract. It is not edited by hand. Each operation page shows its implementation status and required scope, which come from the contract’s x-implementation-status and x-required-scope fields. Every operation is currently planned.
- Base URL:
https://api.sonicdocs.ai/v1, the intended production address. It is not deployed. - Authentication:
Authorization: Bearer <api-key>on every request. See authentication and scopes. - Formats: JSON requests and responses in UTF-8; errors as
application/problem+json. See errors. - Compatibility: within v1, required fields and their meanings do not change. Optional response fields may be added, so ignore fields you do not recognize.
The WebSocket protocol is not part of OpenAPI’s REST model. It is described on the WebSocket events page, using the frame schemas from the same contract.
The code samples on operation pages are generated from the contract. The guides’ curl, JavaScript and Python examples are checked against a mock of the contract on every build; see contract status.