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:

  • ps: Prescription
  • lr: Lab Report
  • ot: Other
  • ds: Discharge Summary
  • vc: Vaccine Certificate
  • in: Insurance
  • iv: Invoice
  • sc: Scan
Available options:
ps,
lr,
ot,
ds,
vc,
in,
iv,
sc
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
file
file
required

The file to be uploaded.

Response

200
application/json
File uploaded successfully.
document_id
string

The unique identifier for the uploaded document.