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

# List organization audit logs

> Read retained mutation history for the authenticated organization. Requires organization:audit_log:read.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public get /v1/audit-logs
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/audit-logs:
    get:
      tags:
        - Audit logs
      summary: List organization audit logs
      description: >-
        Read retained mutation history for the authenticated organization.
        Requires organization:audit_log:read.
      operationId: listAuditLogs
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
            maxLength: 300
          description: >-
            Continuation cursor from the previous response nextCursor. Omit for
            the first page; null nextCursor means there are no more pages.
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          description: >-
            Maximum number of items to return in one page. Use nextCursor from
            the response to fetch more items.
        - in: query
          name: actorId
          schema:
            type: string
            minLength: 1
            maxLength: 2000
        - in: query
          name: resourceType
          schema:
            type: string
            minLength: 1
            maxLength: 2000
        - in: query
          name: resourceId
          schema:
            type: string
            minLength: 1
            maxLength: 200
        - in: query
          name: operation
          schema:
            type: string
            minLength: 1
            maxLength: 2000
        - in: query
          name: from
          schema:
            type: string
            format: date-time
        - in: query
          name: to
          schema:
            type: string
            format: date-time
        - in: query
          name: search
          schema:
            type: string
            minLength: 1
            maxLength: 200
          description: >-
            Search actor names, targets, resource types, and operations, e.g.
            `api_key.create`.
      responses:
        '200':
          description: Paginated audit history
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        organizationId:
                          type: string
                        actorType:
                          type: string
                        actorId:
                          type:
                            - string
                            - 'null'
                        actorLabel:
                          type:
                            - string
                            - 'null'
                        source:
                          type: string
                        resourceType:
                          type: string
                        resourceId:
                          type:
                            - string
                            - 'null'
                        resourceLabel:
                          type:
                            - string
                            - 'null'
                        operation:
                          type: string
                        details:
                          type:
                            - object
                            - 'null'
                          additionalProperties: {}
                        createdAt:
                          type: string
                          format: date-time
                      required:
                        - id
                        - organizationId
                        - actorType
                        - actorId
                        - actorLabel
                        - source
                        - resourceType
                        - resourceId
                        - resourceLabel
                        - operation
                        - details
                        - createdAt
                  nextCursor:
                    type:
                      - string
                      - 'null'
                required:
                  - items
                  - nextCursor
        '403':
          description: Audit log read permission is required
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |
            import Tembo from '@tembo-io/sdk';

            const client = new Tembo();

            const auditLog = await client.auditLogs.list({
              limit: 50,
            });
        - lang: rust
          label: Rust SDK
          source: |
            use tembo_rs::*;

            let client = Tembo::from_env()?;

            let response = client.audit_logs().list().send().await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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