Skip to main content
POST
/
api
/
v1
/
console
/
agents
/
{agentId}
/
knowledge_bases
Create knowledge base (text or url)
curl --request POST \
  --url https://api.bimpe.ai/api/v1/console/agents/{agentId}/knowledge_bases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "content": "<string>",
  "url": "<string>"
}
'
{
  "message": "Success",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Team API key (prefix sk_). Use Authorization: Bearer or X-Api-Key: .

Headers

Idempotency-Key
string

Unique key to safely retry POST requests.

Maximum string length: 255

Path Parameters

agentId
string
required
Maximum string length: 50

Body

application/json
type
enum<string>
required
Available options:
text,
url
name
string
required
Maximum string length: 255
description
string
Maximum string length: 1000
content
string

Required when type=text

url
string<uri>

Required when type=url

Response

Knowledge base created

message
string
required
Example:

"Success"

data
object
required