Skip to content

Repository files navigation

The Official PandaDoc Python client SDK

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

Docs

Requirements

Python >= 3.6

Installation

pip install

If the python package is hosted on a repository, you can install directly using:

pip install pandadoc-python-client

(you may need to run pip with root permission: sudo pip install pandadoc-python-client)

Then import the package:

importpandadoc_client

Getting Started

frompprintimportpprintimportpandadoc_clientfrompandadoc_client.apiimporttemplates_api# Configure API key authorization: apiKeyapi_key="YOUR_API_KEY"# Defining the host is optional and defaults to https://api.pandadoc.com# See configuration.py for a list of all supported configuration parameters.cfg=pandadoc_client.Configuration(
host="https://api.pandadoc.com",
api_key={"apiKey": f"API-Key {api_key}"},
)
# Enter a context with an instance of the API clientwithpandadoc_client.ApiClient(cfg) asapi_client:
# Create an instance of the API classapi_instance=templates_api.TemplatesApi(api_client)
try:
resp=api_instance.list_templates(tag=["doe-inc-proposals"])
pprint(resp)
exceptpandadoc_client.ApiExceptionase:
pprint("Exception when calling TemplatesApi->list_templates: %s\n"%e)

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+write: Use read+write to create, send, delete, and download documents, and read to view templates and document details.

Examples

Docs

Official PandaDoc public API docs

https://developers.pandadoc.com/reference/about

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
APILogsApidetails_logGET /public/v1/logs/{id}Details API Log
APILogsApilist_logsGET /public/v1/logsList API Log
ContactsApicreate_contactPOST /public/v1/contactsCreate contact
ContactsApidelete_contactDELETE /public/v1/contacts/{id}Delete contact by id
ContactsApidetails_contactGET /public/v1/contacts/{id}Get contact details by id
ContactsApilist_contactsGET /public/v1/contactsList contacts
ContactsApiupdate_contactPATCH /public/v1/contacts/{id}Update contact by id
ContentLibraryItemsApidetails_content_library_itemGET /public/v1/content-library-items/{id}/detailsDetails Content Library Item
ContentLibraryItemsApilist_content_library_itemsGET /public/v1/content-library-itemsList Content Library Item
DocumentAttachmentsApicreate_document_attachmentPOST /public/v1/documents/{id}/attachmentsDocument Attachment Create
DocumentAttachmentsApidelete_document_attachmentDELETE /public/v1/documents/{id}/attachments/{attachment_id}Document Attachment Delete
DocumentAttachmentsApidetails_document_attachmentGET /public/v1/documents/{id}/attachments/{attachment_id}Document Attachment Details
DocumentAttachmentsApidownload_document_attachmentGET /public/v1/documents/{id}/attachments/{attachment_id}/downloadDocument Attachment Download
DocumentAttachmentsApilist_document_attachmentsGET /public/v1/documents/{id}/attachmentsDocument Attachment List
DocumentRecipientsApiadd_document_recipientPOST /public/v1/documents/{id}/recipientsAdd Document Recipient
DocumentRecipientsApidelete_document_recipientDELETE /public/v1/documents/{id}/recipients/{recipient_id}Delete Document Recipient
DocumentRecipientsApiedit_document_recipientPATCH /public/v1/documents/{id}/recipients/recipient/{recipient_id}Edit Document Recipient
DocumentRecipientsApireassign_document_recipientPOST /public/v1/documents/{id}/recipients/{recipient_id}/reassignReassign Document Recipient
DocumentsApichange_document_statusPATCH /public/v1/documents/{id}/statusDocument status change
DocumentsApicreate_documentPOST /public/v1/documentsCreate document
DocumentsApicreate_document_linkPOST /public/v1/documents/{id}/sessionCreate a Document Link
DocumentsApicreate_linked_objectPOST /public/v1/documents/{id}/linked-objectsCreate Linked Object
DocumentsApidelete_documentDELETE /public/v1/documents/{id}Delete document by id
DocumentsApidelete_linked_objectDELETE /public/v1/documents/{id}/linked-objects/{linked_object_id}Delete Linked Object
DocumentsApidetails_documentGET /public/v1/documents/{id}/detailsDocument details
DocumentsApidocument_move_to_folderPOST /public/v1/documents/{id}/move-to-folder/{folder_id}Document move to folder
DocumentsApidownload_documentGET /public/v1/documents/{id}/downloadDocument download
DocumentsApidownload_protected_documentGET /public/v1/documents/{id}/download-protectedDownload document protected
DocumentsApilist_documentsGET /public/v1/documentsList documents
DocumentsApilist_linked_objectsGET /public/v1/documents/{id}/linked-objectsList Linked Objects
DocumentsApisend_documentPOST /public/v1/documents/{id}/sendSend Document
DocumentsApistatus_documentGET /public/v1/documents/{id}Document status
DocumentsApitransfer_all_documents_ownershipPATCH /public/v1/documents/ownershipTransfer all documents ownership
DocumentsApitransfer_document_ownershipPATCH /public/v1/documents/{id}/ownershipUpdate document ownership
DocumentsApiupdate_documentPATCH /public/v1/documents/{id}Update Document only in the draft status
FoldersAPIApicreate_document_folderPOST /public/v1/documents/foldersCreate Documents Folder
FoldersAPIApicreate_template_folderPOST /public/v1/templates/foldersCreate Templates Folder
FoldersAPIApilist_document_foldersGET /public/v1/documents/foldersList Documents Folders
FoldersAPIApilist_template_foldersGET /public/v1/templates/foldersList Templates Folders
FoldersAPIApirename_document_folderPUT /public/v1/documents/folders/{id}Rename Documents Folder
FoldersAPIApirename_template_folderPUT /public/v1/templates/folders/{id}Rename Templates Folder
FormsApilist_formGET /public/v1/formsForms
MembersApidetails_current_memberGET /public/v1/members/currentCurrent member details
MembersApidetails_memberGET /public/v1/members/{id}Member details
MembersApilist_membersGET /public/v1/membersList members
OAuth20AuthenticationApiaccess_tokenPOST /oauth2/access_tokenCreate/Refresh Access Token
QuotesApiquote_updatePUT /public/v1/documents/{document_id}/quotes/{quote_id}Quote update
SectionsApilist_sectionsGET /public/v1/documents/{document_id}/sectionsList sections
SectionsApisection_detailsGET /public/v1/documents/{document_id}/sections/uploads/{upload_id}Section details
SectionsApisection_infoGET /public/v1/documents/{document_id}/sections/{section_id}Section Info
SectionsApiupload_sectionPOST /public/v1/documents/{document_id}/sections/uploadsUpload section
TemplatesApidelete_templateDELETE /public/v1/templates/{id}Delete Template
TemplatesApidetails_templateGET /public/v1/templates/{id}/detailsDetails Template
TemplatesApilist_templatesGET /public/v1/templatesList Templates
UserAndWorkspaceManagementApiadd_memberPOST /public/v1/workspaces/{workspace_id}/membersAdd member
UserAndWorkspaceManagementApicreate_userPOST /public/v1/usersCreate User
UserAndWorkspaceManagementApicreate_workspacePOST /public/v1/workspacesCreate Workspace
WebhookEventsApidetails_webhook_eventGET /public/v1/webhook-events/{id}Get webhook event by uuid
WebhookEventsApilist_webhook_eventGET /public/v1/webhook-eventsGet webhook event page
WebhookSubscriptionsApicreate_webhook_subscriptionPOST /public/v1/webhook-subscriptionsCreate webhook subscription
WebhookSubscriptionsApidelete_webhook_subscriptionDELETE /public/v1/webhook-subscriptions/{id}Delete webhook subscription
WebhookSubscriptionsApidetails_webhook_subscriptionGET /public/v1/webhook-subscriptions/{id}Get webhook subscription by uuid
WebhookSubscriptionsApilist_webhook_subscriptionsGET /public/v1/webhook-subscriptionsGet all webhook subscriptions
WebhookSubscriptionsApiupdate_webhook_subscriptionPATCH /public/v1/webhook-subscriptions/{id}Update webhook subscription
WebhookSubscriptionsApiupdate_webhook_subscription_shared_keyPATCH /public/v1/webhook-subscriptions/{id}/shared-keyRegenerate webhook subscription shared key

License

SDK is licensed under the following License.

About

The Official PandaDoc Python client SDK

Topics

Resources

Stars

21 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages