REST API reference
Each endpoint with parameters, request and response schemas and an example request.
API version 1.0.0
Authentication
Metered endpoints accept the workspace API key as a bearer token or in the X-API-Key header. Keys are issued at signup and managed in the dashboard. Endpoints marked "No authentication" need no key.
| apiKey | X-API-Key: <api key> |
| bearer | Authorization: Bearer <api key> |
Base URL and keybash
export OSR_URL="https://<your deployment>" # the site you signed up on
export OSR_API_KEY="osr_..."Conventions
- Requests and responses are JSON. Errors are
{"detail": "..."}with a conventional status code;422lists the offending fields. - Every routed call returns
X-Request-Id; quote it inPOST /api/v1/feedback. The chat endpoint addsX-OSR-TargetandX-OSR-Confidence. 429carriesRetry-After; a403withX-Upgrade: truemeans the feature exists but is not in your plan.- The machine-readable document is served at
/openapi.jsonand the interactive Swagger UI at/apion the API host.