Read site
get_siteRead-onlyIdempotent
Read a site: status and files (200 at a time); path: one file, paths: several, as_of or version for older copies; versions: true: who changed which files when; site_token: whether the site was claimed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | With versions: by this person (part of name or email) | |
| path | No | One file (live unless as_of or version) | |
| site | Yes | Site name, e.g. brave-otter-4821 | |
| as_of | No | With path(s): as live at this ISO date-time | |
| paths | No | Up to 20 files, 512 KB in all (the rest say not_read) | |
| since | No | With versions: after this ISO date-time | |
| before | No | With versions: older than this version number | |
| cursor | No | next_cursor from the last call | |
| prefix | No | Only files under this path | |
| version | No | With path(s): from this version number | |
| versions | No | true: change history, newest first, 200 at a time | |
| since_days | No | With versions: the last N days | |
| site_token | No | site_token from the first deploy (anonymous sites only) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | On failure (isError): {code, message} | |
| agent_message | No | ||
| confirm_token | No |