POST
/
mr
/
api
/
v1
/
docs
curl --request POST \
  --url https://api.eka.care/mr/api/v1/docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "batch_request": [
    {
      "dt": "ps",
      "dd_e": 1614556800,
      "tg": [
        "tag1",
        "tag2"
      ],
      "files": [
        {
          "contentType": "image/jpeg",
          "file_size": 110000
        }
      ]
    }
  ]
}'
{
  "error": false,
  "message": "",
  "batch_response": [
    {
      "document_id": "<string>",
      "forms": [
        {
          "url": "<string>",
          "fields": {}
        }
      ]
    }
  ]
}

Constraints for File Upload:

  1. A client can create a maximum of 5 batches at a time.
  2. Each batch can include up to 10 files.
  3. All files in a batch must have the same content type.

Valid Content Types:

  • Images:
  • contentTypeJpg = “image/jpg”
  • contentTypePng = “image/png”
  • Documents:
  • contentTypePdf = “application/pdf”

Valid File Sizes:

  • Maximum size for PDF files: pdfMaxSizeMb = 25 MB
  • Maximum size for image files: imageMaxSizeMb = 10 MB

Authorizations

Authorization
string
header
required

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

Body

application/json
batch_request
object[]

Response

200
application/json
Presigned URL successfully retrieved
error
boolean
Example:

false

message
string
Example:

""

batch_response
object[]