Skip to main content
GET
/
api
/
AIKnowledge
/
upload-to-s3
Upload Knowledge Unit
curl --request GET \
  --url https://gateway.widebot.net/api/AIKnowledge/upload-to-s3 \
  --header 'x-bot: <api-key>' \
  --header 'x-user-auth: <api-key>'
{
  "StatusCode": 200,
  "Response": {
    "uploadUrl": "<string>",
    "fileKey": "<string>",
    "expiresIn": 123
  },
  "Consumption": "0/10000000"
}

Authorizations

x-user-auth
string
header
required

Your API key from account settings

x-bot
string
header
required

Your bot ID from account settings

Response

200 - application/json

Upload URL for file

StatusCode
integer
Example:

200

Response
object
Consumption
string
Example:

"0/10000000"