Base URL
All API requests are made to:Authentication
ClinicalPilot does not currently enforce authentication at the API layer. All endpoints are publicly accessible when the server is running.API Key Configuration
ClinicalPilot requires an OpenAI or Groq API key to function. You can provide API keys in two ways:1. Environment Variables (Persistent)
Add to your.env file:
2. Runtime Configuration (Session Only)
Use the/api/set-api-key endpoint to set keys at runtime:
Runtime-configured keys are stored in memory only and will be lost when the server restarts.
Common Request Patterns
Content Type
All POST requests should include:Response Format
All responses are JSON-encoded. Successful responses return HTTP 200 with a JSON body. Errors return appropriate HTTP status codes (400, 500, 503) with error details:Health Check
Use the health endpoint to verify the server is running:Configuration Status
Check which LLM providers are configured:Rate Limits
ClinicalPilot does not enforce rate limits. However, you are subject to the rate limits of your chosen LLM provider (OpenAI, Groq, or Ollama).Error Handling
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid input |
| 500 | Internal Server Error - Processing failed |
| 503 | Service Unavailable - No API key configured |
Next Steps
Analyze Endpoint
Full multi-agent clinical analysis pipeline
Emergency Endpoint
Fast-path triage for emergency scenarios
Chat Endpoint
AI-powered clinical decision support chat
Upload Endpoints
Upload FHIR bundles or EHR documents