Skip to content

API Explorer

API Explorer

DELPHOS provides interactive API documentation powered by OpenAPI/Swagger. You can browse all available endpoints, view request/response schemas, and test API calls directly from your browser.

Accessing the API Explorer

Live Swagger UI

The interactive API explorer is available at your DELPHOS instance:

https://your-instance.delphos.app/docs

ReDoc View

For a clean, read-only browsing experience, use the ReDoc interface:

https://your-instance.delphos.app/redoc

Authentication

All API requests require authentication via the x-api-key header. See the Authentication guide for full details on obtaining and managing API keys.

  1. Click the Authorize button at the top of the Swagger UI page.
  2. Enter your API key in the x-api-key field.
  3. Click Authorize to save.
  4. All subsequent requests made through the UI will include your API key automatically.
Terminal window
curl -H "x-api-key: YOUR_API_KEY" \
https://your-instance.delphos.app/v1/health

API Domains

The DELPHOS API is organized into the following domains:

DomainBase PathDescription
Patients/v1/patientsPatient registration, search, and clinical records
Consultations/v1/consultationConsultation sessions, SOAP notes, progressive streaming
Prescriptions/v1/prescriptionsPrescription creation, management, and streaming extraction
Scheduling/v1/schedulingAppointment booking, calendar management, and availability
Doctors/v1/doctorsDoctor registration and profile management
Chat/v1/patients/{id}/chatPatient-context clinical chat
Drug Interactions/v1/drug-interactionsDrug safety and interaction checks
Health/v1/healthService health check

OpenAPI Specification

The raw OpenAPI JSON specification is available at:

https://your-instance.delphos.app/openapi.json

You can use this specification to generate client libraries, import into Postman, or integrate with any OpenAPI-compatible tooling.

Downloading the Spec

Terminal window
curl https://your-instance.delphos.app/openapi.json -o delphos-openapi.json

Importing into Postman

  1. Open Postman and navigate to File > Import.
  2. Select the downloaded delphos-openapi.json file.
  3. Postman will create a collection with all DELPHOS endpoints.
  4. Set the x-api-key variable in your Postman environment.

Key Endpoints to Explore

Streaming Endpoints (SSE)

These endpoints return Server-Sent Events for real-time updates. Set the Accept: text/event-stream header when calling them.

EndpointDescription
POST /v1/consultation/progressive-soap/streamReal-time SOAP note generation with progressive updates
POST /v1/prescriptions/streamStreaming prescription extraction with safety gate validation

CRUD Endpoints

Standard REST endpoints for resource management:

EndpointDescription
GET /v1/patientsList and search patients
POST /v1/patientsRegister a new patient
GET /v1/patients/{id}Retrieve a patient record
GET /v1/scheduling/availabilityQuery available appointment slots
POST /v1/scheduling/appointmentsBook an appointment
GET /v1/doctorsList registered doctors

Rate Limits and Best Practices

  • Always include x-api-key in every request — unauthenticated calls are rejected with 401.
  • Use Accept: text/event-stream for SSE endpoints — the server will not stream without this header.
  • Implement retry with exponential backoff for 5xx errors — transient failures resolve quickly with retries.
  • Cache the previous_soap_hash returned by SOAP streaming — sending it on subsequent calls avoids redundant reprocessing.
  • Validate against the OpenAPI spec — use the downloaded spec to validate request payloads before sending them.

Error Response Format

All error responses follow a consistent JSON structure:

{
"detail": "Description of what went wrong"
}
StatusMeaning
400 Bad RequestInvalid request body or parameters
401 UnauthorizedMissing or invalid API key
403 ForbiddenValid key, insufficient permissions
404 Not FoundResource does not exist
422 Unprocessable EntityValidation error on request payload
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorUnexpected server error

Next Steps