> ## 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.

# Get an eSignature document

> One eSignature document with its pages, recipients and signatures.
Page images and signature images are links valid for one hour. A private
document not shared with the acting user is a 404.




## OpenAPI

````yaml /openapi.yaml get /api/esignature/documents/{documentId}
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/documents/{documentId}:
    get:
      tags:
        - eSignature
      summary: Get an eSignature document
      description: |
        One eSignature document with its pages, recipients and signatures.
        Page images and signature images are links valid for one hour. A private
        document not shared with the acting user is a 404.
      operationId: getEsignatureDocument
      parameters:
        - name: documentId
          in: path
          required: true
          schema:
            type: string
        - name: userId
          in: query
          schema:
            type: string
          description: >-
            The acting user. Required with an API key or partner token; a
            delegate token is its own user.
        - name: includeHistory
          in: query
          schema:
            type: boolean
          description: Include the document's audit history.
      responses:
        '200':
          description: The document.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      document:
                        type: object
                        additionalProperties: true
                      history:
                        type: array
                        items:
                          type: object
                          additionalProperties: true
                      userIds:
                        type: array
                        items:
                          type: string
                      accessType:
                        type: string
                      statusLabel:
                        type: string
        '403':
          description: A guest user, or a document from a board the API key may not use.
        '404':
          description: Document not found.
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.