Upload a generic file to project storage

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

ID of the account that owns the retrieved/saved data

integer
required
≥ 1

ID of the project to be retrieved

Body Params

Request body for uploading a generic file. Uses multipart/form-data.
Without purpose: supported types are PDF, DOC(X), XLS(X), PPT(X), TXT, CSV, and common
image formats (JPG, PNG, GIF, WEBP, SVG). Maximum file size is 5 MiB.
With purpose=memory: only PDF, DOCX, MD, TXT, CSV and JSON are accepted, the size cap
rises to 25 MiB, and the file is stored in the memory bucket. The returned key is then used
in the files of a Knowledge Base entry of type memory.

string
required
length ≤ 200

The desired name for the file as it will be stored and identified in Convert (e.g., "campaign_brief.pdf", "logo_variation.svg"). Include the file extension.

file
required

The actual binary file content to be uploaded.
Constraints:

  • Default maximum file size: 5 MiB (25 MiB with purpose=memory).
  • Supported types: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, CSV, JPG, JPEG, BMP, GIF, PNG, WEBP, SVG.
  • With purpose=memory: PDF, DOCX, MD, TXT, CSV, JSON only.
string | null
enum

Upload purpose. memory stores a file for project memory: PDF, DOCX, MD, TXT, CSV or
JSON, up to 25 MiB.
The content of a PDF or DOCX must match its extension. MD, TXT, CSV and JSON are all read
as text, so each is accepted whatever text type its content is detected as.

Allowed:
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json