Upload

Upload and process files

Accept up to 3 files (binary, max 25 MB each) and/or previously-uploaded file IDs (reference_ids) from the user's library. Total files (new + library) must not exceed 3. Kicks off a background task that uploads to S3 and indexes the documents for grep-backed search. Progress is streamed via SSE on GET /upload/process-stream/{upload_session_id}.

post/api/v1/upload/process

Request

  • Base URL
    https://backend.caspr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Request body multipart/form-data

upload_session_idstring required

Upload session ID from POST /upload/create-session

chat_idstring required

Chat ID that these files will be associated with

reference_idsstring nullable

JSON array of uploaded_files.id from library, e.g. '["id1","id2"]'

filesstring[]

Files to upload (max 3 files, 25 MB each)

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.