PandaDoc Setup
Create a PandaDoc OAuth app to manage documents, templates, contacts, and e-signatures through Fp Switchboard.
Prerequisites
Section titled “Prerequisites”- PandaDoc account (Business plan or higher for API access)
- Access to PandaDoc Developers
Setup Steps
Section titled “Setup Steps”-
Access Developer Portal
Go to PandaDoc Developers and sign in with your PandaDoc account.
-
Create an OAuth Application
Create a new application in the developer portal.
-
Configure App Settings
- App name: Fp Switchboard
- Description: MCP integration for document management
-
Add Redirect URI
Add the OAuth callback URL:
https://api.switchboard.fpdigital.ai/oauth/pandadoc/callback -
Enable Permissions
Enable read and write access for:
- Documents
- Templates
- Contacts
-
Copy Credentials
Copy the Client ID and Client Secret.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put PANDADOC_CLIENT_IDnpx wrangler secret put PANDADOC_CLIENT_SECRET| Variable | Description |
|---|---|
PANDADOC_CLIENT_ID | OAuth Client ID from PandaDoc Developer Portal |
PANDADOC_CLIENT_SECRET | OAuth Client Secret from PandaDoc Developer Portal |
Redirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/pandadoc/callbackImportant Notes
Section titled “Important Notes”- Access tokens expire after 1 hour
- Refresh tokens are used automatically
- Document creation supports templates with pre-filled fields
Common Issues
Section titled “Common Issues”- “API access not available” error: Your PandaDoc plan may not include API access. Upgrade to Business plan or higher.
- Template fields: When creating documents from templates, field names must exactly match the template’s field definitions.
- Document status: Documents go through states (draft, sent, viewed, completed). Some operations are only available in certain states.
Testing
Section titled “Testing”- Go to your Switchboard Dashboard and navigate to PandaDoc
- Click Connect and authorize
- Click Test Connection to verify
- Try: “List my PandaDoc documents” or “Create a document from template”