Skip to main content
POST
Upload Source

Authorizations

Authorization
string
header
required

Authenticate with an API key (prefixed ui_sk_) or a JWT token from the dashboard.

Headers

X-UI-Organization-ID
string | null

Choose an organization you belong to for scoped reads, writes, and billing. Users can belong to multiple organizations. Platform administrators may select any organization in this app.

Maximum string length: 128

Path Parameters

session_id
string<uuid>
required

Body

multipart/form-data
file
file
required

Response

Successful Response

id
string
required

Opaque source ID, also used to remove the source.

kind
enum<string>
required
Available options:
study,
document
name
string
required
study_id
string<uuid> | null
status
string | null
created_at
string<date-time> | null