Docusign · Capability

DocuSign REST API — EnvelopeTemplates

DocuSign REST API — EnvelopeTemplates. 5 operations. Lead operation: Docusign Gets the templates associated with a document in an existing envelope.. Self-contained Naftiko capability covering one Docusign business surface.

Run with Naftiko DocusignEnvelopeTemplates

What You Can Do

GET
Templatesgetdocumenttemplates — Docusign Gets the templates associated with a document in an existing envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/documents/{documentid}/templates
POST
Templatespostdocumenttemplates — Docusign Adds templates to a document in an envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/documents/{documentid}/templates
DELETE
Templatesdeletedocumenttemplates — Docusign Deletes a template from a document in an existing envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/documents/{documentid}/templates/{templateid}
GET
Templatesgetenvelopetemplates — Docusign Get List of Templates used in an Envelope
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/templates
POST
Templatespostenvelopetemplates — Docusign Adds templates to an envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/templates

MCP Tools

docusign-gets-templates-associated-document

Docusign Gets the templates associated with a document in an existing envelope.

read-only idempotent
docusign-adds-templates-document-envelope

Docusign Adds templates to a document in an envelope.

docusign-deletes-template-document-existing

Docusign Deletes a template from a document in an existing envelope.

idempotent
docusign-get-list-templates-used

Docusign Get List of Templates used in an Envelope

read-only idempotent
docusign-adds-templates-envelope

Docusign Adds templates to an envelope.

Capability Spec

docusign-envelopetemplates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DocuSign REST API — EnvelopeTemplates
  description: 'DocuSign REST API — EnvelopeTemplates. 5 operations. Lead operation: Docusign Gets the templates associated
    with a document in an existing envelope.. Self-contained Naftiko capability covering one Docusign business surface.'
  tags:
  - Docusign
  - EnvelopeTemplates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCUSIGN_API_KEY: DOCUSIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: docusign-envelopetemplates
    baseUri: https://www.docusign.net/restapi
    description: DocuSign REST API — EnvelopeTemplates business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-accountId-envelopes-envelopeId-documents-documentId-templates
      path: /v2/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates
      operations:
      - name: templatesgetdocumenttemplates
        method: GET
        description: Docusign Gets the templates associated with a document in an existing envelope.
        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: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
        - name: include
          in: query
          type: string
          description: A comma-separated list
      - name: templatespostdocumenttemplates
        method: POST
        description: Docusign Adds templates to a document in an  envelope.
        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: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v2-accounts-accountId-envelopes-envelopeId-documents-documentId-templates-templa
      path: /v2/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates/{templateId}
      operations:
      - name: templatesdeletedocumenttemplates
        method: DELETE
        description: Docusign Deletes a template from a document in an existing envelope.
        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: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
    - name: v2-accounts-accountId-envelopes-envelopeId-templates
      path: /v2/accounts/{accountId}/envelopes/{envelopeId}/templates
      operations:
      - name: templatesgetenvelopetemplates
        method: GET
        description: Docusign Get List of Templates used in an Envelope
        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: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
        - name: include
          in: query
          type: string
          description: 'The possible values are:  matching_applied - This returns template matching information for the template.'
      - name: templatespostenvelopetemplates
        method: POST
        description: Docusign Adds templates to an envelope.
        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: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: docusign-envelopetemplates-rest
    port: 8080
    description: REST adapter for DocuSign REST API — EnvelopeTemplates. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{accountid}/envelopes/{envelopeid}/documents/{documentid}/templates
      name: v2-accounts-accountid-envelopes-envelopeid-documents-documentid-templates
      description: REST surface for v2-accounts-accountId-envelopes-envelopeId-documents-documentId-templates.
      operations:
      - method: GET
        name: templatesgetdocumenttemplates
        description: Docusign Gets the templates associated with a document in an existing envelope.
        call: docusign-envelopetemplates.templatesgetdocumenttemplates
        with:
          accountId: rest.accountId
          documentId: rest.documentId
          envelopeId: rest.envelopeId
          include: rest.include
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: templatespostdocumenttemplates
        description: Docusign Adds templates to a document in an  envelope.
        call: docusign-envelopetemplates.templatespostdocumenttemplates
        with:
          accountId: rest.accountId
          documentId: rest.documentId
          envelopeId: rest.envelopeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{accountid}/envelopes/{envelopeid}/documents/{documentid}/templates/{templateid}
      name: v2-accounts-accountid-envelopes-envelopeid-documents-documentid-templates-templa
      description: REST surface for v2-accounts-accountId-envelopes-envelopeId-documents-documentId-templates-templa.
      operations:
      - method: DELETE
        name: templatesdeletedocumenttemplates
        description: Docusign Deletes a template from a document in an existing envelope.
        call: docusign-envelopetemplates.templatesdeletedocumenttemplates
        with:
          accountId: rest.accountId
          documentId: rest.documentId
          envelopeId: rest.envelopeId
          templateId: rest.templateId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{accountid}/envelopes/{envelopeid}/templates
      name: v2-accounts-accountid-envelopes-envelopeid-templates
      description: REST surface for v2-accounts-accountId-envelopes-envelopeId-templates.
      operations:
      - method: GET
        name: templatesgetenvelopetemplates
        description: Docusign Get List of Templates used in an Envelope
        call: docusign-envelopetemplates.templatesgetenvelopetemplates
        with:
          accountId: rest.accountId
          envelopeId: rest.envelopeId
          include: rest.include
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: templatespostenvelopetemplates
        description: Docusign Adds templates to an envelope.
        call: docusign-envelopetemplates.templatespostenvelopetemplates
        with:
          accountId: rest.accountId
          envelopeId: rest.envelopeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docusign-envelopetemplates-mcp
    port: 9090
    transport: http
    description: MCP adapter for DocuSign REST API — EnvelopeTemplates. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: docusign-gets-templates-associated-document
      description: Docusign Gets the templates associated with a document in an existing envelope.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-envelopetemplates.templatesgetdocumenttemplates
      with:
        accountId: tools.accountId
        documentId: tools.documentId
        envelopeId: tools.envelopeId
        include: tools.include
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-adds-templates-document-envelope
      description: Docusign Adds templates to a document in an  envelope.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docusign-envelopetemplates.templatespostdocumenttemplates
      with:
        accountId: tools.accountId
        documentId: tools.documentId
        envelopeId: tools.envelopeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-deletes-template-document-existing
      description: Docusign Deletes a template from a document in an existing envelope.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docusign-envelopetemplates.templatesdeletedocumenttemplates
      with:
        accountId: tools.accountId
        documentId: tools.documentId
        envelopeId: tools.envelopeId
        templateId: tools.templateId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-get-list-templates-used
      description: Docusign Get List of Templates used in an Envelope
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-envelopetemplates.templatesgetenvelopetemplates
      with:
        accountId: tools.accountId
        envelopeId: tools.envelopeId
        include: tools.include
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-adds-templates-envelope
      description: Docusign Adds templates to an envelope.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docusign-envelopetemplates.templatespostenvelopetemplates
      with:
        accountId: tools.accountId
        envelopeId: tools.envelopeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.