Skip to main content
GET
Get a knowledge source

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer sempera_sk_... Each operation names the one scope it needs. Scopes, key kinds and roles are in the Authentication guide.

Path Parameters

source_id
string
required

Query Parameters

agent_id
string
required

Response

OK

id
string
required
object
any
required
agent_id
string
required
type
string
name
string | null
content_type
string | null

Media type of the kind Sempera read the file as (text/plain, text/markdown, text/csv, text/html, the Word document type or application/pdf).

size_bytes
integer | null
processing
object
collections
string[] | null

Ids of this agent's collections that hold the source.

attached
boolean | null

Whether a collection holding it is attached in the agent's draft.

added_at
string<date-time> | null

When the file now on record was uploaded; an in-place edit moves it.

raw
object