πUpload Knowledge Bank
API to upload Knowledge bank for a user.
Upload a new Document.
https://beta.convai.com/character/knowledge-bank/upload
Beta Endpoint
Headers
Name
Value
Content-Type
application/json
CONVAI-API-KEY
dummy-api-key
Body
Name
Type
Description
file
upload(file)
File to be uploaded
Response
{
"file_name": "dummy_name",
"file_size": "lengtth of file in byte",
"id": "document_id",
"is_available": true,
"status": "status of file",
"timestamp": "1898-10-09T20:35:53.0Z"
}{
"error": "Bad Request"
}"Unauthorized""Forbidden"{
"msg": "Error message"
}Authorizations
CONVAI-API-KEYstringRequired
Header parameters
CONVAI-API-KEYstring Β· uuidRequired
Body
filestring Β· binaryOptional
Responses
200
ok
application/json
400
Bad Request
401
Unauthorized
403
Forbidden
500
Server Error
application/json
post
/knowledge-bank/uploadLast updated