Developer API
Powerful REST API for Developers
Build custom integrations and applications with our comprehensive REST API. Full documentation, SDKs, and developer tools to help you get started quickly.
1. Get API Key
Sign up and generate your API key from the dashboard
2. Make Requests
Use our REST API endpoints with your preferred language
3. Build & Deploy
Integrate with your applications and go live
Core API Endpoints
Access all the functionality you need through our RESTful API endpoints.
Available Endpoints
GET
/api/v1/patientsRetrieve all patientsRequired
POST
/api/v1/patientsCreate a new patientRequired
GET
/api/v1/patients/{id}Get patient by IDRequired
PUT
/api/v1/patients/{id}Update patientRequired
GET
/api/v1/appointmentsRetrieve appointmentsRequired
POST
/api/v1/appointmentsCreate appointmentRequired
Code Examples
Get started quickly with these code examples in popular programming languages.
Fetch Patients
JavaScriptfetch('/api/v1/patients', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data));Create Patient
PHP$response = Http::withHeaders([
'Authorization' => 'Bearer YOUR_API_KEY',
'Content-Type' => 'application/json'
])->post('/api/v1/patients', [
'name' => 'John Doe',
'email' => 'john@example.com',
'phone' => '+1234567890'
]);Get Appointments
Pythonimport requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get('/api/v1/appointments', headers=headers)
appointments = response.json()Official SDKs
SDKs for Popular Languages
Use our official SDKs to integrate OPD Care into your applications quickly and easily. Available for the most popular programming languages.
JS
JavaScript
Available
PHP
PHP
Available
PY
Python
Available
RB
Ruby
Coming Soon
JA
Java
Coming Soon
C#
C#
Coming Soon
Install SDK
JavaScript (npm)
npm install @opdcare/api
PHP (Composer)
composer require opdcare/api
Python (pip)
pip install opdcare-api
Ready to Start Building?
Get your API key and start integrating OPD Care into your applications today.
Free
API Access
24/7
Developer Support
99.9%
API Uptime
