{"library":"pandadoc-node-client","title":"PandaDoc Node.js SDK","description":"The `pandadoc-node-client` is the official Node.js SDK for interacting with the PandaDoc API. It provides a comprehensive set of functionalities to programmatically manage documents, templates, content library items, webhooks, and other core PandaDoc resources directly from a Node.js environment. The current stable major version is 6.2.0, with version 7.x actively under development in release candidate stages, which introduces significant new features like a Content Library API and improved document section management. The SDK is generated to align with the PandaDoc OpenAPI Specification, ensuring it remains up-to-date with underlying API changes. Its release cadence is primarily driven by API updates and the introduction of new platform features rather than a fixed schedule. As an official SDK, it offers a reliable, type-safe experience for TypeScript users, providing robust auto-completion and compile-time checks, positioning it as a well-supported integration tool.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install pandadoc-node-client"],"cli":null},"imports":["import { Configuration } from 'pandadoc-node-client';","import { DocumentsApi } from 'pandadoc-node-client';","import { CreateDocumentFromTemplateRequest } from 'pandadoc-node-client';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { Configuration, DocumentsApi } from 'pandadoc-node-client';\n\nconst PANDADOC_API_KEY = process.env.PANDADOC_API_KEY ?? '';\n\nasync function listPandaDocDocuments() {\n  if (!PANDADOC_API_KEY) {\n    console.error('PANDADOC_API_KEY environment variable is not set.');\n    process.exit(1);\n  }\n\n  const config = new Configuration({\n    apiKey: PANDADOC_API_KEY,\n    basePath: 'https://api.pandadoc.com'\n  });\n\n  const documentsApi = new DocumentsApi(config);\n\n  try {\n    console.log('Fetching PandaDoc documents...');\n    const response = await documentsApi.listDocuments();\n    console.log(`Successfully retrieved ${response.results?.length ?? 0} documents.`);\n    if (response.results && response.results.length > 0) {\n      console.log('First document ID:', response.results[0].id);\n      console.log('First document Name:', response.results[0].name);\n    }\n    return response.results;\n  } catch (error) {\n    console.error('Failed to fetch documents:', error);\n    if (error.response?.data) {\n      console.error('API Error Details:', error.response.data);\n    }\n    throw error;\n  }\n}\n\nlistPandaDocDocuments();","lang":"typescript","description":"Demonstrates initializing the PandaDoc client with an API key and fetching a list of existing documents.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}