Docusign · Capability

DocuSign REST API — TemplateDocuments

DocuSign REST API — TemplateDocuments. 5 operations. Lead operation: Docusign Gets a list of documents associated with a template.. Self-contained Naftiko capability covering one Docusign business surface.

Run with Naftiko DocusignTemplateDocuments

What You Can Do

GET
Documentsgettemplatedocuments — Docusign Gets a list of documents associated with a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/documents
PUT
Documentsputtemplatedocuments — Docusign Adds documents to a template document.
/v1/v2/accounts/{accountid}/templates/{templateid}/documents
DELETE
Documentsdeletetemplatedocuments — Docusign Deletes documents from a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/documents
GET
Documentsgettemplatedocument — Docusign Gets PDF documents from a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/documents/{documentid}
PUT
Documentsputtemplatedocument — Docusign Adds a document to a template document.
/v1/v2/accounts/{accountid}/templates/{templateid}/documents/{documentid}

MCP Tools

docusign-gets-list-documents-associated

Docusign Gets a list of documents associated with a template.

read-only idempotent
docusign-adds-documents-template-document

Docusign Adds documents to a template document.

idempotent
docusign-deletes-documents-template

Docusign Deletes documents from a template.

idempotent
docusign-gets-pdf-documents-template

Docusign Gets PDF documents from a template.

read-only idempotent
docusign-adds-document-template-document

Docusign Adds a document to a template document.

idempotent

Capability Spec

docusign-templatedocuments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DocuSign REST API — TemplateDocuments
  description: 'DocuSign REST API — TemplateDocuments. 5 operations. Lead operation: Docusign Gets a list of documents associated
    with a template.. Self-contained Naftiko capability covering one Docusign business surface.'
  tags:
  - Docusign
  - TemplateDocuments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCUSIGN_API_KEY: DOCUSIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: docusign-templatedocuments
    baseUri: https://www.docusign.net/restapi
    description: DocuSign REST API — TemplateDocuments business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-accountId-templates-templateId-documents
      path: /v2/accounts/{accountId}/templates/{templateId}/documents
      operations:
      - name: documentsgettemplatedocuments
        method: GET
        description: Docusign Gets a list of documents associated with a template.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
      - name: documentsputtemplatedocuments
        method: PUT
        description: Docusign Adds documents to a template document.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: apply_document_fields
          in: query
          type: string
          description: When **true**, document fields
        - name: persist_tabs
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: documentsdeletetemplatedocuments
        method: DELETE
        description: Docusign Deletes documents from a template.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v2-accounts-accountId-templates-templateId-documents-documentId
      path: /v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}
      operations:
      - name: documentsgettemplatedocument
        method: GET
        description: Docusign Gets PDF documents from a template.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: documentId
          in: path
          type: string
          description: The ID of the document being accessed.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: encrypt
          in: query
          type: string
        - name: show_changes
          in: query
          type: string
      - name: documentsputtemplatedocument
        method: PUT
        description: Docusign Adds a document to a template document.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: documentId
          in: path
          type: string
          description: The ID of the document being accessed.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: apply_document_fields
          in: query
          type: string
          description: When **true**, document fields
        - name: is_envelope_definition
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: docusign-templatedocuments-rest
    port: 8080
    description: REST adapter for DocuSign REST API — TemplateDocuments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{accountid}/templates/{templateid}/documents
      name: v2-accounts-accountid-templates-templateid-documents
      description: REST surface for v2-accounts-accountId-templates-templateId-documents.
      operations:
      - method: GET
        name: documentsgettemplatedocuments
        description: Docusign Gets a list of documents associated with a template.
        call: docusign-templatedocuments.documentsgettemplatedocuments
        with:
          accountId: rest.accountId
          templateId: rest.templateId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: documentsputtemplatedocuments
        description: Docusign Adds documents to a template document.
        call: docusign-templatedocuments.documentsputtemplatedocuments
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          apply_document_fields: rest.apply_document_fields
          persist_tabs: rest.persist_tabs
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: documentsdeletetemplatedocuments
        description: Docusign Deletes documents from a template.
        call: docusign-templatedocuments.documentsdeletetemplatedocuments
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{accountid}/templates/{templateid}/documents/{documentid}
      name: v2-accounts-accountid-templates-templateid-documents-documentid
      description: REST surface for v2-accounts-accountId-templates-templateId-documents-documentId.
      operations:
      - method: GET
        name: documentsgettemplatedocument
        description: Docusign Gets PDF documents from a template.
        call: docusign-templatedocuments.documentsgettemplatedocument
        with:
          accountId: rest.accountId
          documentId: rest.documentId
          templateId: rest.templateId
          encrypt: rest.encrypt
          show_changes: rest.show_changes
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: documentsputtemplatedocument
        description: Docusign Adds a document to a template document.
        call: docusign-templatedocuments.documentsputtemplatedocument
        with:
          accountId: rest.accountId
          documentId: rest.documentId
          templateId: rest.templateId
          apply_document_fields: rest.apply_document_fields
          is_envelope_definition: rest.is_envelope_definition
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docusign-templatedocuments-mcp
    port: 9090
    transport: http
    description: MCP adapter for DocuSign REST API — TemplateDocuments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: docusign-gets-list-documents-associated
      description: Docusign Gets a list of documents associated with a template.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-templatedocuments.documentsgettemplatedocuments
      with:
        accountId: tools.accountId
        templateId: tools.templateId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-adds-documents-template-document
      description: Docusign Adds documents to a template document.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-templatedocuments.documentsputtemplatedocuments
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        apply_document_fields: tools.apply_document_fields
        persist_tabs: tools.persist_tabs
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-deletes-documents-template
      description: Docusign Deletes documents from a template.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docusign-templatedocuments.documentsdeletetemplatedocuments
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-gets-pdf-documents-template
      description: Docusign Gets PDF documents from a template.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-templatedocuments.documentsgettemplatedocument
      with:
        accountId: tools.accountId
        documentId: tools.documentId
        templateId: tools.templateId
        encrypt: tools.encrypt
        show_changes: tools.show_changes
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-adds-document-template-document
      description: Docusign Adds a document to a template document.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-templatedocuments.documentsputtemplatedocument
      with:
        accountId: tools.accountId
        documentId: tools.documentId
        templateId: tools.templateId
        apply_document_fields: tools.apply_document_fields
        is_envelope_definition: tools.is_envelope_definition
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.