Skip to content

About

The Official PandaDoc Node client SDK

Topics

Resources

Stars

18 stars

Watchers

1 watching

Forks

Latest commit

 

History

50 Commits

Folders and files

Repository files navigation

The Official PandaDoc Node client SDK

PandaDoc SDK spans a broad range of functionality to help you build incredible documents automation experiences inside your product.

Docs

Requirements

Node >= 12

Installation

From package manager:

npm install pandadoc-node-client

Or directly from the repository:

npm install git+https://github.com/PandaDoc/pandadoc-api-node-client.git

Getting Started

import * as pd_api from "pandadoc-node-client";

// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
    { authMethods: {apiKey: `API-Key ${API_KEY}`} }
);

const apiInstance = new pd_api.TemplatesApi(configuration);

apiInstance.listTemplates({ deleted: false, tag: ["doe-inc-proposals"] }).then((data) => {
  console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));

Authorization

apiKey

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://app.pandadoc.com/oauth2/authorize
  • Scopes:
  • read: View templates and document details.
  • write: Create, send, delete, and download documents.
  • read write: Request both (replaces deprecated read+write).

Examples

Documentation for API Endpoints

All URIs are relative to https://api.pandadoc.com

Class Method HTTP request Description
APILogsApi detailsLog GET /public/v1/logs/{log_id} Get Legacy API Log Details
APILogsApi detailsLogV2 GET /public/v2/logs/{log_id} Get API Log Details
APILogsApi listLogs GET /public/v1/logs List Legacy API Logs
APILogsApi listLogsV2 GET /public/v2/logs List API Logs
CommunicationPreferencesApi listRecentSmsOptOuts GET /public/v1/sms-opt-outs List Recent SMS Opt-Outs
ContactsApi createContact POST /public/v1/contacts Create contact
ContactsApi deleteContact DELETE /public/v1/contacts/{contact_id} Delete Contact
ContactsApi detailsContact GET /public/v1/contacts/{contact_id} Get Contact Details
ContactsApi listContacts GET /public/v1/contacts List contacts
ContactsApi updateContact PATCH /public/v1/contacts/{contact_id} Update Contact
ContentLibraryItemsApi createContentLibraryItem POST /public/v1/content-library-items Create Content Library Item
ContentLibraryItemsApi createContentLibraryItemFromUpload POST /public/v1/content-library-items?upload Create Content Library Item from File Upload
ContentLibraryItemsApi detailsContentLibraryItem GET /public/v1/content-library-items/{content_library_item_id}/details Get Content Library Item Details
ContentLibraryItemsApi listContentLibraryItems GET /public/v1/content-library-items List Content Library Item
ContentLibraryItemsApi statusContentLibraryItem GET /public/v1/content-library-items/{content_library_item_id} Content Library Item Status
CreateDocumentsApi createDocument POST /public/v1/documents Create Document
CreateDocumentsApi createDocumentFromUpload POST /public/v1/documents?upload Create Document from File Upload
DeleteDocumentsApi bulkDeleteDocuments DELETE /public/v1/documents Delete documents (bulk)
DeleteDocumentsApi deleteDocument DELETE /public/v1/documents/{document_id} Delete Document
DocumentAttachmentsApi createDocumentAttachment POST /public/v1/documents/{document_id}/attachments Create Document Attachment
DocumentAttachmentsApi createDocumentAttachmentFromUpload POST /public/v1/documents/{document_id}/attachments?upload Create Document Attachment From Upload
DocumentAttachmentsApi deleteDocumentAttachment DELETE /public/v1/documents/{document_id}/attachments/{attachment_id} Delete Document Attachment
DocumentAttachmentsApi detailsDocumentAttachment GET /public/v1/documents/{document_id}/attachments/{attachment_id} Get Document Attachment Details
DocumentAttachmentsApi downloadDocumentAttachment GET /public/v1/documents/{document_id}/attachments/{attachment_id}/download Download Document Attachment
DocumentAttachmentsApi listDocumentAttachments GET /public/v1/documents/{document_id}/attachments List Document Attachments
DocumentAuditTrailApi listDocumentAuditTrail GET /public/v2/documents/{document_id}/audit-trail List Document Audit Trail
DocumentDownloadAndExportApi createExportDocxTask POST /public/beta/documents/{document_id}/docx-export-tasks [Beta] Create DOCX Export Task
DocumentDownloadAndExportApi detailsDocxExportTask GET /public/beta/documents/{document_id}/docx-export-tasks/{task_id} [Beta] Get DOCX Export Task
DocumentDownloadAndExportApi downloadDocument GET /public/v1/documents/{document_id}/download Download Document
DocumentDownloadAndExportApi downloadProtectedDocument GET /public/v1/documents/{document_id}/download-protected Download Protected Document
DocumentEditingApi appendContentLibraryItemToDocument POST /public/v1/documents/{document_id}/append-content-library-item Append Content Library Item to a document
DocumentEditingApi createDocumentEditingSession POST /public/v1/documents/{document_id}/editing-sessions Create Document Editing Session
DocumentEditingApi updateDocument PATCH /public/v1/documents/{document_id} Update Document
DocumentFieldsApi createDocumentFields POST /public/v1/documents/{document_id}/fields Create Document Fields
DocumentFieldsApi listDocumentFields GET /public/v1/documents/{document_id}/fields List Document Fields
DocumentFieldsApi updateDocumentFieldsAssignment PATCH /public/v1/documents/{document_id}/fields Update Document Fields Assignment
DocumentFoldersApi createDocumentFolder POST /public/v1/documents/folders Create Document Folder
DocumentFoldersApi listDocumentFolders GET /public/v1/documents/folders List Document Folders
DocumentFoldersApi moveDocumentToFolder POST /public/v1/documents/{document_id}/move-to-folder/{folder_id} Move Document to Folder
DocumentFoldersApi updateDocumentFolder PUT /public/v1/documents/folders/{folder_id} Update Document Folder
DocumentLinkToCRMApi createDocumentLinkedObject POST /public/v1/documents/{document_id}/linked-objects Create Document Linked Object
DocumentLinkToCRMApi deleteDocumentLinkedObject DELETE /public/v1/documents/{document_id}/linked-objects/{linked_object_id} Delete Document Linked Object
DocumentLinkToCRMApi listDocumentLinkedObjects GET /public/v1/documents/{document_id}/linked-objects List Document Linked Objects
DocumentLinkToCRMApi listDocumentsByLinkedObject GET /public/v1/documents/linked-objects List Documents by Linked Object
DocumentLinkToCRMApi refreshDocumentLinkedObject POST /public/v1/documents/{document_id}/linked-objects/{linked_object_id}/refresh Refresh Document from Linked Object
DocumentOwnershipApi transferAllDocumentsOwnership PATCH /public/v1/documents/ownership Transfer All Documents Ownership
DocumentOwnershipApi transferDocumentOwnership PATCH /public/v1/documents/{document_id}/ownership Transfer Document Ownership
DocumentRecipientsApi createDocumentRecipient POST /public/v1/documents/{document_id}/recipients Add Document Recipient
DocumentRecipientsApi deleteDocumentRecipient DELETE /public/v1/documents/{document_id}/recipients/{recipient_id} Delete Document Recipient
DocumentRecipientsApi reassignDocumentRecipient POST /public/v1/documents/{document_id}/recipients/{recipient_id}/reassign Reassign Document Recipient
DocumentRecipientsApi updateDocumentRecipient PATCH /public/v1/documents/{document_id}/recipients/recipient/{recipient_id} Update Document Recipient
DocumentRemindersApi createManualReminder POST /public/v1/documents/{document_id}/send-reminder Send Manual Reminder
DocumentRemindersApi getDocumentAutoReminderSettings GET /public/v1/documents/{document_id}/auto-reminders Get Document Auto Reminder Settings
DocumentRemindersApi statusDocumentAutoReminder GET /public/v1/documents/{document_id}/auto-reminders/status Document Auto Reminder Status
DocumentRemindersApi updateDocumentAutoReminderSettings PATCH /public/v1/documents/{document_id}/auto-reminders Update Document Auto Reminder Settings
DocumentSectionsApi createDocumentSection POST /public/v1/documents/{document_id}/sections/uploads Create Document Section
DocumentSectionsApi createDocumentSectionFromUpload POST /public/v1/documents/{document_id}/sections/uploads?upload Create Document Section from File Upload
DocumentSectionsApi deleteDocumentSection DELETE /public/v1/documents/{document_id}/sections/{section_id} Delete Document Section
DocumentSectionsApi detailsDocumentSection GET /public/v1/documents/{document_id}/sections/{section_id} Document Section Details
DocumentSectionsApi listDocumentSections GET /public/v1/documents/{document_id}/sections List Document Sections
DocumentSectionsApi statusDocumentSectionUpload GET /public/v1/documents/{document_id}/sections/uploads/{upload_id} Get Document Section Upload Status
DocumentSettingsApi getDocumentSettings GET /public/v2/documents/{document_id}/settings Get Document Settings
DocumentSettingsApi updateDocumentSettings PATCH /public/v2/documents/{document_id}/settings Update Document Settings
FormsApi listForms GET /public/v1/forms List Forms
ManageDocumentStatusApi revertDocumentToDraft POST /public/v1/documents/{document_id}/draft Move Document to Draft
ManageDocumentStatusApi updateDocumentStatus PATCH /public/v1/documents/{document_id}/status Update Document Status
ManageDocumentStatusApi updateDocumentStatusWithUpload PATCH /public/v1/documents/{document_id}/status?upload Update Document Status with Upload
MembersApi createMember POST /public/v1/workspaces/{workspace_id}/members Create Workspace Member
MembersApi createMemberToken POST /public/v1/members/{member_id}/token Create Member Token
MembersApi deleteMember DELETE /public/v1/workspaces/{workspace_id}/members/{member_id} Delete Workspace Member
MembersApi detailsCurrentMember GET /public/v1/members/current Get Current Member Details
MembersApi detailsMember GET /public/v1/members/{member_id} Get Member Details
MembersApi listMembers GET /public/v1/members List Members
MembersApi updateMemberRole PATCH /public/v1/workspaces/{workspace_id}/members/{member_id}/role Update Workspace Member Role
NotaryApi createNotarizationRequest POST /public/v2/notary/notarization-requests Create Notarization Request
NotaryApi deleteNotarizationRequest DELETE /public/v2/notary/notarization-requests/{session_request_id} Delete Notarization Request
NotaryApi detailsNotarizationRequest GET /public/v2/notary/notarization-requests/{session_request_id} Get Notarization Request Details
NotaryApi listNotaries GET /public/v2/notary/notaries List Notaries
NotaryApi listNotarizationRequests GET /public/v2/notary/notarization-requests List Notarization Requests
ProductCatalogApi createCatalogItem POST /public/v2/product-catalog/items Create Catalog Item
ProductCatalogApi deleteCatalogItem DELETE /public/v2/product-catalog/items/{item_uuid} Delete Catalog Item
ProductCatalogApi getCatalogItem GET /public/v2/product-catalog/items/{item_uuid} Catalog Item Details
ProductCatalogApi searchCatalogItems GET /public/v2/product-catalog/items/search Search Catalog Items
ProductCatalogApi updateCatalogItem PATCH /public/v2/product-catalog/items/{item_uuid} Update Catalog Item
QuotesApi batchUpdateQuotes PATCH /public/v1/documents/{document_id}/quotes [Beta] Update Multiple Quotes
QuotesApi updateQuote PUT /public/v1/documents/{document_id}/quotes/{quote_id} Quote update
RetrieveDocumentsDetailsApi detailsDocument GET /public/v1/documents/{document_id}/details Get Document Details
RetrieveDocumentsDetailsApi getDocumentEsignDisclosure GET /public/v1/documents/{document_id}/esign-disclosure Document eSign disclosure
RetrieveDocumentsDetailsApi listDocuments GET /public/v1/documents List Documents
RetrieveDocumentsDetailsApi statusDocument GET /public/v1/documents/{document_id} Get Document Status
SendSignDocumentsApi createDocumentSigningSession POST /public/v1/documents/{document_id}/session Create Document Signing Session
SendSignDocumentsApi sendDocument POST /public/v1/documents/{document_id}/send Send Document
TemplateApprovalWorkflowsApi getTemplateApprovalWorkflow GET /public/beta/templates/{template_id}/approval-workflow [Beta] Get Template Approval Workflow
TemplateApprovalWorkflowsApi updateTemplateApprovalWorkflow PUT /public/beta/templates/{template_id}/approval-workflow [Beta] Update Template Approval Workflow
TemplateFoldersApi createTemplateFolder POST /public/v1/templates/folders Create Template Folder
TemplateFoldersApi listTemplateFolders GET /public/v1/templates/folders List Template Folders
TemplateFoldersApi updateTemplateFolder PUT /public/v1/templates/folders/{folder_id} Update Template Folder
TemplateSettingsApi getTemplateSettings GET /public/v2/templates/{template_id}/settings Get Template Settings
TemplateSettingsApi getTemplateShares GET /public/v1/templates/{template_id}/shares Get Template Sharing Settings
TemplateSettingsApi updateTemplateSettings PATCH /public/v2/templates/{template_id}/settings Update Template Settings
TemplateSettingsApi updateTemplateSharingSettings PUT /public/v1/templates/{template_id}/shares Update Template Sharing Settings
TemplatesApi createTemplate POST /public/v1/templates Create Template
TemplatesApi createTemplateEditingSession POST /public/v1/templates/{template_id}/editing-sessions Create Template Editing Session
TemplatesApi createTemplateFromUpload POST /public/v1/templates?upload Create Template from File Upload
TemplatesApi deleteTemplate DELETE /public/v1/templates/{template_id} Delete Template
TemplatesApi detailsTemplate GET /public/v1/templates/{template_id}/details Template Details
TemplatesApi duplicateTemplate POST /public/v1/templates/{template_id}/duplicate Duplicate Template
TemplatesApi listTemplates GET /public/v1/templates List Templates
TemplatesApi statusTemplate GET /public/v1/templates/{template_id} Template Status
TemplatesApi updateTemplate PATCH /public/v1/templates/{template_id} Update Template
UsersApi createAccessToken POST /oauth2/access_token Create Access Token
UsersApi createApiKey POST /public/v1/workspaces/{workspace_id}/api-keys Create API Key
UsersApi createUser POST /public/v1/users Create User
UsersApi createWorkspace POST /public/v1/workspaces Create Workspace
UsersApi deactivateWorkspace POST /public/v1/workspaces/{workspace_id}/deactivate Deactivate Workspace
UsersApi detailsUser GET /public/v1/users/{user_id} Get User Details
UsersApi listUsers GET /public/v1/users List Users
UsersApi listWorkspaces GET /public/v1/workspaces List Workspaces
UsersApi updateWorkspace PATCH /public/beta/workspaces/{workspace_id} [Beta] Update Workspace
WebhookEventsApi detailsWebhookEvent GET /public/v1/webhook-events/{webhook_event_id} Webhook Event Details
WebhookEventsApi listWebhookEvents GET /public/v1/webhook-events List Webhook Events
WebhookSubscriptionsApi createWebhookSubscription POST /public/v1/webhook-subscriptions Create Webhook Subscription
WebhookSubscriptionsApi deleteWebhookSubscription DELETE /public/v1/webhook-subscriptions/{webhook_subscription_id} Delete Webhook Subscription
WebhookSubscriptionsApi detailsWebhookSubscription GET /public/v1/webhook-subscriptions/{webhook_subscription_id} Get Webhook Subscription Details
WebhookSubscriptionsApi listWebhookSubscriptions GET /public/v1/webhook-subscriptions List Webhook Subscriptions
WebhookSubscriptionsApi updateWebhookSubscription PATCH /public/v1/webhook-subscriptions/{webhook_subscription_id} Update Webhook Subscription
WebhookSubscriptionsApi updateWebhookSubscriptionSharedKey PATCH /public/v1/webhook-subscriptions/{webhook_subscription_id}/shared-key Update Webhook Subscription Shared Key
WorkspacePrivacySettingsApi getWorkspacePrivacySettings GET /public/beta/privacy-settings/workspaces/{workspace_id} [Beta] Workspace Privacy Settings Details
WorkspacePrivacySettingsApi updateWorkspacePrivacySettings PATCH /public/beta/privacy-settings/workspaces/{workspace_id} [Beta] Update Workspace Privacy Settings

License

SDK is licensed under the MIT License.

About

The Official PandaDoc Node client SDK

Topics

Resources

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages