Skip to main content
POST
/
api
/
v3
/
preview
Render a document as PDF
curl --request POST \
  --url https://api.lighton.ai/api/v3/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=(binary)'

Documentation Index

Fetch the complete documentation index at: https://developers.lighton.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

The body is of type any.

Response

PDF rendered successfully. Response body is the raw PDF bytes.