Skip to content

Download Library Document

GET
/library/documents/{document_id}/download

The document’s ORIGINAL bytes, with its own content type.

The one route on this surface that is NOT the ApiResponse envelope: a PDF wrapped in JSON is not a PDF. Same precedent as GET /knowledge/export. Content type and filename come from the stored document, so a text document comes back as text and a PDF as a PDF.

Authorizations

Parameters

Path Parameters

document_id
required

Document id.

string

Document id.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string