v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
HIP Users API

Create Eka User

Overview

Create a new Eka User (HIP User) for your business. This endpoint lets you register a user with their personal details and assign them to specific doctors and clinics.

Endpoint: {{HOST}}/cdr/v1/ekauser

Method: POST

Request Parameters

ParameterTypeDescriptionRequired
firstnamestringUser's first nameYes
lastnamestringUser's last nameYes
mobilestringUser's mobile number (10 digits)Yes*
emailstringUser's email addressYes*
auth_useridstringauth_userid is used for the SSO authenticationYes*
genderstringUser's gender (M/F/O)Yes
dobstringUser's date of birth (YYYY-MM-DD)Yes
is_adminbooleanWhether the user is an adminNo
seat_typestringSeat type (b - basic, p - premium). Default: bNo
personastringUser persona (S - Staff, D - Doctor). Default: DNo
doctor_idsarrayList of doctor Eka IDs to assign to this userNo
partner_doctor_idsarrayList of partner doctor IDs to assign to this userNo
clinic_idsarrayList of clinic Eka IDs to assign to this userNo
partner_clinic_idsarrayList of partner clinic IDs to assign to this userNo

Note: Either mobile or email or auth_userid is required. At least one must be provided.

Response Parameters

ParameterTypeDescription
statusstringStatus of the response (e.g., "success")
ekaidstringUnique identifier for the created Eka User
post/cdr/v1/ekauser/

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

firstnamestring required

User's first name

lastnamestring required

User's last name

mobilestring

User's mobile number (10 digits). Either mobile or email or auth_userid is required.

emailstring email

User's email address. Either mobile or email or auth_userid is required.

auth_useridstring

auth_userid used for SSO authentication. Either mobile or email or auth_userid is required

gender'M' | 'F' | 'O' required

User's gender (M - Male, F - Female, O - Other)

dobstring date required

User's date of birth in YYYY-MM-DD format

is_adminboolean

Whether the user has admin privileges

seat_type'b' | 'p'

Seat type (b - basic, p - premium). Default: b

persona'S' | 'D'

User persona (S - Staff, D - Doctor). Default: D

doctor_idsstring[]

List of doctor Eka IDs to assign to this user

partner_doctor_idsstring[]

List of partner doctor IDs to assign to this user

clinic_idsstring[]

List of clinic Eka IDs to assign to this user

partner_clinic_idsstring[]

List of partner clinic IDs to assign to this user

Example request

{
  "firstname": "Amit",
  "lastname": "Kumar",
  "mobile": "0000011111",
  "email": "amit.kumar@example.com",
  "auth_userid": "Prateek_@_123",
  "gender": "M",
  "dob": "1990-05-15",
  "seat_type": "b",
  "persona": "D",
  "doctor_ids": [
    "171266028552522",
    "171266028552523"
  ],
  "partner_doctor_ids": [
    "Part_doc_1",
    "Part_doc_2"
  ],
  "clinic_ids": [
    "c-314086a34253rd",
    "c-415197b45364se"
  ],
  "partner_clinic_ids": [
    "Part_clinic_1",
    "Part_clinic_2"
  ]
}

Response

Created - Eka User successfully created

statusstring
ekaidstring

Unique identifier for the created Eka User

Example response

{
  "status": "success",
  "ekaid": "176917697553584"
}