Skip to main content

Endpoint

POST /v1/docstream/multiupload

Request headers

Token
string
required
JWT access token obtained from POST /authtoken.

Request body

product_type
string
required
The product type assigned to your organization. This determines the document classification and extraction workflow that Atlas applies.
file_urls
array
required
An array of file objects. Multiple documents can be submitted in a single request.

Response

batch_id
string
A unique identifier assigned to this upload batch. Use this value to retrieve extraction results from the extracts API.

Example

curl --request POST \
  --url https://docstream.dev.kreditmind.com/v1/docstream/multiupload \
  --header "Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  --header "Content-Type: application/json" \
  --data '{
    "product_type": "LOAN_APP",
    "file_urls": [
      {
        "file_url": "https://files.s3.ap-south-1.amazonaws.com/uploads/files/sample1.jpg?response-content-disposition=inline",
        "document_id": "1"
      },
      {
        "file_url": "https://files.s3.ap-south-1.amazonaws.com/uploads/files/sample2.jpg?response-content-disposition=inline",
        "document_id": "2"
      },
      {
        "file_url": "https://files.s3.ap-south-1.amazonaws.com/uploads/files/sample3.jpg?response-content-disposition=inline",
        "document_id": "3"
      }
    ]
  }'

Error responses

StatusMeaning
400Missing or empty required parameters — one or more required fields are missing from the request body.
401Invalid token — the token is expired, revoked, or does not match any active session.
Atlas begins processing immediately after the upload is accepted. Save the returned batch_id and use it with the extracts API to retrieve OCR and extraction results.