Get a signed inline-view URL for a document asset
Returns a short-lived signed URL for rendering a `document` asset inline in the viewer. Serves the processed `media` derivative (an optimised PDF with permission flags stripped), not the original — downloads of the original go through `POST /assets/download`. Requires `canGetAsset`. The asset must be `active`, have `mediaType: 'document'`, and have an active `media` file (i.e. post-processing finished successfully); otherwise a 400 is returned and the document cannot be viewed inline. The `media` PDF is capped at a maximum page count, so `pagesTruncated`, `truncatedFrom` and `originalPageCount` tell the viewer whether and where pages are missing.
Returns a short-lived signed URL for rendering a document asset inline in the
viewer. Serves the processed media derivative (an optimised PDF with permission
flags stripped), not the original — downloads of the original go through
POST /assets/download. Requires canGetAsset.
The asset must be active, have mediaType: 'document', and have an active
media file (i.e. post-processing finished successfully); otherwise a 400 is
returned and the document cannot be viewed inline.
The media PDF is capped at a maximum page count, so pagesTruncated,
truncatedFrom and originalPageCount tell the viewer whether and where pages
are missing.
Authorization
bearerAuth In: header
Path Parameters
ID of the document asset to view.
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/document-url"{ "url": "string", "expires": 1705988395, "pageCount": 0, "pagesTruncated": true, "truncatedFrom": "start", "originalPageCount": 0}