Skip to main content
GET
/
agents
/
{agentId}
/
sources
/
{sourceId}
Get source
curl --request GET \
  --url https://www.chatbase.co/api/v2/agents/{agentId}/sources/{sourceId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "size": 123,
  "createdAt": "<string>",
  "metadata": {
    "type": "individual"
  }
}

Authorizations

Authorization
string
header
required

API key from your account settings

Path Parameters

agentId
string
required

The agent ID

Minimum string length: 1
Example:

"5QHA6VB-DIAbBhxwqxfdi"

sourceId
string
required

The source ID

Minimum string length: 1
Example:

"a63a69a5-e7a9-4757-b73b-2041854d435d"

Response

Source details

id
string
required

Source ID

type
enum<string>
required

Source type

Available options:
link,
file,
qna,
notionPage,
text
name
string | null
required

Source name or URL

size
number
required

Source size in bytes

createdAt
string
required

ISO 8601 creation timestamp

status
enum<string>
required

Training status of the source

Available options:
untrained,
trained,
toBeDeleted,
updated
metadata
object
required

Link-specific metadata. Present only for type="link".