---
title: "Pdf Proxy"
method: GET
path: "/pdf-viewer/p/{encoded}"
tags: ["pdf-viewer"]
---

# Pdf Proxy

`GET /pdf-viewer/p/{encoded}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/pdf-viewer/p/{encoded}`
- Auth: none declared

Stream an external PDF through our origin.

Used by ``/pdf-viewer/web/viewer.html?file=/pdf-viewer/p/<b64-url>``
to sidestep pdf.js's same-origin file-loading check. Path-segment
encoding (vs ``?url=...``) avoids pdf.js mangling the ``?`` to
``%3F``.

## Path parameters

- `encoded` string, required: URL-safe-base64-encoded external PDF URL.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
