VitalEdge API Documentation
Build powerful healthcare integrations with our RESTful API and HL7 FHIR R4 endpoints. Full documentation for authentication, endpoints, and examples.
Authentication
VitalEdge API uses JWT (JSON Web Tokens) for authentication. All API requests must include a valid access token in the Authorization header.
JWT Bearer Tokens
Primary authentication method. Access tokens expire after 15 minutes, refresh tokens after 7 days.
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...Organization Context
Multi-tenant isolation requires organization ID header for all requests.
X-Organization-ID: org_abc123Rate Limits
Standard: 1,000 requests/minute | Enterprise: 10,000 requests/minute
// 1. Login to get tokens
POST /api/auth/login
{
"email": "user@example.com",
"password": "secure_password"
}
// Response
{
"accessToken": "eyJhbG...",
"refreshToken": "eyJhbG...",
"expiresIn": 900,
"user": { "id": "user_123", ... }
}
// 2. Use access token for requests
GET /api/patients
Headers:
Authorization: Bearer eyJhbG...
X-Organization-ID: org_abc123REST API Endpoints
Authentication
/api/auth/login/api/auth/refresh/api/auth/logout/api/auth/mfa/verifyPatients
/api/patients/api/patients/:id/api/patients/api/patients/:idObservations
/api/observations/api/observations/api/observations/patient/:patientIdAlerts
/api/alerts/api/alerts/triage/api/alerts/:id/resolve/api/alerts/bulk-resolveEnrollments
/api/enrollments/api/enrollments/api/enrollments/:idBilling
/api/billing/summary/:orgId/:month/api/billing/readiness/:enrollmentId/:month/api/billing/export/:orgId/:monthFull API reference with request/response schemas available in our OpenAPI specification.
Request full API documentationCode Examples
Create an Observation
Record clinical observations from devices, manual entry, or patient self-report. Observations are linked to enrollments for accurate billing calculations.
// Example: Create an observation
const response = await fetch('https://api.vsumup-health.com/api/observations', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json',
'X-Organization-ID': 'org_abc123'
},
body: JSON.stringify({
patientId: 'patient_xyz',
metricDefinitionId: 'metric_bp_systolic',
value: 142,
unit: 'mmHg',
source: 'DEVICE',
recordedAt: '2025-01-31T10:30:00Z'
})
});
const observation = await response.json();
// { id: "obs_123", patientId: "patient_xyz", value: 142, ... }Client Libraries
Official SDKs to accelerate your integration. Sign up to be notified when they launch.
JavaScript/TypeScript
Coming SoonPython
Coming SoonRuby
Coming SoonGo
PlannedReady to Build?
Get API access and start integrating VitalEdge with your healthcare systems today.