API Reference
Build custom integrations with the Onalyst REST API.
Quick Start
Base URL: https://api.onalyst.org/v1
All requests require an API key in the Authorization header:
curl -X GET "https://api.onalyst.org/v1/patients" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Endpoints
Authentication
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/login | Authenticate user and get tokens |
| POST | /auth/register | Create a new user account |
| POST | /auth/refresh | Refresh access token |
| POST | /auth/logout | Invalidate current session |
Patients
| Method | Endpoint | Description |
|---|---|---|
| GET | /patients | List all patients |
| POST | /patients | Create a new patient |
| GET | /patients/:id | Get patient details |
| PUT | /patients/:id | Update patient information |
Recordings
| Method | Endpoint | Description |
|---|---|---|
| POST | /recordings | Upload a new recording |
| GET | /recordings/:id | Get recording details |
| POST | /recordings/:id/transcribe | Start transcription |
| GET | /recordings/:id/transcript | Get transcript |
Notes
| Method | Endpoint | Description |
|---|---|---|
| POST | /notes/generate | Generate note from transcript |
| GET | /notes/:id | Get note details |
| PUT | /notes/:id | Update note content |
| POST | /notes/:id/approve | Approve and finalize note |
Official SDKs
Coming soon: Official client libraries for popular languages.
JavaScript (Coming Soon)Python (Coming Soon)Ruby (Coming Soon)Go (Coming Soon)