Skip to content
Home

List data sources

Retrieve all knowledge base data sources subscribed to a specific AI Agent.

GET/knowledge-base/data-sources

Query

agent_idstringrequired

The UUID of the agent whose knowledge base sources you want to retrieve.

Headers

Authorizationstringrequired

Your API Key formatted as Bearer sk_live_…

dataarray

A list of knowledge source objects.

idstring

The unique UUID of the data source.

typestring

The type of data source: link or text.

statusstring

Processing status: pending, processing, processed, or error.

created_atstring

The ISO 8601 timestamp of when the source was added.

Terminal window
curl -X GET "https://app.picobot.dev/api/knowledge-base/data-sources?agent_id=91981020-f783-4544-ad96-39857ac589cb" \
-H "Authorization: Bearer <token>"
{
"data": [
{
"id": "ds-0001-0000-0000-0000-000000000001",
"type": "link",
"url": "https://picobot.dev",
"status": "processed",
"created_at": "2024-06-14T10:00:00+00:00"
},
{
"id": "ds-0002-0000-0000-0000-000000000002",
"type": "text",
"title": "Refund Policy",
"status": "processed",
"created_at": "2024-06-13T08:30:00+00:00"
}
]
}