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

# Get session details

> Returns comprehensive signing session information including signer statuses, e-sign fields with positions, document hashes, and completion timestamps.



## OpenAPI

````yaml /openapi.json get /esign/sessions/{sessionId}
openapi: 3.1.0
info:
  title: DocsAutomator API
  version: '2.0'
  description: >-
    REST API for programmatic document generation, automation management, and
    e-signature workflows.
  contact:
    name: DocsAutomator Support
    email: support@docsautomator.co
    url: https://docsautomator.co
servers:
  - url: https://api.docsautomator.co
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Documents
    description: Create documents and manage async jobs
  - name: Automations
    description: CRUD operations for automations
  - name: Templates
    description: Template placeholders and duplication
  - name: E-Signatures
    description: Manage signing sessions, links, and audit trails
  - name: Email
    description: Test email delivery
paths:
  /esign/sessions/{sessionId}:
    get:
      tags:
        - E-Signatures
      summary: Get session details
      description: >-
        Returns comprehensive signing session information including signer
        statuses, e-sign fields with positions, document hashes, and completion
        timestamps.
      operationId: getSigningSession
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: The signing session ID.
      responses:
        '200':
          description: Session details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SigningSession'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    SigningSession:
      type: object
      properties:
        id:
          type: string
        documentName:
          type: string
        status:
          type: string
          enum:
            - pending
            - in_progress
            - completed
            - declined
            - cancelled
        signingOrder:
          type: string
          enum:
            - sequential
            - parallel
        deliveryMethod:
          type: string
          enum:
            - email
            - link
        currentSignerIndex:
          type: integer
        originalPdfUrl:
          type: string
          format: uri
        signedPdfUrl:
          type: string
          format: uri
          nullable: true
        originalDocumentHash:
          type: string
        signedDocumentHash:
          type: string
          nullable: true
        esignFields:
          type: array
          items:
            type: object
            properties:
              fieldId:
                type: string
              type:
                type: string
                enum:
                  - signature
                  - text
                  - date
                  - checkbox
              label:
                type: string
              required:
                type: boolean
              value:
                type: string
                nullable: true
              signedAt:
                type: string
                format: date-time
                nullable: true
              signerIndex:
                type: integer
        signers:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              email:
                type: string
              name:
                type: string
              role:
                type: string
              status:
                type: string
                enum:
                  - pending
                  - invited
                  - opened
                  - signed
                  - declined
              invitedAt:
                type: string
                format: date-time
                nullable: true
              openedAt:
                type: string
                format: date-time
                nullable: true
              signedAt:
                type: string
                format: date-time
                nullable: true
              consentGivenAt:
                type: string
                format: date-time
                nullable: true
              signingDurationSeconds:
                type: integer
                nullable: true
        reminderEnabled:
          type: boolean
        reminderDays:
          type: integer
        webhookParams:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            Custom parameters passed in the original document creation request
            (`webhookParams`), returned verbatim. The trigger record identifier
            is folded in automatically — `recId` (Airtable, SmartSuite, Notion),
            `taskId` (ClickUp) or `rowNumber` (Google Sheets; positional at
            trigger time) — useful for correlating sessions with records in your
            data source. Caller-supplied keys are never overwritten. `null` when
            no identifier or parameters were provided.
          example:
            recId: recAbC123XyZ
            orderId: ORD-123
        expiresAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message.
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key from your workspace settings. Pass as `Authorization: Bearer
        <key>` or `X-API-Key: <key>`. Find it at
        [app.docsautomator.co/settings/workspace/api](https://app.docsautomator.co/settings/workspace/api).

````