Get one file of an agent's file history
Returns one session output from this agent’s file history. A file of another agent, of another organization, or outside the history answers 404.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Previously returned ETag. When it still identifies the current representation, the response is 304 with no body.
Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Path Parameters
Agent id (UUID) as returned by managedAgentsCreateAgent or managedAgentsListAgents.
File id (UUID) as returned by managedAgentsSearchAgentFiles.
Response
OK
Size in bytes.
-9007199254740991 <= x <= 9007199254740991How much of the file's text content search covers: indexed in full, partial up to the extraction cap, unsupported format, or missing (not yet extracted).
indexed, partial, unsupported, missing When the file was saved.
The file's id, for read_agent_file and the file routes.
The file's name.
The file's media type.
The agent whose history holds the file.
Where the output sat under the outputs directory of the session that saved it.
The session tree that saved the file.
SHA-256 of the file's contents.
Metadata the agent attached when it saved the file, without the reserved path key.
The agent version that session ran, when recorded.
The session in that tree that wrote it, when recorded.
For a text search, a short excerpt around the first searched word, when found in the indexed text.