PUT
/
v2
/
agents
/
{agent_id}
/
kb
/
{doc_id}

Authorizations

Authorization
string
headerrequired

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to add the document to

doc_id
string
required

The ID of the document to add

Body

application/json
status
enum<string>
required

Status of the document in the KB

Available options:
ERROR,
SUCCESS,
PENDING,
INITIALIZED
name
string

Name of the document

content
string

Content of the document

metadata
object
tags
string[]

Tags of the document

sourceType
enum<string>

Type of the document

Available options:
doc,
url
ts
number

Timestamp of the document

Response

200 - application/json
success
boolean
message
string