Denser Retriever

Presign Upload Url

POST
/v1/presignUploadUrl

Authorization

x-api-key
x-api-key<token>

In: header

Request Body

application/json

knowledgeBaseId*string

The ID of the knowledge base.

Length36 <= length <= 36
fileName*string

The name of the file to be uploaded.

Length1 <= length <= 256
size*number

The size of the file to be uploaded, in bytes.

Range1 <= value <= 52428800

Response Body

application/json

application/json

application/json

curl -X POST "https://retriever.denser.ai/api/open/v1/presignUploadUrl" \  -H "Content-Type: application/json" \  -d '{    "knowledgeBaseId": "stringstringstringstringstringstring",    "fileName": "string",    "size": 1  }'
{
  "success": true,
  "data": {
    "fileId": "string",
    "uploadUrl": "string",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}
{
  "success": false,
  "message": "string",
  "data": {},
  "errorCode": "STORAGE_LIMIT_EXCEEDED"
}
{
  "success": false,
  "message": "string",
  "data": {},
  "errorCode": "INPUT_VALIDATION_FAILED"
}