Skip to main content
POST
Upload a document (multipart)

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.

Query Parameters

agent_id
string
required

Body

multipart/form-data

multipart/form-data

file
file
required
collection
string

Response

Created

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