Inline document preview
Returns the document binary with `Content-Disposition: inline` and a `Content-Security-Policy: frame-ancestors` header, so the file can be rendered inside an iframe by the Dashboard document viewer. Same tenant-scoped ownership check as the file download.
GET
/v1/documents/:id/preview Authorization
Authorization string header required API key in the format
ll_.... Pass as a Bearer token. Responses
200
Success
400
INVALID_INPUT Required fields are missing or values do not match the expected format.
404
NOT_FOUND The requested resource was not found.
GET
cURL /v1/documents/:id/preview -cmd">curl --request -method">GET -punct">\
--url 'https://api.ledgerlou.de/v1/documents/:id/preview' -punct">\
--header 'Authorization: Bearer ll_your_key' 200 Response
JSON Binary file with `Content-Type` (e.g. `application/pdf`) and `Content-Disposition: inline; filename="originalname.pdf"`.