POST
/
assessment
/
api
/
v1
/
init
curl --request POST \
  --url https://api.eka.care/assessment/api/v1/init/ \
  --header 'Content-Type: application/json' \
  --header 'auth: <api-key>' \
  --header 'client-id: <client-id>' \
  --data '{
  "user_info": {
    "dob": "2001-03-14",
    "age": 23,
    "gender": "m"
  },
  "workflow_id": 1000,
  "practitioner_uuid": "TEST-DR-123",
  "patient_uuid": "TEST-PATIENT-123",
  "unique_identifier": "TEST-PATIENT-UNIQUE-123"
}'
{
  "assessment_id": "sn_121212121218718"
}

API Details

Authorizations

auth
string
header
required

The authentication token of the developer (generated using Authorization API).

Headers

client-id
string
required

Any unique string to identify the logged in developer.

locale
enum<string>

Locale is used to determine the language of the assessment. Supported locales are en, hi, kn for english, hindi and kannada respectively with default being en.

Available options:
en,
hi,
kn

Body

application/json

The request body should contain the user information. Users can either provide the date of birth or age using dob and age fields respectively, along with gender inside user_info.

user_info
object
required

The user information should contain atleast the age of the user.

workflow_id
integer
default:
1000
required

A unique id to identify the assessment to be taken. Detailed list of Assessment Workflows

practitioner_uuid
string

A unique practitioner uuid to identify the practitioner to associate an assessment with, if applicable.

patient_uuid
string

A unique patient uuid to identify the patient, if applicable.

unique_identifier
string

A unique patient identifier to identify the patient's profile to associate as assessment with, if applicable.

Response

200
application/json
OK

The response object contains the assessment_id that uniquely identifies the assessment session.

assessment_id
string
required

A unique identifier for the assessment session.