Preview a file as PDF
Converts an Office binary file (.docx, .xlsx, .pptx, etc.) in the session’s S3 prefix to PDF via LibreOffice and returns the PDF bytes. Results are cached by S3 ETag — subsequent requests for the same file version are served from disk. The JWT may be passed as an ?auth= query parameter (instead of the Authorization header) so <iframe> elements can load the PDF directly. Requires read access to the session and the key must belong to the session prefix.
Authorizations
Organisation API key. Format: sk_<secret>/<keyname> — the secret portion, a literal slash, and the human-readable key name. The header exulu-api-key is accepted as an alias. A Bearer prefix is tolerated and stripped. Keys with an agent scope are only valid for the scoped agent instance.
Path Parameters
Agent session ID (UUID).
Query Parameters
Full S3 object key of the Office file to convert.
Bearer JWT as an alternative to the Authorization header. Use this when loading the PDF in an <iframe>.
Response
PDF bytes of the converted file.
The response is of type file.