Connectors / Operations · HTTP Connector
Epic integration and API
Create a patient and create a vital sign in Epic. Connect Epic to the rest of your operations stack with Tray.ai.
What can you do with Epic on Tray.ai?
Epic makes electronic health record software used by hospitals and clinics, and publishes FHIR APIs for patient records, appointments and clinical observations. Tray.ai connects to Epic through the HTTP Connector, so your workflows can call the Epic API alongside the rest of your stack. API access comes through Epic's partner program or API plan, so you need approved credentials first.
- Search appointments for the next day and send reminders through your patient messaging system.
- Match a patient from your intake form before creating a new record, to avoid duplicates.
- Read an observation after a lab result posts and alert the care team in your clinical chat.
- Connects through
- HTTP Connector
- Authentication
- OAuth 2.0
Set it up
Connect Epic to Tray.ai
Each step uses Epic's own API details, from its documentation.
Sign in to Epic with OAuth 2.0
Ask Epic for API access. Once it's approved, set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Epic. Sign in once and every step reads the token from there.
Import a request from Epic's docs
Add an HTTP Client step and paste a cURL example from Epic's API docs. Tray.ai fills in the method, URL, headers, and query.
Start with “Read a patient”
It's one of 9 documented actions, under Patients. The response comes back as data the next step can map into your other apps.
Hand it to an AI agent
Wrap “Search patients” and “Create a patient” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with Epic
Connect Epic with ServiceNow and Snowflake
Each one uses actions and events from Epic's own API documentation.
Create Epic patients from new ServiceNow intake requests
When
A patient intake request is approved in ServiceNow
Then
- Match a patient against existing Epic records
- Create a patient if no match is found
- Update the ServiceNow request with the patient record link
With ServiceNow
Send daily Epic appointment counts to Snowflake
When
On a schedule
Then
- Search appointments for the previous day
- Load appointment counts by clinic into Snowflake
With Snowflake
Apps you can build on Epic data
Internal tools your team can build with an AI assistant, each one using Epic calls from its API documentation.
Clinic day schedule board
Lists the day's appointments with each patient's details so front desk staff can prepare for every visit.
Vital signs entry form
Finds a patient, shows recent observations, and lets a nurse record a new vital sign.
Patient registration desk
Checks for an existing match before a new patient record is created at intake.
Epic MCP server for AI agents
Build an MCP server on Epic in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Read a patient
- Read an appointment
- Read an observation
- Search patients
- Create a patient
- Match a patient
- Search appointments
- Search observations
What the Epic API covers
3 resources and 9 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Epic gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.
Patients
- Read a patient
- Search patients
- Create a patient
- Match a patient
Appointments
- Read an appointment
- Search appointments
Observations
- Read an observation
- Search observations
- Create a vital sign
Checked against Epic's own documentation on 2026-10-22
How Tray.ai makes this work
Epic plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Epic, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Epic actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Epic data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore operations apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every operations connector →
Frequently asked questions
What can a Tray.ai workflow do in Epic?
The Epic API documents 9 actions across 3 resources (Patients, Appointments, Observations). For example: Read a patient; Read an appointment; Read an observation. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Epic?
The Epic API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Do I need special access to the Epic API?
Yes. Epic gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.
See Epic working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.