Read a publicly shared original Library file

Changed on

No cookie or API key is required. Returns a view-only document snapshot; raw=1 or download=1 streams the original bytes with Range support. Source-owner permissions and link revocation are rechecked for every request. Transport URLs stay server-side. A path query is rejected: the token reads only the granted original file, not its siblings.

get/library/public/{token}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/library/public/{token}
  • Auth
    none required

Path parameters

tokenstring required

Query parameters

raw'1'
download'1'

Headers

Rangestring

Response

Snapshot or original file bytes

namestring required
format'file' | 'site' required
mediaTypestring required
revisionstring required
editableboolean required
urlstring required

Same API path with raw=1; the original bytes, never a storage credential.

maxBytesinteger required
textstring nullable
htmlstring
officestring

Native Office source bytes as base64 when supported.

historyobject[] required
previewUrlstring

Isolated browser preview when the reader has the required browser session, or the link is public.

previewUnavailablestring nullable
sizeBytesinteger
sharedBystring nullable

Changes