The TeleClinicOS API is a FHIR R4-compliant REST API. Authentication uses OAuth 2.0 with SMART on FHIR scopes. All endpoints require TLS 1.3. PHI access is logged to your clinic's immutable audit trail.
https://api.teleclinicos.com/fhir/r4FHIR R4SMART on FHIR
Authentication
OAuth 2.0 + SMART on FHIR
Use the authorization code flow to obtain a short-lived access token. Include the token as a Bearer credential on every request. Tokens expire after 15 minutes; use the refresh token to rotate.
1 — Authorization requestStep 1
GET https://auth.teleclinicos.com/oauth2/authorize
?response_type=code
&client_id=YOUR_CLIENT_ID
&redirect_uri=https%3A%2F%2Fyourapp.example.com%2Fcallback
&scope=openid+fhirUser+patient%2F*.read+patient%2F*.write
&state=RANDOM_STATE_STRING
&aud=https%3A%2F%2Fapi.teleclinicos.com%2Ffhir%2Fr4
Subscribe to clinic events via webhooks. Payloads are signed with HMAC-SHA256 using your webhook secret. Verify the X-TeleClinic-Signature header on every delivery.
Available events
appointment.bookedNew appointment created
appointment.cancelledAppointment cancelled or rescheduled
encounter.startedVideo session joined by provider
encounter.endedVideo session ended
document.signedProvider e-signed a SOAP note
patient.createdNew patient record created
claim.submittedInsurance claim submitted
payment.receivedCash-pay or copay payment received
Error handling
HTTP status codes
200OKSuccess
201CreatedResource created successfully
400Bad RequestInvalid FHIR resource or missing required fields
401UnauthorizedMissing or expired Bearer token
403ForbiddenInsufficient SMART scope for this resource
404Not FoundResource not found in this clinic tenant
409ConflictAppointment slot already booked
422Unprocessable EntityFHIR validation failure — see OperationOutcome
429Too Many RequestsRate limit exceeded — 1,000 req/min per clinic
500Internal Server ErrorContact support@teleclinicos.com