files

Link an external file (SharePoint, Google Drive, etc.) and return a file upload record

Changed on

This endpoint creates a file upload record that references an external file, allowing it to be used in chat messages or attached to assistants. If chat_id is provided, the file is associated with that chat. If not provided, the file is created as a standalone upload.

post/api/v1beta/me/files/link

Request

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

Request body

chat_idstring nullable

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

sourcestring required

The source/provider type: "sharepoint" (future: "google_drive", etc.)

Response

rejected_filesstring[]

Filenames skipped by the configured operation policy.

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status