Skip to main content
POST
/
api
/
v3
/
documents
Upload Documents
curl --request POST \
  --url https://api.nugen.in/api/v3/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=<string>' \
  --form 'categories=<string>' \
  --form files.items='@example-file'
[
  123
]

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
files
file[]
required

The document files to upload

categories
string[] | null

Categories for the documents

Response

Returns a list of task IDs for the uploaded documents. This endpoint handles the upload of multiple documents, validates their types and sizes, creates processing tasks for each document, and returns their unique task identifiers for tracking the upload and processing status via Celery background tasks.