Authorization: API-Key <key>, which the plugin sets for you.
Creating a document from a template or PDF URL is asynchronous: the create call answers immediately with document.create_pending, and the document reaches document.draft a few seconds later. Listen for the document_state_changed webhook (subscribe with webhooks.createSubscription, and store the subscription’s shared_key) or poll documents.get.
Document creation by file upload (multipart) and the OAuth flow are not part of this plugin; neither are the member, workspace, content-library, catalog, section, quote and notarization endpoints.
Every operation is described in PandaDoc’s API reference: https://developers.pandadoc.com/reference/about
What you get:
- 26 typed API operations
- 1 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the PandaDoc API key before the first call: More: API Key
pnpm corsair setup --plugin=pandadoc --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.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
Read a documentWebhooks
This plugin registers 1 webhook event type. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
pandadoc.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.