Upload file attachment

Upload a file attachment for an agent thread. Supports various file types including documents, images, and text files up to 50MB.

post/v1/files/upload

Request

  • Base URL
    https://api.runbear.io
  • Auth
    HTTP bearer

Request body multipart/form-data

assistant_idstring uuid required

Unique identifier of the agent

thread_idstring uuid required

Unique identifier of the thread

Example request

{
  "assistant_id": "0fade940-133f-49e6-bf4b-8f662186479b",
  "thread_id": "0fade940-133f-49e6-bf4b-8f662186479b"
}

Response

Default Response

urlstring uri required

Public URL of the uploaded file

namestring required

Path name of the uploaded file

contentTypestring required

MIME type of the uploaded file

Changes

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