CRBNai API
  1. Documents
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
        POST
      • Prepare Document Upload
        POST
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
      • Create Knowledge Bot chat
    • Chats - deprecated
      • Chat with a Knowledge Bot
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. Documents

Prepare Document Upload

Testing
POST
/api/knowledge-bots/{id}/prepare-upload
kbdocument
Request the upload URLs to upload files for a specific knowledge base.
Upload your file to the URL from the signedURL response field with a simple PUT request.
Temporary: Announce the uploaded file afterwards again to the Knowledge Bot.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.crbnai.com/api/knowledge-bots//prepare-upload' \
--header 'Content-Type: application/json' \
--data-raw '{
    "filenames": [
        "string"
    ]
}'
Response Response Example
{
  "uploads": [
    {
      "filename": "withdrawal.grv",
      "signedUrl": "https://concrete-bronze.com",
      "path": "/var/dicta_gripping.ivp"
    }
  ]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Body Params application/json
filenames
array[string]
required
Examples

Responses

🟢200OK
application/json
Body
uploads
array [object {3}] 
required
filename
string 
required
signedUrl
string 
required
path
string 
required
Previous
Add Document to Knowledge Bot
Next
Get Messages of a Knowledge Bot chat
Built with