Attach an input file
Changed onAttaches one file to the agent's input files — the same files the app's agent form manages under "Files". Every run lists the agent's input files in its prompt and can download them, so this is how to hand an agent a mapping table, a prior statement, or any reference material. Send multipart/form-data with a single file part; call once per file. Limits match the app: 50 MB per file, 20 files per agent, any content type (JSON is fine as an input). A file whose name matches an existing input file is added as a second file, not a replacement — delete the old one first to replace it.
post/agents/{id}/files
Request
- Base URLhttps://api.endclose.com/v1
- AuthAPI key in header X-API-KEY
Path parameters
idstring required
The unique identifier of the agent
Request body multipart/form-data
Response
File attached
Changes
- info
endpoint added
- info