files

Upload Agent File

Push a file from the user into the agent's container.

Two modes:

  • Chat attachment (no dest_dir): writes into the framework inbox with a timestamp prefix and notifies the agent via /chat.
  • File-manager upload (dest_dir under /data): writes into that exact directory keeping the original name, no chat notice.

Returns the in-container path the file landed at.

post/api/agents/{agent_id}/files/upload

Request

  • Base URL
    https://api.maritime.sh (the document declares no server; this is the origin it was published from)
  • URL
    https://api.maritime.sh/api/agents/{agent_id}/files/upload
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

Request body multipart/form-data

filestring binary required
messagestring nullable
dest_dirstring nullable

Response

Successful Response

unknown required

Changes

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