Read an original Library file shared with the API caller [read]

Changed on

Uses the caller's personal ast_ key, never a browser cookie. Requires the exact workspace membership and individual grant or workspace access. A workspace-scoped key cannot act in another audience workspace. raw=1 or download=1 streams original bytes. JSON snapshots expose source text or native Office bytes; private isolated browser grants require a browser login. A path query is rejected; choose the exact original file in the link ref.

get/library/shared/{token}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/library/shared/{token}
  • Auth
    HTTP bearer

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