v1
latestOpenAPI 3.0.32026-07-26229361630.0 KBDoctor and clinic API
Create Clinic
Overview
The Create Clinic API allows you to register a new clinic for your business, including its name, address, pincode, contact number, city, state, and assigned doctors.
Endpoint: {{HOST}}/cdr/v1/clinic
Method: POST
Request Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the clinic | Yes |
| address | string | Address of the clinic | Yes |
| partner_id | string | Unique id of the clinic in partner's system. | No |
| pincode | string | Pincode of the clinic | No |
| contact | string | Contact number | No |
| doctor_ids | array | List of doctor Eka IDs to assign to this clinic | No |
| partner_doctor_ids | array | List of partner doctor IDs to assign to this clinic | No |
| city | string | City name | No |
| state | string | State name | No |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| status | string | Status of the response (e.g., "success") |
| ekaid | string | Unique identifier for the created clinic |
post/cdr/v1/clinic/
Headers
authstring required
Example:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.
Request body
Example request
{
"name": "Sunrise Clinic",
"address": "123 Main Street, Block A",
"partner_id": "Clinic_321_Indore",
"pincode": "560001",
"contact": "9876543210",
"doctor_ids": [
"171266028552522",
"171266028552523"
],
"partner_doctor_ids": [
"Part_Doc_1",
"Part_Doc_2"
],
"city": "Bangalore",
"state": "Karnataka"
}Response
Created - Clinic successfully created
Example response
{
"status": "success",
"ekaid": "do1769174683513"
}