documents

Get Document Content

Stream a document's raw PDF bytes to its owner.

Built for the field-placement editor's pdf.js viewer, which needs the sender's own upload rendered in the browser -- something no route here offered before (signers get their copy via the token-scoped GET /api/sign/{token}/document in signing.py; the owner had nothing).

Deliberately type-agnostic: every documents row this queries -- draft, template, one_off alike -- has its bytes at gcs_path, so ownership is the only thing gating this route, not document_type.

get/api/documents/{document_id}/content

Request

  • Base URL: https://zsign.io (the document declares no server; this is the origin it was published from)
  • URL: https://zsign.io/api/documents/{document_id}/content
  • Auth: HTTP bearer

Path parameters

document_idstring uuid required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.