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

# Export audit logs

> Retrieve a paginated list of audit log entries for your organization, ordered newest first. Use this endpoint for bulk export of audit data. When more results are available, the response includes metadata.nextPage with the URL for the next page.



## OpenAPI

````yaml get /api/export/audit-logs
openapi: 3.1.0
info:
  title: Strada Voice API
  version: 1.0.0
  description: API for managing voice calls
servers:
  - url: https://api.getstrada.com
    description: Production server
security: []
paths:
  /api/export/audit-logs:
    get:
      tags:
        - Export
      summary: Export audit logs
      description: >-
        Retrieve a paginated list of audit log entries for your organization,
        ordered newest first. Use this endpoint for bulk export of audit data.
        When more results are available, the response includes metadata.nextPage
        with the URL for the next page.
      parameters:
        - name: createdAtGt
          in: query
          schema:
            type: string
            format: date-time
          description: Filter entries created after this timestamp
        - name: createdAtLt
          in: query
          schema:
            type: string
            format: date-time
          description: Filter entries created before this timestamp
        - name: pageSize
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 10000
            default: 10000
          description: Number of results per page (max 10000)
      responses:
        '200':
          description: Successfully retrieved audit log entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportAuditLogsResponse'
              example:
                auditLogs:
                  - auditLogId: b4f7c8e2-1a3d-4e5f-9c6b-7d8e9f0a1b2c
                    memberId: member_abc123
                    memberName: Jane Doe
                    memberEmail: jane@ironinsurance.com
                    actionVerb: created
                    resourceType: api_keys
                    resourceReferenceId: key_789
                    resourceLabel: Production API Key
                    requestId: req_456def
                    createdAt: '2024-01-15T10:30:00Z'
                metadata:
                  nextPage: >-
                    https://api.getstrada.com/api/export/audit-logs?createdAtLt=2024-01-15T10:29:59.999Z&pageSize=10000
        '400':
          description: Bad request - invalid query parameters
        '403':
          description: Forbidden - invalid authentication or authorization
      security:
        - bearerAuth: []
components:
  schemas:
    ExportAuditLogsResponse:
      type: object
      properties:
        auditLogs:
          type: array
          items:
            $ref: '#/components/schemas/AuditLogExportEntry'
        metadata:
          type: object
          properties:
            nextPage:
              type: string
              description: URL to fetch the next page of results
    AuditLogExportEntry:
      type: object
      properties:
        auditLogId:
          type: string
          format: uuid
          description: Unique identifier for the audit log entry
        memberId:
          type: string
          description: ID of the member who performed the action
        memberName:
          type: string
          nullable: true
          description: Name of the member, if available
        memberEmail:
          type: string
          nullable: true
          description: Email of the member, if available
        actionVerb:
          type: string
          description: >-
            The action performed, such as created, updated, deleted, exported,
            started, paused, resumed, assigned, or unassigned
        resourceType:
          type: string
          description: >-
            The kind of resource affected, such as agents, api_keys, or
            campaigns
        resourceReferenceId:
          type: string
          nullable: true
          description: ID of the affected resource, if available
        resourceLabel:
          type: string
          nullable: true
          description: Human-readable name of the affected resource, if available
        requestId:
          type: string
          description: Identifier for the request that produced this entry
        createdAt:
          type: string
          format: date-time
          description: When the action happened
      required:
        - auditLogId
        - memberId
        - actionVerb
        - resourceType
        - requestId
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Key authentication

````