Get File
Read a file’s metadata. A file past its expires_at answers 404.
Dark launch: requires the durable_runs_access entitlement (402 durable_runs_not_in_plan otherwise).
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
File id (prefixed external id, file_...).
Headers
Response headers
Response
The file’s media type, normalised from the upload. An agent can read
application/pdf, text/plain, text/markdown, text/html and
image/* inside a run; any other type is stored and served but
reports itself unreadable to the agent.
The file’s lifetime, declared at upload. ephemeral is working
material for a run and is deleted 14 days after upload; kept
survives until you delete it and carries no expires_at at all.
Only a kept file can be published at a path.
The API path the bytes stream from (prepend the API host).
The project the file belongs to; absent for the Default project.
The person this file was uploaded for. Only a run acting for that same person can read it. Absent means workspace-wide: any run in the workspace can.
The name a serving layer addresses this file by, unique among the
workspace’s live files. Slash-separated segments of letters, digits
and . _ ~ -; no leading slash and no ... Absent on a file
nothing publishes.
When an ephemeral file is deleted automatically, 14 days after
upload; after it passes, every read answers 404 and the bytes are
collected. Absent on a kept file, which does not expire -
rather than a far-future date you would have to recognise as “never”.