Docusign · Capability

DocuSign REST API — EnvelopeAttachments

DocuSign REST API — EnvelopeAttachments. 5 operations. Lead operation: Docusign Returns a list of attachments associated with the specified envelope. Self-contained Naftiko capability covering one Docusign business surface.

Run with Naftiko DocusignEnvelopeAttachments

What You Can Do

GET
Attachmentsgetattachments — Docusign Returns a list of attachments associated with the specified envelope
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments
PUT
Attachmentsputattachments — Docusign Add one or more attachments to a DRAFT or IN-PROCESS envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments
DELETE
Attachmentsdeleteattachments — Docusign Delete one or more attachments from a DRAFT envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments
GET
Attachmentsgetattachment — Docusign Retrieves an attachment from the envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments/{attachmentid}
PUT
Attachmentsputattachment — Docusign Add an attachment to a DRAFT or IN-PROCESS envelope.
/v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments/{attachmentid}

MCP Tools

docusign-returns-list-attachments-associated

Docusign Returns a list of attachments associated with the specified envelope

read-only idempotent
docusign-add-one-more-attachments

Docusign Add one or more attachments to a DRAFT or IN-PROCESS envelope.

idempotent
docusign-delete-one-more-attachments

Docusign Delete one or more attachments from a DRAFT envelope.

idempotent
docusign-retrieves-attachment-envelope

Docusign Retrieves an attachment from the envelope.

read-only idempotent
docusign-add-attachment-draft-process

Docusign Add an attachment to a DRAFT or IN-PROCESS envelope.

idempotent

Capability Spec

docusign-envelopeattachments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DocuSign REST API — EnvelopeAttachments
  description: 'DocuSign REST API — EnvelopeAttachments. 5 operations. Lead operation: Docusign Returns a list of attachments
    associated with the specified envelope. Self-contained Naftiko capability covering one Docusign business surface.'
  tags:
  - Docusign
  - EnvelopeAttachments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCUSIGN_API_KEY: DOCUSIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: docusign-envelopeattachments
    baseUri: https://www.docusign.net/restapi
    description: DocuSign REST API — EnvelopeAttachments business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-accountId-envelopes-envelopeId-attachments
      path: /v2/accounts/{accountId}/envelopes/{envelopeId}/attachments
      operations:
      - name: attachmentsgetattachments
        method: GET
        description: Docusign Returns a list of attachments associated with the specified 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: attachmentsputattachments
        method: PUT
        description: Docusign Add one or more attachments to a DRAFT or IN-PROCESS 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
      - name: attachmentsdeleteattachments
        method: DELETE
        description: Docusign Delete one or more attachments from a DRAFT 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
    - name: v2-accounts-accountId-envelopes-envelopeId-attachments-attachmentId
      path: /v2/accounts/{accountId}/envelopes/{envelopeId}/attachments/{attachmentId}
      operations:
      - name: attachmentsgetattachment
        method: GET
        description: Docusign Retrieves an attachment from the 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: attachmentId
          in: path
          type: string
          required: true
        - name: envelopeId
          in: path
          type: string
          description: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec
          required: true
      - name: attachmentsputattachment
        method: PUT
        description: Docusign Add an attachment to a DRAFT or IN-PROCESS 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: attachmentId
          in: path
          type: string
          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-envelopeattachments-rest
    port: 8080
    description: REST adapter for DocuSign REST API — EnvelopeAttachments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments
      name: v2-accounts-accountid-envelopes-envelopeid-attachments
      description: REST surface for v2-accounts-accountId-envelopes-envelopeId-attachments.
      operations:
      - method: GET
        name: attachmentsgetattachments
        description: Docusign Returns a list of attachments associated with the specified envelope
        call: docusign-envelopeattachments.attachmentsgetattachments
        with:
          accountId: rest.accountId
          envelopeId: rest.envelopeId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: attachmentsputattachments
        description: Docusign Add one or more attachments to a DRAFT or IN-PROCESS envelope.
        call: docusign-envelopeattachments.attachmentsputattachments
        with:
          accountId: rest.accountId
          envelopeId: rest.envelopeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: attachmentsdeleteattachments
        description: Docusign Delete one or more attachments from a DRAFT envelope.
        call: docusign-envelopeattachments.attachmentsdeleteattachments
        with:
          accountId: rest.accountId
          envelopeId: rest.envelopeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{accountid}/envelopes/{envelopeid}/attachments/{attachmentid}
      name: v2-accounts-accountid-envelopes-envelopeid-attachments-attachmentid
      description: REST surface for v2-accounts-accountId-envelopes-envelopeId-attachments-attachmentId.
      operations:
      - method: GET
        name: attachmentsgetattachment
        description: Docusign Retrieves an attachment from the envelope.
        call: docusign-envelopeattachments.attachmentsgetattachment
        with:
          accountId: rest.accountId
          attachmentId: rest.attachmentId
          envelopeId: rest.envelopeId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: attachmentsputattachment
        description: Docusign Add an attachment to a DRAFT or IN-PROCESS envelope.
        call: docusign-envelopeattachments.attachmentsputattachment
        with:
          accountId: rest.accountId
          attachmentId: rest.attachmentId
          envelopeId: rest.envelopeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docusign-envelopeattachments-mcp
    port: 9090
    transport: http
    description: MCP adapter for DocuSign REST API — EnvelopeAttachments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: docusign-returns-list-attachments-associated
      description: Docusign Returns a list of attachments associated with the specified envelope
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-envelopeattachments.attachmentsgetattachments
      with:
        accountId: tools.accountId
        envelopeId: tools.envelopeId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-add-one-more-attachments
      description: Docusign Add one or more attachments to a DRAFT or IN-PROCESS envelope.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-envelopeattachments.attachmentsputattachments
      with:
        accountId: tools.accountId
        envelopeId: tools.envelopeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-delete-one-more-attachments
      description: Docusign Delete one or more attachments from a DRAFT envelope.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docusign-envelopeattachments.attachmentsdeleteattachments
      with:
        accountId: tools.accountId
        envelopeId: tools.envelopeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-retrieves-attachment-envelope
      description: Docusign Retrieves an attachment from the envelope.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-envelopeattachments.attachmentsgetattachment
      with:
        accountId: tools.accountId
        attachmentId: tools.attachmentId
        envelopeId: tools.envelopeId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-add-attachment-draft-process
      description: Docusign Add an attachment to a DRAFT or IN-PROCESS envelope.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-envelopeattachments.attachmentsputattachment
      with:
        accountId: tools.accountId
        attachmentId: tools.attachmentId
        envelopeId: tools.envelopeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.