Use this file to discover all available pages before exploring further.
Workspace files are shared with the file library in the Phrony dashboard. From the API you upload bytes out of band to object storage, then finalize the object so the runtime can resolve it for your agent runs.Requirements: The same X-API-Key must be used for presign, finalize, and run calls. The key must have Allow file uploads enabled. Otherwise POST to these routes returns 403.Paths are under /v1/file-library (relative to your API base URL).
Issue an HTTP PUT to uploadUrl with the exactrequiredHeaders from the presign response. For browser or typical fetch uploads, do not rely on a fixed Content-Length baked into the signed URL; the uploader should set length from the file.
After finalize, pass a file reference in POST /v1/agents/{agentId}/runs body under input. Use the leaf file name (the segment after the last / in objectKey, for example a UUID name with extension), not a full path.phronyFile object in input (field name is up to your agent schema, e.g. document):
Field
Type
Required
Description
phronyFile
true
Yes
Must be the literal true.
filename
string
Yes
Leaf name only (same as the last segment of objectKey), not a full path.
For POST /v1/runs/{runId}/messages (or …/input), attach finalized files with the files[] shape in Runs API — Send input or messages (phronyFile, objectKey, optional filename / mediaType).
The PUT to uploadUrl must send every key/value in requiredHeaders from the presign response. Size maxContentLength must be at least the real byte size of the file.