Docusign · Capability

DocuSign REST API — TemplateCustomFields

DocuSign REST API — TemplateCustomFields. 4 operations. Lead operation: Docusign Gets the custom document fields from a template.. Self-contained Naftiko capability covering one Docusign business surface.

Run with Naftiko DocusignTemplateCustomFields

What You Can Do

GET
Customfieldsgettemplatecustomfields — Docusign Gets the custom document fields from a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/custom-fields
PUT
Customfieldsputtemplatecustomfields — Docusign Updates envelope custom fields in a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/custom-fields
POST
Customfieldsposttemplatecustomfields — Docusign Creates custom document fields in an existing template document.
/v1/v2/accounts/{accountid}/templates/{templateid}/custom-fields
DELETE
Customfieldsdeletetemplatecustomfields — Docusign Deletes envelope custom fields in a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/custom-fields

MCP Tools

docusign-gets-custom-document-fields

Docusign Gets the custom document fields from a template.

read-only idempotent
docusign-updates-envelope-custom-fields

Docusign Updates envelope custom fields in a template.

idempotent
docusign-creates-custom-document-fields

Docusign Creates custom document fields in an existing template document.

docusign-deletes-envelope-custom-fields

Docusign Deletes envelope custom fields in a template.

idempotent

Capability Spec

docusign-templatecustomfields.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DocuSign REST API — TemplateCustomFields
  description: 'DocuSign REST API — TemplateCustomFields. 4 operations. Lead operation: Docusign Gets the custom document
    fields from a template.. Self-contained Naftiko capability covering one Docusign business surface.'
  tags:
  - Docusign
  - TemplateCustomFields
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCUSIGN_API_KEY: DOCUSIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: docusign-templatecustomfields
    baseUri: https://www.docusign.net/restapi
    description: DocuSign REST API — TemplateCustomFields business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-accountId-templates-templateId-custom_fields
      path: /v2/accounts/{accountId}/templates/{templateId}/custom_fields
      operations:
      - name: customfieldsgettemplatecustomfields
        method: GET
        description: Docusign Gets the custom document fields 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: customfieldsputtemplatecustomfields
        method: PUT
        description: Docusign Updates envelope custom fields in 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: customfieldsposttemplatecustomfields
        method: POST
        description: Docusign Creates custom document fields in an existing 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: customfieldsdeletetemplatecustomfields
        method: DELETE
        description: Docusign Deletes envelope custom fields in 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
  exposes:
  - type: rest
    namespace: docusign-templatecustomfields-rest
    port: 8080
    description: REST adapter for DocuSign REST API — TemplateCustomFields. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{accountid}/templates/{templateid}/custom-fields
      name: v2-accounts-accountid-templates-templateid-custom-fields
      description: REST surface for v2-accounts-accountId-templates-templateId-custom_fields.
      operations:
      - method: GET
        name: customfieldsgettemplatecustomfields
        description: Docusign Gets the custom document fields from a template.
        call: docusign-templatecustomfields.customfieldsgettemplatecustomfields
        with:
          accountId: rest.accountId
          templateId: rest.templateId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: customfieldsputtemplatecustomfields
        description: Docusign Updates envelope custom fields in a template.
        call: docusign-templatecustomfields.customfieldsputtemplatecustomfields
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: customfieldsposttemplatecustomfields
        description: Docusign Creates custom document fields in an existing template document.
        call: docusign-templatecustomfields.customfieldsposttemplatecustomfields
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: customfieldsdeletetemplatecustomfields
        description: Docusign Deletes envelope custom fields in a template.
        call: docusign-templatecustomfields.customfieldsdeletetemplatecustomfields
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docusign-templatecustomfields-mcp
    port: 9090
    transport: http
    description: MCP adapter for DocuSign REST API — TemplateCustomFields. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: docusign-gets-custom-document-fields
      description: Docusign Gets the custom document fields from a template.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-templatecustomfields.customfieldsgettemplatecustomfields
      with:
        accountId: tools.accountId
        templateId: tools.templateId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-updates-envelope-custom-fields
      description: Docusign Updates envelope custom fields in a template.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-templatecustomfields.customfieldsputtemplatecustomfields
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-creates-custom-document-fields
      description: Docusign Creates custom document fields in an existing template document.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docusign-templatecustomfields.customfieldsposttemplatecustomfields
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-deletes-envelope-custom-fields
      description: Docusign Deletes envelope custom fields in a template.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docusign-templatecustomfields.customfieldsdeletetemplatecustomfields
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.