> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getaptly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send an eSignature draft

> Creates an eSignature document from the draft's values and emails it to
its recipients. Only documents made with the v2 document builder can be
sent here. Merge fields still holding a reference are filled from the
card, contact and document fields are stamped, and the invitations are
emailed once the document is saved. The acting user
needs the `esignature_create` role permission and access to the card.

The values must be a complete v2 builder document (400 naming the
missing fields otherwise). A draft is sent once (409 after); it is
archived afterwards. With `revisionOf`, the new document
replaces a sent one (Edit & Resend): the old document is archived and
its signing links stop working.




## OpenAPI

````yaml /openapi.yaml post /api/esignature/drafts/{draftId}/send
openapi: 3.0.3
info:
  title: Aptly API
  version: '1.1'
  description: |
    The Aptly API lets external systems work with boards, contacts, inboxes,
    tasks, files, and other Aptly resources.

    Most endpoints accept an API key in the `x-token` header. Some endpoints
    also accept a delegate token or partner bearer token, as shown in each
    operation's security requirements, and explicitly public endpoints require
    no credential. API keys are scoped to a company and may be restricted to
    specific boards and read, insert, or update permissions; requests outside
    those restrictions receive a 403 `FORBIDDEN` response.
servers:
  - url: https://core-api.getaptly.com
    description: Production
security:
  - ApiKeyHeader: []
paths:
  /api/esignature/drafts/{draftId}/send:
    post:
      tags:
        - eSignature
      summary: Send an eSignature draft
      description: |
        Creates an eSignature document from the draft's values and emails it to
        its recipients. Only documents made with the v2 document builder can be
        sent here. Merge fields still holding a reference are filled from the
        card, contact and document fields are stamped, and the invitations are
        emailed once the document is saved. The acting user
        needs the `esignature_create` role permission and access to the card.

        The values must be a complete v2 builder document (400 naming the
        missing fields otherwise). A draft is sent once (409 after); it is
        archived afterwards. With `revisionOf`, the new document
        replaces a sent one (Edit & Resend): the old document is archived and
        its signing links stop working.
      operationId: sendEsignatureDraft
      parameters:
        - name: draftId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userId:
                  type: string
                  description: The acting user. Required with an API key or partner token.
      responses:
        '201':
          description: The document was created and its invitations sent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      _id:
                        type: string
        '400':
          description: >-
            The draft's values are not a complete v2 builder document, or the
            document has more pages than one can hold.
        '403':
          description: >-
            Missing `esignature_create` permission, a guest user, no access to
            the card, or a draft from a board the API key may not use.
        '404':
          description: >-
            Draft not found, archived, or awaiting someone else's review; or the
            card, or the document being replaced, not found.
        '409':
          description: >-
            The draft was already sent, or the document it replaces can no
            longer be replaced.
components:
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.