Skip to main content
POST
Attach an input file

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

The unique identifier of the agent

Body

multipart/form-data
file
file
required

The file to attach (at most 50 MB)

Response

File attached

A file attached to an agent (input) or produced by a run (output). url is an absolute, signed download link on the API host; input files can also be fetched with GET /agents/{id}/files/{file_id}.

id
string<uuid>
filename
string
byte_size
integer
content_type
string
created_at
string<date-time>
url
string

Absolute signed download URL on the API host (e.g. https://api.endclose.com/rails/active_storage/blobs/redirect/...). Fetching it needs no credentials; it 302s to a short-lived object-storage URL.