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

# Export workflow run activity

> Export top-level workflow runs for the authenticated organization as JSON or CSV. Only organization admins and full API keys may export. The default window is the last 90 days, with timezone-aware since/until bounds, newest-first keyset pagination, and a maximum page size of 500. CSV output uses fixed columns and is protected from spreadsheet formula execution.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/audit-events/runs/export
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
security: []
paths:
  /v1/audit-events/runs/export:
    get:
      tags:
        - Server
      summary: Export workflow run activity
      description: >-
        Export top-level workflow runs for the authenticated organization as
        JSON or CSV. Only organization admins and full API keys may export. The
        default window is the last 90 days, with timezone-aware since/until
        bounds, newest-first keyset pagination, and a maximum page size of 500.
        CSV output uses fixed columns and is protected from spreadsheet formula
        execution.
      operationId: export_run_activity_v1_audit_events_runs_export_get
      parameters:
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Since
        - name: until
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Until
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: format
          in: query
          required: false
          schema:
            enum:
              - json
              - csv
            type: string
            default: json
            title: Format
      responses:
        '200':
          description: >-
            A page of workflow run activity as JSON, or a CSV download when
            format=csv.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunActivityExportResponse'
            text/csv:
              schema:
                type: string
                format: binary
        '403':
          description: The caller must be an organization admin or use a full API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditExportDenialResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RunActivityExportResponse:
      properties:
        rows:
          items:
            $ref: '#/components/schemas/RunActivityExportRow'
          type: array
          title: Rows
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
      type: object
      required:
        - rows
        - next
      title: RunActivityExportResponse
    AuditExportDenialResponse:
      properties:
        detail:
          $ref: '#/components/schemas/AuditExportDenialDetail'
      type: object
      required:
        - detail
      title: AuditExportDenialResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunActivityExportRow:
      properties:
        workflow_run_id:
          type: string
          title: Workflow Run Id
        created_at:
          type: string
          format: date-time
          title: Created At
        workflow_permanent_id:
          type: string
          title: Workflow Permanent Id
        trigger_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Trigger Type
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        requested_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Requested By
        workflow_schedule_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Schedule Id
        retried_from_workflow_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Retried From Workflow Run Id
      type: object
      required:
        - workflow_run_id
        - created_at
        - workflow_permanent_id
        - trigger_type
        - created_by
        - requested_by
        - workflow_schedule_id
        - retried_from_workflow_run_id
      title: RunActivityExportRow
    AuditExportDenialDetail:
      properties:
        error_code:
          type: string
          const: organization_admin_required
          title: Error Code
        message:
          type: string
          title: Message
        reason_kind:
          type: string
          const: role
          title: Reason Kind
        required:
          additionalProperties:
            type: string
          type: object
          title: Required
        caller_has:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Caller Has
        next_action:
          type: string
          title: Next Action
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        action:
          anyOf:
            - type: string
            - type: 'null'
          title: Action
      type: object
      required:
        - error_code
        - message
        - reason_kind
        - required
        - caller_has
        - next_action
      title: AuditExportDenialDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Your Skyvern API key from https://app.skyvern.com/settings.
      in: header
      name: x-api-key

````

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