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

# List audit log events

> Lists configuration changes, newest first: automations, environments, connectors, members, API keys, and organization settings. Needs an admin's personal API key.



## OpenAPI

````yaml /openapi.json get /v1/audit-logs
openapi: 3.1.0
info:
  title: Replicas API
  version: 2.0.0
  description: >-
    Create and control workspaces, and manage the environments, automations, and
    learnings they run with.
servers:
  - url: https://api.replicas.dev
    description: Production API
security:
  - apiKey: []
tags:
  - name: Replica
    description: >-
      A replica is a Replicas workspace: a cloud sandbox where a coding agent
      works on your repositories.
  - name: Chats
    description: Manage the agent chats inside a replica.
  - name: Message queue
    description: Messages waiting for the agent to finish its turn.
  - name: Commands and terminals
    description: Run commands and open shells in a replica.
  - name: Pull requests
    description: Inspect and act on pull requests a replica opened.
  - name: Previews
    description: Public URLs for ports in a replica.
  - name: Canvas
    description: Plans, reports, and other files agents produce.
  - name: Sharing
    description: Add replicas to members' Shared view.
  - name: Environments
    description: >-
      Environments define what a workspace starts with. A fork builds on the
      environments it was forked from.
  - name: Environment variables
    description: Variables injected into workspaces.
  - name: Environment files
    description: Files written into workspaces.
  - name: Environment skills
    description: Agent skills installed into workspaces.
  - name: Environment MCPs
    description: MCP servers available to workspace agents.
  - name: Hooks
    description: Scripts that run when warm pool snapshots build and when workspaces start.
  - name: Warm pools
    description: Pre-built workspaces that start faster.
  - name: Automations
    description: Run agents on schedules and events.
  - name: Repositories
    description: Repositories connected to the organization.
  - name: Learnings
    description: Organization skills every workspace agent loads.
  - name: Agent credentials
    description: >-
      API keys and endpoints that coding agents use. Connect Claude, Codex, and
      Muse subscriptions with the CLI.
  - name: Plugins
    description: Connect integrations that workspace agents can use.
  - name: Organization
    description: Who you are and who is in your organization.
  - name: Billing
    description: Credit left, usage limits, and usage cost.
  - name: Audit log
    description: Who changed which configuration in the organization, and when.
  - name: Media
    description: Screenshots, recordings, and other files workspaces produce.
  - name: Slack
    description: Route Slack threads to workspaces.
  - name: Workspace identity
    description: OIDC keys for verifying workspace identity tokens.
paths:
  /v1/audit-logs:
    get:
      tags:
        - Audit log
      summary: List audit log events
      description: >-
        Lists configuration changes, newest first: automations, environments,
        connectors, members, API keys, and organization settings. Needs an
        admin's personal API key.
      operationId: listAuditLogs
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: search
          in: query
          description: Matches the resource name, resource type, summary, or actor email.
          schema:
            type: string
        - name: resource_id
          in: query
          description: Only events for this resource, like an automation or repository.
          schema:
            type: string
            format: uuid
        - name: environment_id
          in: query
          description: Only events in this environment.
          schema:
            type: string
            format: uuid
        - name: resource_type
          in: query
          description: >-
            From [audit log
            filters](/api-reference/audit-log/list-audit-log-filters).
          schema:
            type: string
        - name: user_id
          in: query
          description: >-
            Actor, from [audit log
            filters](/api-reference/audit-log/list-audit-log-filters).
          schema:
            type: string
            format: uuid
        - name: action
          in: query
          schema:
            $ref: '#/components/schemas/AuditLogAction'
        - name: start
          in: query
          description: ISO 8601 date. Only events at or after it.
          schema:
            type: string
            format: date-time
        - name: end
          in: query
          description: ISO 8601 date. Only events before it.
          schema:
            type: string
            format: date-time
        - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: Audit log events
          content:
            application/json:
              schema:
                type: object
                properties:
                  logs:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditLogEvent'
                  total:
                    type: integer
                  page:
                    type: integer
                  limit:
                    type: integer
                  total_pages:
                    type: integer
                required:
                  - logs
                  - total
                  - page
                  - limit
                  - total_pages
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    AuditLogAction:
      type: string
      enum:
        - create
        - update
        - delete
        - connect
        - disconnect
    AuditLogEvent:
      type: object
      properties:
        id:
          type: string
          format: uuid
        organization_id:
          type: string
          format: uuid
        resource_type:
          type: string
          description: Like `automation`, `environment_variable`, or `connector_github`
        resource_id:
          type:
            - string
            - 'null'
        resource_label:
          type:
            - string
            - 'null'
        action:
          $ref: '#/components/schemas/AuditLogAction'
        summary:
          type:
            - string
            - 'null'
        user_id:
          type:
            - string
            - 'null'
          description: Null for changes made by an organization API key or the system
        user_email:
          type:
            - string
            - 'null'
        user_name:
          type:
            - string
            - 'null'
        api_key_id:
          type:
            - string
            - 'null'
        api_key_name:
          type:
            - string
            - 'null'
        environment_id:
          type:
            - string
            - 'null'
        environment_name:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
      required:
        - id
        - organization_id
        - resource_type
        - resource_id
        - resource_label
        - action
        - summary
        - user_id
        - user_email
        - user_name
        - api_key_id
        - api_key_name
        - environment_id
        - environment_name
        - created_at
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type:
            - string
            - 'null'
          description: Additional error details
        code:
          type: string
          description: Machine-readable error code when available
      required:
        - error
  parameters:
    ApiVersion:
      name: X-Replicas-Api-Version
      in: header
      description: >-
        API version. `2026-10-07` returns `snake_case` responses. See
        [versioning](/features/api#versioning).
      required: false
      schema:
        type: string
        enum:
          - '2026-10-07'
  responses:
    BadRequest:
      description: Bad request - Missing or invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden - The authenticated account cannot access this resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Organization or personal API key from **Settings → API Keys**.

````

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