POST
/
mr
/
api
/
v2
/
docs
curl --request POST \
  --url https://api.eka.care/mr/api/v2/docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "document_id": "8570e23d-ee57-4948-95a7-370f0f113db8"
}

Upload the image or PDF file following the document specifications below. Ensure you define the document type and tasks you want to process in the query parameters. Document Specifications

  • PDF Documents: Ensure the file is complete and legible.
  • Images:
    • Preferred DPI: 150+
    • Images must be non-blurred
    • Avoid images with a high degree of non-linear warping or rotation for optimal processing accuracy.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

dt
enum<string>
required

Specifies the type of document being uploaded. The following values are allowed:

  • lr: Lab Report
Available options:
lr
task
enum<string>
required

Specifies the type of document being uploaded. The following values are allowed:

  • smart: Parse the document to smart report
  • pii: Parse Personal Identification Information from the document
  • classification: Document Classification
Available options:
smart,
pii,
classification
batch
boolean

if you are upload document in batch the pass this information as true

Body

multipart/form-data

Response

200
application/json

File uploaded successfully.

The response is of type object.