Skip to main content
POST

Request Body

agent_id
string
required
The agent’s public ID (ag_*)
text
string
required
Raw text content to add
title
string
Display name for this source

Response 201

The source begins processing immediately. Check status via List Sources.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to add text content to knowledge base.

user_id
string
required
name
string
required
Maximum string length: 256
content
string
required
Maximum string length: 5000000

Response

Successful Response