files

Upload files and return UUIDs for each

Changed on

This endpoint accepts a multipart form with one or more files and returns UUIDs for each. If chat_id is provided, files are associated with that chat. If not provided, files are created as standalone uploads that can be linked to assistants later. An optional outlook_provenance text part carries version 1 OutlookFileProvenance JSON (maximum 64 KiB). It must occur exactly once before any files and applies to every file in the request. Upload files with different origins in separate requests. The original EWS ID query parameter remains independent; a containing email's ID never replaces it.

post/api/v1beta/me/files

Request

  • The document declares no server URL.
  • Auth
    none declared

Query parameters

chat_id, string

Optional chat ID to associate the file with. If not provided, creates standalone files.

external_id_ews_id, string

Optional external EWS ID to persist on each file in this request. Upload files with different IDs in separate requests.

Request body multipart/form-data

MultipartFormFile[] required
file, string binary required
name, string required
outlook_provenance, string

Optional version 1 OutlookFileProvenance JSON text (maximum 64 KiB). Send exactly once, before all file parts; applies to every file in this request. Files with different origins must be uploaded in separate requests.

Response

FileUploadResponse required

Response for file upload

files, FileUploadItem[] required

The list of uploaded files with their IDs and filenames

rejected_files, string[]

Filenames skipped by the configured operation policy.

Changes