Skip to main content
POST
/
api
/
content
/
files
Upload file
curl --request POST \
  --url https://api.tedro.io/api/content/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token= \
  --form file='@example-file'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "file",
  "title": "<string>",
  "slug": "<string>",
  "sourceFileKey": "<string>",
  "fileSize": 123,
  "fileType": "<string>",
  "syncStatus": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tedro.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

multipart/form-data

Upload a knowledge base file. Sent as multipart/form-data with a single file field.

file
file

PDF, TXT, MD, or DOCX (max 10 MB)

Response

File uploaded and indexing enqueued

id
string<uuid>
required
type
enum<string>
required
Available options:
file
title
string
required
slug
string
required
sourceFileKey
string | null
required
fileSize
integer | null
required
fileType
string | null
required
syncStatus
string | null
required
createdAt
string
required
updatedAt
string
required
{key}
any