Skip to main content
GET
Get one file of an agent's file history

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

If-None-Match
string

Previously returned ETag. When it still identifies the current representation, the response is 304 with no body.

x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization 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.

Minimum string length: 1

Path Parameters

agentId
string<uuid>
required

Agent id (UUID) as returned by managedAgentsCreateAgent or managedAgentsListAgents.

fileId
string<uuid>
required

File id (UUID) as returned by managedAgentsSearchAgentFiles.

Response

OK

byteSize
integer<int64>
required

Size in bytes.

Required range: -9007199254740991 <= x <= 9007199254740991
contentState
enum<string>
required

How 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).

Available options:
indexed,
partial,
unsupported,
missing
createdAt
string<date-time>
required

When the file was saved.

fileId
string
required

The file's id, for read_agent_file and the file routes.

filename
string
required

The file's name.

mediaType
string
required

The file's media type.

ownerAgentId
string
required

The agent whose history holds the file.

path
string
required

Where the output sat under the outputs directory of the session that saved it.

rootSessionId
string
required

The session tree that saved the file.

sha256
string
required

SHA-256 of the file's contents.

metadata
object

Metadata the agent attached when it saved the file, without the reserved path key.

producerAgentVersionId
string

The agent version that session ran, when recorded.

producerSessionId
string

The session in that tree that wrote it, when recorded.

snippet
string

For a text search, a short excerpt around the first searched word, when found in the indexed text.