When to Use
EHR Agent
Best for:
- Comprehensive health analysis
- Multi-system assessment
- Complex cases with imaging/genetics
- Pre-visit preparation
Lab Results Agent
Best for:
- Lab result interpretation
- Post-visit lab review
- Routine monitoring analysis
- Direct lab-to-patient communication
Endpoint
Agent Modes
The EHR Agent supports two modes:Deep Agent runs include
researchTasks in the response — an array of the specific research queries executed during the multi-step literature review. Light Agent responses do not include this field.Request Format
Required Fields
Health Data Fields
All fields indata are optional, but you should provide at least some health information for meaningful analysis:
Patient Info
Lab Result Fields
Used for bothrecentAbnormalLabs and recentNormalLabs:
Lab Trends
Track how a lab value has changed over time:Condition Fields
Medication Fields
Family History Fields
Imaging Study Fields
Genetic Data Fields
Vital Sign Fields
Element Limits & Sorting
To ensure optimal analysis quality and prevent context overflow, the API applies limits to each data category. Elements are sorted by date (most recent first) before limits are applied.Error Responses
400 Bad Request — Validation Error
401 Unauthorized
429 Too Many Requests
Returned when your company has reached its concurrent request limit. Includes aRetry-After header.
500 Internal Server Error
Response Format
Immediate Response (200 OK)
Response Headers
Webhook Delivery
Results are delivered to your webhook URL (5-8 min for Light, 10-13 min for Deep): Light Agent response:researchTasks):
Result Fields
Selected Elements
TheselectedElements array contains the health data elements that the AI identified as most clinically relevant:
Processing Steps
Status update webhooks are sent during processing: Light Agent Steps:
Deep Agent Steps:
For Deep Agent, steps 1-4 are sent by the initial API server. Steps 5-8 and the final result are sent by the Deep Agent research processor. This architecture allows the Deep Agent to run for up to 16 minutes without timeout constraints.
Example Requests
Pricing
Next Steps
Webhooks
Set up webhook handling and signature verification.
Response Format
Learn how to parse and display responses with citations.
Rate Limits
Understand concurrency limits.
Lab Results Agent
Simpler endpoint for lab-only analysis.