{"openapi":"3.1.0","info":{"title":"Pandadoc Library (BYOK) API","version":"0.1.0","description":"Pandadoc Library (BYOK) lets an AI assistant read your own Pandadoc Library data through the Pandadoc Library API with a key you supply (API key (sandbox or production)). Read-only: 8 tools (get_template_details, list_template_folders, list_content_library_items, get_content_library_item, list_webhook_subscriptions, get_webhook_subscription, list_webhook_events, list_api_logs). The BYOK key...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-pandadoc-library.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-pandadoc-library/docs"},"termsOfService":"https://connectorbay.com/byok-pandadoc-library/terms"},"servers":[{"url":"https://byok-pandadoc-library.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-pandadoc-library/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_template_details":{"post":{"operationId":"get_template_details","summary":"Get one template's definition: name, dates, version, tags and field definitions (roles, people and pricing are not retur","description":"Get one template's definition: name, dates, version, tags and field definitions (roles, people and pricing are not returned). Use for \"What fields does the PandaDoc template with id TpL123 define\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"template_id":{"description":"Template id, as returned by listing templates.","maxLength":200,"title":"Template Id","type":"string"}},"required":["template_id"],"title":"get_template_detailsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_template_folders":{"post":{"operationId":"list_template_folders","summary":"List the template folders inside a parent folder (or the root) with name, creation date and whether each has sub-folders","description":"List the template folders inside a parent folder (or the root) with name, creation date and whether each has sub-folders or templates. Use for \"How are my PandaDoc templates organised into folders\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"parent_uuid":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"UUID of the parent folder; omit to list the root folder.","title":"Parent Uuid"},"count":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Items per page (maximum 100, default 50).","title":"Count"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_template_foldersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_content_library_items":{"post":{"operationId":"list_content_library_items","summary":"List content library items (reusable blocks) with name, dates and version; searchable by name or tag and filterable by f","description":"List content library items (reusable blocks) with name, dates and version; searchable by name or tag and filterable by folder. Use for \"Which reusable content blocks are in my PandaDoc content library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Search by item name.","title":"Q"},"tag":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items with this tag.","title":"Tag"},"folder_uuid":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only items in this folder UUID.","title":"Folder Uuid"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to list only deleted items.","title":"Deleted"},"count":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Items per page (maximum 100, default 50).","title":"Count"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_content_library_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_content_library_item":{"post":{"operationId":"get_content_library_item","summary":"Get one content library item: name, dates, version, tags and field definitions (roles, pricing and creator are not retur","description":"Get one content library item: name, dates, version, tags and field definitions (roles, pricing and creator are not returned). Use for \"Show the PandaDoc content library item cli_1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"item_id":{"description":"Content library item id, as returned by list_content_library_items.","maxLength":200,"title":"Item Id","type":"string"}},"required":["item_id"],"title":"get_content_library_itemArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_webhook_subscriptions":{"post":{"operationId":"list_webhook_subscriptions","summary":"List webhook subscriptions with name, active flag, status, payload options and triggers (target URLs and shared keys are","description":"List webhook subscriptions with name, active flag, status, payload options and triggers (target URLs and shared keys are not returned). Use for \"Which PandaDoc webhooks are active and what do they listen to\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_webhook_subscriptionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_webhook_subscription":{"post":{"operationId":"get_webhook_subscription","summary":"Get one webhook subscription's name, status, payload options and triggers (target URL and shared key are not returned). ","description":"Get one webhook subscription's name, status, payload options and triggers (target URL and shared key are not returned). Use for \"Is PandaDoc webhook subscription wh_1 active\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"subscription_id":{"description":"Webhook subscription uuid.","maxLength":200,"title":"Subscription Id","type":"string"}},"required":["subscription_id"],"title":"get_webhook_subscriptionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_webhook_events":{"post":{"operationId":"list_webhook_events","summary":"List webhook delivery attempts with subscription name, event type, HTTP status code, error type and delivery time. Use f","description":"List webhook delivery attempts with subscription name, event type, HTTP status code, error type and delivery time. Use for \"Did any PandaDoc webhook deliveries fail recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"count":{"description":"Items per page.","maximum":100,"minimum":1,"title":"Count","type":"integer"},"page":{"description":"Page number, starting at 1.","maximum":100000,"minimum":1,"title":"Page","type":"integer"},"since":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only events from this ISO 8601 time.","title":"Since"},"to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only events up to this ISO 8601 time.","title":"To"}},"required":["count","page"],"title":"list_webhook_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_api_logs":{"post":{"operationId":"list_api_logs","summary":"List recent API request log entries with request URL, status code and request and response times (request bodies are not","description":"List recent API request log entries with request URL, status code and request and response times (request bodies are not returned). Use for \"Which of my PandaDoc API calls failed in the last 7 days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"since":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period: ISO 8601 time or a relative value such as -7d.","title":"Since"},"to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period: ISO 8601 time, a relative value or now.","title":"To"},"search":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only entries containing this text.","title":"Search"},"environment_type":{"anyOf":[{"enum":["production","sandbox"],"type":"string"},{"type":"null"}],"default":null,"description":"Production or sandbox logs.","title":"Environment Type"},"count":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Items per page (maximum 100, default 50).","title":"Count"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_api_logsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}