Skip to main content
GET
Get an earlier version

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

agent_id
string
required

The agent’s id, e.g. billing.

revision_id
string
required

Query Parameters

download
enum<string>
Available options:
1

Response

OK

An earlier version of an agent's file: as it was just before a change replaced it (change written) or deleted it (deleted). The newest 10 a file are kept; they go with the agent.

object
any
id
string
Example:

"frv_8Kd2mQ1xZp4LwRt7"

agent_id
string
path
string
Example:

"/stock/counts.xlsx"

change
enum<string>
Available options:
written,
deleted
bytes
integer
kind
enum<string>
Available options:
text,
spreadsheet,
document,
slides,
pdf,
image
content_type
string
saved_at
string<date-time>

When this version was saved.

saved_by
Person · object

Who wrote the file: a person, an API key, or the agent itself (task_id; with procedure and conversation_id when a procedure let it).

replaced_at
string<date-time>

When the change after it was made.

replaced_by
Person · object

Who wrote the file: a person, an API key, or the agent itself (task_id; with procedure and conversation_id when a procedure let it).

content
string | null

With one revision: its text (an Office file's read-out text), or null for a PDF or an image. Download its bytes with ?download=1.