documents

Get Document Preview Url

Mint a short-lived signed URL for previewing a stored document file.

Replaces appweb's Next /api/documents/preview proxy: the browser fetches this (Bearer JWT) and uses the returned URL directly as an <img>/link source. Access to the private documents bucket is gated at mint time by _authorize_document_preview - the R2 backend presigns without storage-RLS, so the old create-signed-url gate no longer holds. TTL matches the old route (1h).

get/documents/preview-url

Request

  • Base URL
    https://api.projectindi.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Query parameters

urlstring required
bucket'documents' | 'public-documents'

Response

Successful Response

signed_urlstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.