> ## 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 audit trail

> Returns the complete chronological audit trail for a signing session, including all events like invitations, views, signatures, and completions.



## OpenAPI

````yaml /openapi.json get /esign/sessions/{sessionId}/audit
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}/audit:
    get:
      tags:
        - E-Signatures
      summary: Get audit trail
      description: >-
        Returns the complete chronological audit trail for a signing session,
        including all events like invitations, views, signatures, and
        completions.
      operationId: getSigningAudit
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: The signing session ID.
      responses:
        '200':
          description: Audit trail
          content:
            application/json:
              schema:
                type: object
                properties:
                  sessionId:
                    type: string
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditEvent'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    AuditEvent:
      type: object
      properties:
        id:
          type: string
        eventType:
          type: string
          enum:
            - session_created
            - session_completed
            - session_expired
            - session_cancelled
            - invite_sent
            - invite_resent
            - link_opened
            - document_viewed
            - consent_given
            - signer_completed
            - signer_declined
            - field_signed
            - field_cleared
            - session_voided
            - reminder_sent
          description: Type of audit event.
        actorType:
          type: string
          enum:
            - system
            - signer
            - admin
        actorEmail:
          type: string
        actorSignerIndex:
          type: integer
          nullable: true
        fieldId:
          type: string
          nullable: true
        fieldType:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: true
        ipAddress:
          type: string
        userAgent:
          type: string
        timestamp:
          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).

````