> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dekasign.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview a private prepared PDF

> Memerlukan scope documents:read. Sandbox dan konfigurasi Production yang didukung; allowlist aplikasi dan kewenangan pemohon tetap berlaku.



## OpenAPI

````yaml /openapi-id.json get /api/v1/approval-requests/document-preparations/{id}/content
openapi: 3.0.3
info:
  title: DekaSign integration and session API
  version: '2026-10-28'
  description: >-
    API Production memerlukan paket berbayar aktif, key/aplikasi Production,
    cakupan dan kapabilitas yang diizinkan. Operasi manajemen desain tertentu
    hanya untuk sandbox. Desain template dan keputusan approval manusia tidak
    diambil alih API key. Rute sesi memakai identitas terpisah. Spesifikasi ini
    tidak memberikan akses atau mengaktifkan kapabilitas.
servers:
  - url: https://{workspace}.dekasign.com
    description: Gunakan workspace organisasi yang diizinkan untuk aplikasi integrasi Anda.
    variables:
      workspace:
        default: your-workspace
security: []
paths:
  /api/v1/approval-requests/document-preparations/{id}/content:
    get:
      tags:
        - approval-requests
      summary: Preview a private prepared PDF
      description: >-
        Memerlukan scope documents:read. Sandbox dan konfigurasi Production yang
        didukung; allowlist aplikasi dan kewenangan pemohon tetap berlaku.
      operationId: get_approval_requests_document_preparations_id_content
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identitas dalam lingkup workspace.
        - name: X-Dekasign-Environment
          in: header
          required: true
          schema:
            type: string
            enum:
              - sandbox
              - production
      responses:
        '200':
          description: Data berkas PDF privat.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '400':
          description: Operasi atau layout tidak valid.
        '401':
          description: Kredensial/sesi tidak valid atau kedaluwarsa.
        '403':
          description: Scope, environment, tenant atau kewenangan ditolak.
        '404':
          description: Tidak ditemukan atau di luar lingkup aplikasi.
        '409':
          description: Versi kedaluwarsa, masih digunakan aktif atau konflik idempotensi.
        '422':
          description: Schema atau idempotency key wajib tidak valid.
        '429':
          description: Batas laju permintaan tercapai.
        '503':
          description: Sandbox tidak aktif atau operasi sementara tidak tersedia.
      security:
        - SandboxBearer: []
        - ProductionBearer: []
components:
  securitySchemes:
    SandboxBearer:
      type: http
      scheme: bearer
      description: Key sandbox dks_test_, hanya untuk server.
    ProductionBearer:
      type: http
      scheme: bearer
      description: Key Production dks_live_, hanya di server.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.