Skip to main content
POST
/
api
/
company
/
kb
/
documents
/
upload-init
Initialize KB document upload
curl --request POST \
  --url https://app.demandiq.com/api/company/kb/documents/upload-init \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "product-catalog.pdf",
  "fileType": "application/pdf",
  "fileSize": 2048000
}
'
{
  "documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "uploadUrl": "<string>"
}

Body

application/json
fileName
string
required
Example:

"product-catalog.pdf"

fileType
string
required
Example:

"application/pdf"

fileSize
integer
required
Example:

2048000

Response

200 - application/json

Upload URL generated

documentId
string<uuid>
uploadUrl
string