An athenahealth API integration starts with an app on the athenahealth Developer Portal, OAuth 2.0 credentials, and a Preview sandbox. Certified FHIR R4 reads are free; the athenaOne REST APIs, which handle nearly all writes, need a contract. AdvancedMD and Tebra split the same way: a patient-access FHIR API plus a proprietary API (REST/XML-RPC or SOAP) for scheduling and billing.

Everything below comes from what each vendor publishes. Where details sit behind a developer agreement, we stop there.

What APIs do athenahealth, AdvancedMD, and Tebra offer?

Each vendor offers a FHIR R4 API for patient and provider access to USCDI data, and a proprietary API for scheduling, demographics, charges, and payments. The FHIR tier exists because of 45 CFR 170.315(g)(10), which requires certified health IT to answer read and search requests.

Itemathenahealth (athenaOne)AdvancedMDTebra (formerly Kareo)
Proprietary APIathenaOne APIs, REST/JSON, read and writeConnect APIs (Partner APIs), XML-RPC and RESTTebra Web Services API 2.1, SOAP/XML with WSDL
Patient-access FHIR APIFHIR R4 on a global base URL, certified to (g)(10); DSTU2 on site-specific URLsFHIR R4, USCDI v3, certified to (g)(10), GET requests onlyFHIR R4, US Core 3.1.1, USCDI v1 (May 2025 guide), hosted on SmileCDR
Proprietary accessDeveloper Portal app, then a Platform Services or Marketplace Partner contractCertified API Developer Agreement with licensing and support feesPractice System Administrator requests a customer key from Customer Care
Proprietary authOAuth 2.0 (Okta): client credentials or authorization codeDocumented under the developer agreementCustomerKey plus Tebra user name and password in every request
FHIR authSMART scopes, 2-legged (system) or 3-legged3-legged SMART for single-patient apps; client credentials with a JWT assertion for Bulk3-legged for user-facing apps, 2-legged for backend services
Published rate limitsProduction 150 calls/second and 500,000/day; Preview 15/second and 50,000/dayNot published outside the agreementPer operation, per account (GetPatients: 1 call per second)
Change notificationChanged data subscriptions (polling) or Event Notifications (webhooks)Not published outside the agreementNone; poll with last-modified date filters
Bulk dataFHIR Bulk Export by Group, or athenahealth Data ViewFHIR Bulk API, or an ODBC driverFHIR backend services apps (contracted, with fees)
Path to productionTech Spec, Solution Validation demo, Go-Live AuthorizationDemo to the InterOps team, then production credentials and an appnameKey enabled by the practice; FHIR activated per practice

The deciding question is usually whether your product writes. A read-only clinical product can often live on the FHIR tier, where athenahealth's certified APIs and Tebra's patient-access reads are free. Booking appointments, creating patients, or posting charges needs the proprietary API and its agreement. Our comparison of HL7 v2 and FHIR covers the standards side of that choice.

How do you get access to the athenahealth API?

Register on the athenahealth Developer Portal, create a Preview application, and start testing in the sandbox. Certified FHIR APIs cost nothing. Everything else, including the athenaOne APIs that write data and the Event Notifications webhooks, requires a contract through athenahealth Platform Services.

athenahealth publishes its integration process in six stages: explore, contracting, design, build and test, validate, and go live. After signing, you submit an API Technical Specification Form, review it with an athenahealth API consultant, and build in a dedicated Preview environment. A passing Solution Validation demo earns a Go-Live Authorization Form and a Production keyset. Companies that are not athenaOne customers come in through the Marketplace Partner Program.

Authentication runs through an OAuth 2.0 server powered by Okta. You choose one method at registration and cannot reuse credentials across both. 2-legged OAuth uses the client credentials grant for backend services. 3-legged OAuth uses the authorization code grant and is limited to patient-facing and provider-facing apps that use only the certified APIs. The token endpoint is POST /oauth2/v1/token. Every athenaOne call is scoped to a practice ID in the path, so a first request against Preview looks like this (illustrative; the practice ID is athenahealth's documentation example):

# 1. Get a token (2-legged, client secret in a basic auth header)
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.*"

# 2. Call an athenaOne endpoint for practice 12345
curl https://api.preview.platform.athenahealth.com/v1/12345/departments \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Scheduling queries are usually scoped by department ID too, so multi-location practices mean iterating departments. Default 2-legged FHIR scopes are individual read scopes such as system/Patient.read. athenahealth does not permit wildcard scopes such as system/*.read or FHIR write scopes by default. Its live FHIR CapabilityStatement does advertise a few non-read interactions, such as create on QuestionnaireResponse, along with Appointment read and search, so check it before assuming a resource is out of reach. Credentials are tied to one environment, per the environment URL guide, and athenahealth's server IP addresses change, so skip IP allowlisting.

athenaPractice and athenaFlow are separate products with their own developer portal built on Azure Active Directory, so confirm which product your customer runs before registering anything.

athenahealth rate limits, change feeds, and bulk data

The best practices page lists Production limits of 150 calls per second and 500,000 per day, and Preview limits of 15 per second and 50,000 per day. Each API response carries X-RateLimit-Limit and X-RateLimit-Remaining headers for the daily quota, which resets at midnight GMT. OAuth responses carry the same headers for a per-minute limit. Throttle on those headers, not on hardcoded numbers.

The same page names the expensive calls: GET /patients, GET /appointments/booked, its multiple-department variant, and GET /claims. athenahealth asks you to parameterize them, run large pulls between 8pm and 6am Eastern, scope booked-appointment queries to a date range, and keep claims pulls to about 3 to 6 months. It will not accept integrations that bulk import data from one system to another; bulk retrieval goes through athenahealth Data View or FHIR Bulk Export on a Group.

For incremental sync there are two options. Changed data subscriptions are a polling queue you can read as often as once per minute, one practice per subscription. Reading removes messages from the queue, and there is no separate acknowledgement step. Unread messages are deleted after 24 hours (athenahealth may cut that to one hour and asks you to read at least hourly), and a subscription with no reads for 7 days is removed. Event Notifications push events to your webhook with at-least-once delivery, carry only IDs so you call back for the full resource, can cover several practices in one subscription, and require an updated API Solutions contract. At-least-once delivery means you will see duplicates, so make your handler idempotent.

How does AdvancedMD API integration work?

AdvancedMD offers proprietary Connect APIs in XML-RPC and REST for read and write work, plus a certified FHIR R4 API that accepts GET requests only. Connect API access requires a signed Certified API Developer Agreement with licensing and support fees.

AdvancedMD's developer solutions page lays out the path. You request an API developer license and sign the agreement, then receive the full API documentation and a sandbox. After you demonstrate the integration to AdvancedMD's Interoperability (InterOps) team, you get production credentials, including a unique appname. For warehouse-scale volumes it offers an ODBC driver with prebuilt SQL scripts for full and delta extracts. It also says AdvancedMD does not directly support custom HL7 2.x interfaces for external developers. Connect API endpoints, authentication, and limits are documented under the agreement, so this guide does not cover them.

The FHIR documentation is public. The AdvancedMD FHIR FAQ says the APIs are certified to 170.315(g)(10), support FHIR R4 and USCDI v3, and do not accept writes, and that single-patient access uses three-legged OAuth. The Single API guide gives the provider endpoint as https://providerapi.advancedmd.com/v1/r4 and says PKCE is not supported. It is inconsistent on user scopes: one note says they are not yet supported, while the scope list includes user/*.read and user/*.rs, so test the scopes you need in the sandbox. App approval is by email to AdvancedMD InterOps and can take a few days. The Bulk API guide uses a different flow: grant_type=client_credentials with a JWT client assertion and scope=system/*.read, plus a provider user name, password, and office key, followed by GET /v1/r4/Group/{groupId}/$export.

How does Tebra API integration work?

Tebra's main integration surface is the Tebra Web Services API 2.1, the SOAP API inherited from Kareo. A practice System Administrator requests a customer key, and every call carries that key plus a Tebra user name and password. Tebra also publishes a FHIR R4 API, hosted on SmileCDR, with search and read on USCDI resources.

The Tebra API Integration Technical Guide (updated April 2026) documents the operations. It reads appointments, charges, encounters, patients, payments, providers, and transactions, among others; creates appointments, documents, encounters, patients, and payments; updates appointments, encounter status, and patients; and deletes appointments and documents. The API user must hold the System Admin role, which is a good reason to create a dedicated API user instead of borrowing a staff login that disappears when that person leaves. The WSDL is at https://webservice.kareo.com/services/soap/2.1/KareoServices.svc?singleWsdl; the Tebra help center notes that Kareo and PatientPop are now Tebra.

The guide sets rules that shape sync design. Every Get operation needs at least one filter, and date filters come in pairs (send FromCreatedDate and you must send ToCreatedDate). Most Get operations take a Fields object of booleans that limits the response to what you ask for. Rate limits are per operation and measured per Tebra account: GetPatients, GetAppointments, and GetCharges allow 1 call per second, GetPatient 1 every quarter second, GetAllPatients 1 every 5 seconds, and most creates and updates 1 every half second. An overage returns an error such as "429: GetPatients endpoint requested more than allowed over time interval 1000 milliseconds," and Tebra recommends a delay or retry. The limits can change.

Here is an illustrative GetAppointments request built from the published WSDL, with fake credentials. The inherited RequestHeader comes first, then Fields and Filter, with child elements in schema order.

POST /services/soap/2.1/KareoServices.svc HTTP/1.1
Host: webservice.kareo.com
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.kareo.com/api/schemas/KareoServices/GetAppointments"

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:sch="http://www.kareo.com/api/schemas/">
  <soapenv:Header/>
  <soapenv:Body>
    <sch:GetAppointments>
      <sch:request>
        <sch:RequestHeader>
          <sch:CustomerKey>TESTCUSTOMERKEY123</sch:CustomerKey>
          <sch:Password>example-password</sch:Password>
          <sch:User>api.user@example.com</sch:User>
        </sch:RequestHeader>
        <sch:Fields>
          <sch:ConfirmationStatus>true</sch:ConfirmationStatus>
          <sch:EndDate>true</sch:EndDate>
          <sch:ID>true</sch:ID>
          <sch:LastModifiedDate>true</sch:LastModifiedDate>
          <sch:PatientID>true</sch:PatientID>
          <sch:StartDate>true</sch:StartDate>
        </sch:Fields>
        <sch:Filter>
          <sch:FromLastModifiedDate>2026-10-30</sch:FromLastModifiedDate>
          <sch:PracticeName>Test Practice</sch:PracticeName>
          <sch:ToLastModifiedDate>2026-10-31</sch:ToLastModifiedDate>
        </sch:Filter>
      </sch:request>
    </sch:GetAppointments>
  </soapenv:Body>
</soapenv:Envelope>

Tebra does not push data. The help center says there are no webhooks and no HL7 messaging, so you poll, and Tebra's polling advice disagrees with itself. The help center suggests 5 to 15 minute intervals, and 5 to 10 minutes for patient changes using GetPatients with a last-modified date range. The technical guide asks you to poll "as infrequently as possible (e.g., every 2 hours instead of every 5 minutes)." Tebra also provides ExternalId fields, such as PatientExternalId, so you can store your own ID on the Tebra record and query by it.

The Tebra FHIR API User Guide (May 2025) says its FHIR APIs are designed to meet ONC's USCDI v1 requirements, built on US Core 3.1.1 over R4, with search and read on resources such as Patient, Condition, Encounter, Observation, and DocumentReference. Confirm the deployed version with Tebra, since the guide is dated. Developers register through Tebra's appSphere portal. User-facing apps use the authorization code flow and backend services use client credentials, both against https://fhir.prd.cloud.tebra.com/smartauth/oauth/token, and each practice must request FHIR activation through a Customer Care case. Patient-access reads are free; clinician-focused and system bulk export apps need contracts and additional fees.

What data can you read and write through each API?

athenahealth's athenaOne APIs and Tebra's SOAP API both create and update patients and appointments, and AdvancedMD's Connect APIs cover the same ground under its agreement. The FHIR tiers are for reading, apart from narrow exceptions such as athenahealth's QuestionnaireResponse create.

Dataathenahealth athenaOne APIsTebra SOAP 2.1FHIR tier
PatientsRead, create, update; match on at least 4 fieldsGetPatient(s), CreatePatient, UpdatePatientRead and search at all three
AppointmentsBooked appointments, change feed or webhooks, writes under contractGetAppointment(s), Create, Update, UpdateAppointmentStatus, Deleteathenahealth advertises Appointment read and search; not part of US Core
Encounters and chargesEncounter ID returned on check-in events in the appointments change feed; claims reads are expensiveGetCharges, GetEncounterDetails, CreateEncounter, UpdateEncounterStatusEncounter read
PaymentsFinancial endpoints under contractGetPayments, CreatePayments, GetTransactionsNot available
DocumentsUpload base64, PDF suggested, under 20MB per the best practicesCreateDocument, DeleteDocumentDocumentReference read

AdvancedMD is missing from the table because its Connect API reference is not public; its developer page lists scheduling, patient payments, and revenue cycle among Connect API uses.

What breaks in production with these APIs?

The common failures are throttling that only shows up at real volume, date windows that quietly return less than you asked for, duplicate or mismatched patients, and writes whose outcome you cannot confirm.

Tebra's limits are per account, so two workers syncing one practice split a single budget. athenahealth's daily quota resets at midnight GMT, which lands in the late afternoon or evening across the US. Its retry guidance says to retry on network errors and on 502, 503, and 504 with exponential backoff, jitter, and a circuit breaker, and to treat 429 as a sign of too many concurrent requests or an exhausted daily quota.

Retries on writes need more care than backoff gives you. A timeout on a create may mean the patient or appointment was created and the response was lost. Search for the record before you send the create again, or you will build duplicates.

Date windows cause silent gaps. athenahealth uses limit and offset paging and warns that some APIs apply default limits. Tebra's GetAppointments, if you send neither StartDate nor EndDate, defaults to 3 days before the call through 4 days after, per the April 2026 changelog, though the guide says created-date or last-modified-date pairs change that behavior. Send explicit dates on every call and log the range next to the record count.

Patient matching needs vendor help. athenahealth asks for at least 4 matching inputs (first name, last name, date of birth, plus one of email, phone, ZIP code, or SSN) and offers GET /patients/enhancedbestmatch. It caps most patient fields at 20 characters (30 for last name, 50 for email, 100 for address lines), so truncation on write produces records that no longer match. It also warns that JSON key order is not stable across releases. Tebra's ExternalId fields let you match on your own key instead of demographics.

Errors hide in successful responses. A Tebra SOAP response can carry IsError in its ErrorResponse object, so check the body as well as the status. For athenahealth's changed data feed, write the raw response to durable storage before processing it, and run a periodic date-range pull to reconcile anything lost between read and write. The message-loss and reconciliation checks in our HL7 interface audit checklist apply here too.

Production-readiness checklist for EHR API integration

Before you turn on a practice, confirm each item against the vendor's current documentation and your own logs.

  1. Confirm the exact product: athenaOne versus athenaPractice or athenaFlow, and Tebra PM versus Tebra FHIR access.
  2. Sign the agreement that matches your writes: athenahealth Platform Services or Marketplace Partner, AdvancedMD Certified API Developer Agreement, or a Tebra customer key on a dedicated System Admin API user.
  3. Store Preview and Production credentials separately, outside the codebase, and use TLS 1.2 or higher.
  4. Cache tokens centrally and refresh before expiry; athenahealth tokens need refreshing every hour.
  5. Throttle per account using Tebra's published limits and athenahealth's rate-limit headers.
  6. Retry reads on network errors and 502, 503, and 504 with backoff and a cap; check for an existing record before retrying any create.
  7. Send explicit date ranges on windowed queries and log the range with the count.
  8. Read athenahealth changed data at least hourly, persist the response first, and make webhook handlers idempotent.
  9. Match patients on vendor IDs or external IDs, and use athenahealth's matching endpoint before creating.
  10. Validate field lengths before writes and fail loudly on truncation.
  11. Parse SOAP error objects even when the HTTP status is 200.
  12. Run backfills off hours through the vendor's bulk path: FHIR Bulk Export, Data View, or ODBC.
  13. Write an audit log entry for every read and write of PHI.
  14. Regression test with one practice before rolling to the next, as athenahealth's go-live process asks.

How Orisan Connect handles athenahealth, AdvancedMD, and Tebra

Orisan Connect is our EHR integration and data sync product, with live integrations for AdvancedMD, athenahealth (through its FHIR R4 and REST APIs), and Tebra, plus an export-only Google Calendar integration that redacts PHI. Data is encrypted at rest with AES-256-GCM and in transit with TLS, operations write to an immutable audit log, and a BAA is available.

Connect is not FHIR-native; it uses each vendor's own APIs, proprietary ones included, where the scheduling and billing data lives. If you are building a connector yourself and want a second set of eyes, our HL7, FHIR, and EDI integration team does builds and audits.

Where to start

List each practice you plan to connect with its vendor product and the data you need to write. Then start each vendor's first step: an athenahealth Preview app, AdvancedMD's developer license request (the agreement comes before the documentation), or the Tebra customer key case opened by the practice's System Administrator. Run one full day of calls against the published limits before adding a second practice. If you would rather not maintain three vendor connectors, the Orisan Connect EHR and practice management integrations list what each one syncs. If you are certifying your own FHIR API, our guide to (g)(10) certification with the Inferno test kit covers the other side of these endpoints, and you can contact us to compare notes.