Upload a knowledge base document

Uploads a document (PDF, TXT, DOC, DOCX, MD, CSV, or JSON, max 10 MB) to the job’s knowledge base. Text content is extracted automatically.

Authentication

AuthorizationBearer

Supabase-issued user JWT. Send as Authorization Bearer header. Dedicated API keys are planned for a future release.

Path parameters

jobIdstringRequiredformat: "uuid"

Request

This endpoint expects a multipart form containing a file.
filefileRequired
descriptionstringOptional

Response

Document uploaded.
documentobjectOptional
messagestringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error