API ReferenceAgents
Create knowledge base
Add text or url knowledge (file coming soon).
Authorization
ApiKeyAuth AuthorizationBearer <token>
Team API key (prefix sk_). You may also send the key via X-Api-Key header.
In: header
Path Parameters
agentId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/console/agents/string/knowledge_bases" \ -H "Content-Type: application/json" \ -d '{ "type": "text", "name": "string" }'{ "message": "Success", "data": { "id": "string", "type": "text", "name": "string", "description": "string", "url": "string", "content": "string" }}