naftiko: 1.0.0-alpha2 info: label: PandaDoc REST API — Templates description: 'PandaDoc REST API — Templates. 3 operations. Lead operation: List Templates. Self-contained Naftiko capability covering one Pandadoc business surface.' tags: - Pandadoc - Templates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PANDADOC_API_KEY: PANDADOC_API_KEY capability: consumes: - type: http namespace: rest-templates baseUri: https://api.pandadoc.com/public/v1 description: PandaDoc REST API — Templates business capability. Self-contained, no shared references. resources: - name: templates path: /templates operations: - name: listtemplates method: GET description: List Templates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Search by template name substring. - name: tag in: query type: string description: Filter by template tag (exact match). - name: folder_uuid in: query type: string description: Filter by folder identifier. - name: deleted in: query type: boolean description: If true, include deleted templates in the results. - name: id in: query type: string description: Filter by specific template identifier. - name: templates-id path: /templates/{id} operations: - name: deletetemplate method: DELETE description: Delete Template outputRawFormat: json outputParameters: - name: result type: object value: $. - name: templates-id-details path: /templates/{id}/details operations: - name: gettemplatedetails method: GET description: Get Template Details outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PANDADOC_API_KEY}}' exposes: - type: rest namespace: rest-templates-rest port: 8080 description: REST adapter for PandaDoc REST API — Templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/templates name: templates description: REST surface for templates. operations: - method: GET name: listtemplates description: List Templates call: rest-templates.listtemplates with: q: rest.q tag: rest.tag folder_uuid: rest.folder_uuid deleted: rest.deleted id: rest.id outputParameters: - type: object mapping: $. - path: /v1/templates/{id} name: templates-id description: REST surface for templates-id. operations: - method: DELETE name: deletetemplate description: Delete Template call: rest-templates.deletetemplate outputParameters: - type: object mapping: $. - path: /v1/templates/{id}/details name: templates-id-details description: REST surface for templates-id-details. operations: - method: GET name: gettemplatedetails description: Get Template Details call: rest-templates.gettemplatedetails outputParameters: - type: object mapping: $. - type: mcp namespace: rest-templates-mcp port: 9090 transport: http description: MCP adapter for PandaDoc REST API — Templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-templates description: List Templates hints: readOnly: true destructive: false idempotent: true call: rest-templates.listtemplates with: q: tools.q tag: tools.tag folder_uuid: tools.folder_uuid deleted: tools.deleted id: tools.id outputParameters: - type: object mapping: $. - name: delete-template description: Delete Template hints: readOnly: false destructive: true idempotent: true call: rest-templates.deletetemplate outputParameters: - type: object mapping: $. - name: get-template-details description: Get Template Details hints: readOnly: true destructive: false idempotent: true call: rest-templates.gettemplatedetails outputParameters: - type: object mapping: $.