Contracts
Download a contract PDF
GET /v1/billing/contracts/{ext_id}/pdf returns the file. The API key is required. pdf_url is always null.
curl -L https://api-dev.lucius.finance/v1/billing/contracts/acme-corp-2026/pdf \
-H "Authorization: Bearer luc_live_YOUR_KEY" \
-o contract.pdfAuthorizationBearer <token>
API key as Bearer token: Authorization: Bearer luc_live_.... Create keys in the dashboard under Settings > API Keys.
In: header
Path Parameters
ext_id*string
The external ID of the contract.
Response Body
application/pdf
application/json
application/json
curl -X GET "https://example.com/v1/billing/contracts/acme-corp-2026/pdf""string"{ "error": "Missing API key"}{ "error": "Not found"}