POST
/
api
/
v3
/
documents
/
Upload Document
curl --request POST \
  --url https://api.nugen.in/api/v3/documents/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'categories=<string>' \
  --form file=@example-file
"<string>"

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

The document file to upload

categories
string[] | null

Categories for the document

Response

Successful Response

The response is of type string.