Skip to main content
Use PDFLess through Corsair: one client, typed API calls, local DB sync. Auth is the apikey header on https://api.pdfless.com. With no key stored, Corsair raises AuthMissingError before any request; a key PDFLess rejects comes back as HTTP 401 (“No API key found in request” when the header is empty). pdfs.generate renders one document against the workspace quota (workspace.get shows remainingQuota), so it is destructive; its download_url expires at expires. Template data and PDF passwords are kept out of errors and events. The workspace model has no id, so a workspace row is stored only when name is present. A template row is stored only when id is present. What you get:
  • 3 typed API operations
  • 2 synced entities (templates, workspaces) for fast .search() / .list()

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List document templates
Render an invoice PDF from a template
See the full list on the API page.

Query synced data

Synced entities support tenant.pdfless.db.<entity>.search() and .list(): templates, workspaces. See Database for filters and operators.

What’s next

API reference

Every pdfless.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.