athenahealth API: Documentation, Sandbox, Access, and Pricing Explained
Daniel Ashcraft
Founder, Orisan Clinical Systems
The athenahealth API is a set of OAuth 2.0 secured REST endpoints for athenaOne: proprietary athenaOne APIs under /v1/{practiceid}/ plus FHIR R4 APIs. Anyone can register on the athenahealth Developer Portal and test against sandbox practice 195900 for free. Production access beyond the free Certified APIs needs a Platform Services contract and practice enablement.
This guide is for engineers and integration leads starting an athenahealth build. It covers the docs, access and authentication, the sandbox, the endpoints a scheduling or patient sync calls, changed data, rate limits, what athenahealth publishes about pricing, and a go-live checklist. athenahealth details link to the relevant docs.athenahealth.com page as it read in mid-November 2026.
Where is the athenahealth API documentation?
The documentation is at docs.athenahealth.com/api, which athenahealth calls the Developer Portal. App registration happens in the Developer Console, which you reach from the portal. The portal has guides, an API reference grouped by area (Appointments, Chart, Documents and Forms, Encounter, and others), workflow pages, release notes, and an in-browser Sandbox.
The API offerings page splits the catalog three ways:
- athenaOne APIs: more than 700 proprietary endpoints, including writes across administrative, clinical, and financial functions. Most practice integrations live here.
- FHIR APIs: DSTU2 and R4 endpoints for USCDI clinical data.
- Certified APIs: the endpoints athenahealth must offer for ONC certification. Most are FHIR R4 resources under §170.315(g)(10), but the list also includes the OAuth and SMART endpoints and a few
/v1/paths, such as the CCDA export certified under §170.315(g)(9).
The portal renders with JavaScript, so secondhand summaries of it are often thin or stale. Check the live page in a browser before you design around a detail. Also note that docs.mydata.athenahealth.com hosts a FHIR guide for a different athenahealth product line with a different authorization model. For athenaOne, use docs.athenahealth.com.
How do you get access to the athenahealth API?
Create a free Developer Console account, register a Preview app, and you get sandbox credentials immediately. Production access depends on which endpoints you call. Apps that use only Certified APIs can self-serve. Apps that call any other athenaOne or FHIR endpoint need an athenahealth Platform Services contract.
The Certified APIs page says those endpoints are free. A non-PHR app on Certified APIs alone still sees no practice data until a practice enables it on its Manage Certified API Access admin page, which needs no contract. Patient-facing personal health record apps must use 3-legged OAuth; they are enabled across athenahealth automatically, but each patient still has to consent.
Everything else goes through Platform Services contracting. Companies that are not athenaOne customers apply through the Marketplace Partner Program form, and existing customers go through their Customer Success Manager. The published process has six stages:
- Explore: open a Developer Console account, create a Preview app, save the client ID and secret, and test in the sandbox.
- Contracting: athenahealth sends a contract for review and signature.
- Design: submit the API Technical Specification Form (one version for customers, one for Marketplace partners) and review it with an athenahealth API consultant, who grants a dedicated Preview environment.
- Build and test in that Preview environment.
- Validate: give a full end-to-end demo in Preview. If it passes, athenahealth sends a Go-Live Authorization Form, grants Production access, and deletes the temporary Preview environment.
- Go live with the Production keyset, coordinate deployment with the client practice, and regression test with your first clients before rolling out further.
The onboarding overview adds the planning constraint: access to any athenaOne customer's Preview or Production environment requires that organization's signed authorization and consent. You need a willing practice before real data flows.
How does athenahealth API authentication work?
athenahealth runs an OAuth 2.0 authorization server (powered by Okta) with two models. 2-legged OAuth uses the client credentials grant for backend services with no end user. 3-legged OAuth uses the authorization code grant for apps acting on behalf of a patient or provider. Access tokens last 60 minutes by default.
You pick one model per app, and one set of credentials cannot serve both. The authorization overview describes 3-legged OAuth as used by apps that use Certified APIs exclusively, while the onboarding overview lists 3-legged options for contracted apps on non-certified APIs too. If your design depends on 3-legged access to athenaOne APIs, confirm it with athenahealth first. A sync service, CRM connector, or scheduling backend is almost always 2-legged.
Scopes decide what a token can call. 2-legged Preview apps are approved automatically for athena/service/Athenanet.MDP.*, which covers the athenaOne APIs, and for system-level FHIR read scopes such as system/Patient.read. FHIR scopes use the SMART App Launch v1.0.0 syntax and are also accepted in the SMART v2 form (system/Patient.rs). By default athenahealth does not grant wildcard or write FHIR scopes.
The token endpoint is POST /oauth2/v1/token on the environment host. Confidential clients authenticate with either a client secret in an HTTP Basic header or a signed JWT assertion, with the public keys either imported into the console or served from your own JWKS URL. Native and single-page 3-legged apps that cannot keep a secret use PKCE instead. JWT assertions need an exp less than an hour out, and athenahealth suggests keeping 1 to 5 keys so you can rotate without downtime. 3-legged refresh tokens default to 90 days. A common failure is posting the client ID and secret as form fields; the secret method requires Basic authentication.
Credentials are tied to one environment. Preview keys call only https://api.preview.platform.athenahealth.com and Production keys call only https://api.platform.athenahealth.com, per the environment URLs page, which also warns that athenahealth's API IP addresses can change, so skip IP allowlisting.
How do you use the athenahealth API sandbox?
Every Preview app can call the shared sandbox at practice ID 195900 as soon as it is created. Call it from curl, Bruno, Postman, or your own code, or use the portal's Sandbox page, which runs calls in the browser after you authorize it with your client ID and secret.
The sandbox guide lists seven test patients, IDs 60178 through 60184, with last names Sandboxtest or Sandbox-Test. Their FHIR R4 logical IDs follow the pattern a-195900.E-60178, and FHIR searches on the global base URL pass the practice as ah-practice=Organization/a-1.Practice-195900.
The shared sandbox teaches you request shapes, paging, and auth. It cannot show how a real practice has configured departments, providers, or appointment reasons. You see that only in a customer's Preview environment, after contracting and with the practice's consent, so plan to map configuration on your first day there.
Which athenahealth API endpoints does a scheduling or patient integration use?
A scheduling integration reads departments, providers, appointment reasons, and open slots, then books with a PUT. A patient sync adds patient search or create and the patient changed feed. The table maps the core calls, from the Online Appointment Scheduling workflow, the Appointment Slot reference, and the changed data guide.
| Endpoint | Purpose | Notes |
|---|---|---|
GET /v1/{practiceid}/departments | List departments | Cacheable, but it changes. Most calls need a department ID. |
GET /v1/{practiceid}/providers | List providers | Use the canonical provider ID; athenaOne maps a provider's other IDs to it. |
GET /v1/{practiceid}/patientappointmentreasons | Patient-facing visit reasons | Also /newpatient and /existingpatient. Requires athenaCommunicator. |
GET /v1/{practiceid}/appointmenttypes | Practice appointment types | Reasons map to types per department and provider. |
GET /v1/{practiceid}/appointments/open | Open slots | Needs reasonid or appointmenttypeid; providerid is required with any reason other than -1. Default limit 1000, max 10000. |
PUT /v1/{practiceid}/appointments/{appointmentid} | Book an open slot | Takes the patient ID, reason ID, and the slot's appointment ID. |
GET and POST /v1/{practiceid}/patients | Find or create a patient | Matching needs first and last name, DOB, department ID, and a phone number. POST may return an existing patient ID. |
GET /v1/{practiceid}/appointments/changed | Poll appointment changes | athenahealth's suggested replacement for an HL7 SIU feed. |
GET /v1/{practiceid}/patients/changed | Poll patient changes | Add, update, delete, merge, and custom field events. |
Licensing changes what works. The products needed by API page says appointment, patient, and provider endpoints need athenaCollector or athenaClinicals, chart endpoints need athenaClinicals, and patient appointment reasons need athenaCommunicator. Confirm the practice's products before you promise a feature.
What does an athenahealth API request look like?
Request a token with your client ID and secret, then send it as a Bearer header to a /v1/{practiceid}/ or /fhir/r4/ path. The token request and FHIR search below follow athenahealth's documented examples. The slot search is illustrative, with placeholder department, provider, and reason IDs you would look up first.
# Illustrative only. Preview environment, sandbox practice 195900.
# 1. Get an access token (2-legged OAuth, client secret in a Basic header).
# Add FHIR scopes such as system/Patient.read to the space-delimited list if you need them.
curl https://api.preview.platform.athenahealth.com/oauth2/v1/token \
-X POST \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d "grant_type=client_credentials" \
-d "scope=athena/service/Athenanet.MDP.*"
# The JSON response includes access_token and expires_in. Export it as ACCESS_TOKEN.
# 2. List departments (athenaOne API)
curl "https://api.preview.platform.athenahealth.com/v1/195900/departments" \
-H "Authorization: Bearer $ACCESS_TOKEN"
# 3. Search open slots (IDs are placeholders; dates are mm/dd/yyyy)
curl -G "https://api.preview.platform.athenahealth.com/v1/195900/appointments/open" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data-urlencode "departmentid=1" \
--data-urlencode "providerid=71" \
--data-urlencode "reasonid=962" \
--data-urlencode "startdate=12/01/2026" \
--data-urlencode "enddate=12/07/2026"
# 4. FHIR R4 patient search on the global base URL (needs system/Patient.read)
curl -G "https://api.preview.platform.athenahealth.com/fhir/r4/Patient" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data-urlencode "ah-practice=Organization/a-1.Practice-195900" \
--data-urlencode "name=Sandboxtest"
The slot response returns an appointments array with totalcount, next, and previous for paging; without enddate, the search covers seven days. The FHIR search returns a standard FHIR Bundle, so page with its links rather than limit and offset. FHIR logical IDs (a-195900.E-60178) and athenaOne patient IDs (60178) differ, so store both. A 401 with "Developer Inactive" usually means the Bearer header is missing, per the best practices guide.
How do you get changed data from athenahealth: polling or webhooks?
athenahealth offers both. Changed Data Subscriptions are polling feeds that are part of the standard API. Event Notifications push near real-time webhooks but need an updated API Solutions contract.
For changed data, you POST once to a feed's subscription path, such as /v1/{practiceid}/appointments/changed/subscription, then poll GET .../appointments/changed. The appointment feed covers schedule, check in, check out, update, cancel, freeze, and slot creation events, and the patient feed covers add, update, delete, and merge. A few rules cause most of the surprises:
- Unretrieved messages older than 24 hours are deleted, and athenahealth may cut that to 1 hour. Poll at least hourly; once a minute is allowed.
- Subscriptions with no
/changedcall in 7 days are removed. A new subscription queues events only from that point and does not backfill, so you need a reconciliation job to repair gaps after an outage. - Subscription changes take about 10 minutes or more in production and up to 15 to 20 minutes in Preview.
- Reading the feed removes the messages (a debugging flag can leave them), and subscriptions belong to one API key.
- Do not send a second
/changedcall for a department before the first answers. Large practices should split calls by department.
Event Notifications deliver to your webhook with at-least-once delivery and an ID-only payload, so you call back for the record. athenahealth's business-hours targets are p90 latency under 10 seconds and p99 under one minute, and one subscription can cover several practices. Appointment and Patient topics can be filtered by ah-practice and ah-department. Because delivery is at least once, your handler has to tolerate the same event arriving twice.
What are the athenahealth API rate limits?
athenahealth's best practices page lists 150 calls per second and 500,000 calls per day in Production, and 15 per second and 50,000 per day in Preview. It also returns X-RateLimit-Limit and X-RateLimit-Remaining headers on every response, which are the numbers to trust for your app.
The published limits sit in an older section of the best practices guide that labels environments by legacy paths (/preview1 and /v1), so read the headers rather than hardcoding the figures. On token requests the headers count per minute and reset at the top of the minute. On API calls they count per day and reset at midnight GMT. Log the X-Request-Id header for support cases.
The same guide names GET /patients, GET /appointments/booked, GET /appointments/booked/multipledepartment, and GET /claims as the most expensive calls. It asks you to parameterize them, run large pulls between 8pm and 6am Eastern, throttle, and use changed-data feeds. athenahealth will not accept integrations that depend on bulk import and points those to Data View or FHIR Bulk Export with the Group resource.
The retry guide says to retry network errors and 502, 503, and 504 responses with exponential backoff, jitter, and a circuit breaker, and not to retry every 5xx. A 429 can mean too many concurrent calls, which backoff fixes, or a spent daily quota, which it does not. Before you retry a write whose outcome is unknown, check whether it already landed. athenahealth's uptime objective is 99.7%.
How much does the athenahealth API cost?
athenahealth publishes that Certified APIs are free and that athenaOne APIs are charged based on API call volume. It does not publish unit prices or Platform Services contract fees; you get those from athenahealth during contracting.
The additional offerings page describes the Marketplace Partner Program (an app store listing, a Partner Success Manager, co-marketing) and says the platform has more than 750 API endpoints. It also lists optional paid event sponsorships that are not required to deploy an app. Treat per-call or per-practice fees quoted on third-party sites as unverified unless athenahealth confirms them in writing.
What breaks athenahealth API integrations?
Several of the documented failure modes come from practice configuration. Department IDs, the mapping from appointment reasons to types, and scheduling permissions vary by practice, so code that works on sandbox practice 195900 can return nothing on a live one.
- Nearly every scheduling call is scoped to a department, patient creation needs a department ID, and changed feeds filter by department. Map departments first and re-pull them on a schedule.
- The scheduling workflow gives the example of one department booking physicals as "PHYS30" and another as "PHYS45", with the patient-facing reason "Physical" mapping to either. Use reason IDs for patient self-scheduling. If you search slots with
ignoreschedulablepermissionorbypassscheduletimechecks, send the same flags when booking. - Practices decide which slots the API can see. By default, slots less than 24 hours out or more than 90 days out are hidden, and frozen slots are hidden unless you ask for them.
- An
appointmentidis unique only within its practice, so key your tables on practice plus ID. POST /patientsruns a best-match check and can return an existing patient ID; store whatever comes back. The best practices guide also asks you to keep error messages generic so a search never reveals whether someone is a patient.- Most patient fields cap at 20 characters, with exceptions such as last name at 30 and email at 50, and athenaOne drops invalid phone numbers such as 555 exchanges. Validate before you POST.
- athenaOne sends reminders and confirmations for web-scheduled appointments through athenaCommunicator, and athenahealth asks partners not to message patients about those bookings.
- Response key order can change with upgrades, so parse JSON by key name.
- athenaOne ships bi-weekly fixes plus triannual releases that can include breaking changes, and the portal set an October 1 deadline for Fall 2026 breaking change testing. Watch the release notes.
If you are syncing appointments into another system rather than booking them, our walkthrough on syncing patient data from AdvancedMD and athenahealth covers field mapping. For CRM targets, the patterns in Tebra CRM integration carry over, and integrating a CRM with an EHR that has no open API covers the fallback when a practice will not sign.
athenahealth API go-live checklist
The steps follow athenahealth's own process order, from app registration to Production rollout.
- Classify every endpoint you need against the Certified API list. If any falls outside it, start Platform Services contracting.
- Register a 2-legged app for backend sync. With a client secret, store it in a secrets manager right away, because the console shows it once. With JWKS there is no secret; protect the private keys and register more than one (athenahealth suggests 1 to 5) so you can rotate.
- Request only the scopes you call.
- Exercise every endpoint against practice 195900 and its test patients, including paging.
- Submit the API Technical Specification Form with call volumes and date ranges for the expensive endpoints.
- Confirm the practice's products (athenaCollector, athenaClinicals, athenaCommunicator) against your endpoint list.
- Get the practice's signed authorization, then map departments, providers, reasons, and appointment types in its Preview environment.
- Cache tokens centrally and renew before the 60-minute expiry, log
X-Request-Id, read the rate limit headers, and limit retries to network errors and 502, 503, and 504. - Poll changed feeds at least hourly, detect a removed subscription, reconcile after gaps, and make webhook handlers idempotent.
- Run the end-to-end Solution Validation demo, then deploy with the Production keyset and regression test with your first client.
Where to start
List every field your product reads or writes, then find the endpoint that serves each one on the API offerings page and note whether it is Certified. That list shows whether you can self-serve or need a contract, and most of it goes straight into your Tech Spec.
If you would rather not build and maintain the connector yourself, Orisan Connect runs a live athenahealth integration through its FHIR R4 and REST APIs, with encryption at rest, audit logs, and a BAA. Our athenahealth, AdvancedMD, and Tebra API comparison covers the other two vendors, and you can book a demo to see the athenahealth sync running.
Frequently asked questions
Is the athenahealth API free?
Partly. athenahealth states that its Certified APIs, mostly FHIR R4 endpoints for USCDI data plus the OAuth and SMART endpoints, are free. Its athenaOne APIs are charged based on API call volume and need an athenahealth Platform Services contract for production use. athenahealth does not publish unit prices or contract fees on its Developer Portal.
What is the athenahealth sandbox practice ID?
The shared sandbox in the Preview environment uses practice ID 195900. Any Preview app you register in the Developer Console can call it right away at https://api.preview.platform.athenahealth.com. athenahealth lists seven test patients there, IDs 60178 through 60184, with the last names Sandboxtest or Sandbox-Test.
Does the athenahealth API use OAuth 2.0?
Yes. athenahealth runs an OAuth 2.0 authorization server. Backend services use 2-legged OAuth with the client credentials grant, and apps acting for a patient or provider use 3-legged OAuth with the authorization code grant. Tokens come from POST /oauth2/v1/token, last 60 minutes by default, and one app's credentials cannot serve both models.
Does athenahealth support webhooks?
Yes, through Event Notifications, which push ID-only events to your webhook with at-least-once delivery and require an updated API Solutions contract. The standard alternative is Changed Data Subscriptions, a polling feed such as GET /v1/{practiceid}/appointments/changed that you can call as often as once a minute.
What are the athenahealth API rate limits?
athenahealth's best practices page lists 150 calls per second and 500,000 calls per day in Production, and 15 per second and 50,000 per day in Preview. Responses also carry X-RateLimit-Limit and X-RateLimit-Remaining headers; the daily API counter resets at midnight GMT. Read the headers for your own app instead of hardcoding the figures.
Daniel Ashcraft
Founder of Orisan Clinical Systems. Building healthcare data infrastructure that connects clinical systems without compromising on compliance or reliability.
Get in touchRelated Articles
Is GoHighLevel HIPAA Compliant? The HIPAA Add-On, BAA, and Patient Data
GoHighLevel is not HIPAA compliant by default. What the HighLevel HIPAA add-on turns on, who signs which BAA, which patient fields belong in a sub-account, and the reminder and campaign workflows that cause trouble.
Is HubSpot HIPAA Compliant? Sensitive Data, the BAA, and EHR Sync
HubSpot can hold PHI on Enterprise plans once Sensitive Data and its BAA are turned on. Here is what the BAA covers, which tools still can't use PHI, and a checklist for practices.