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

# Get Organization Audit Logs

> Retrieve logs across a specified time period for an Organization.

The response is returned as a gzipped NDJSON file.


## OpenAPI

````yaml astro/api/v-1-labs/openapi.yaml GET /organizations/{organizationId}/audit-logs
openapi: 3.0.3
info:
  contact: {}
  description: Astro Labs API - Experimental endpoints for preview features
  title: Astro Labs API
  version: v1
servers:
  - url: https://api.astronomer.io/labs/v1
security:
  - JWT: []
tags:
  - description: >-
      Canned-data placeholder used to exercise the labs epoch versioning
      surface. Real labs endpoints register their own tags.
    name: Example
  - name: allowed-ip-address-range
    x-group: Allowed IP Address Range
paths:
  /organizations/{organizationId}/audit-logs:
    get:
      tags:
        - Organization
      summary: Get Organization audit logs
      description: Retrieve logs across a specified time period for an Organization.
      operationId: LabsGetOrganizationAuditLogs
      parameters:
        - description: The ID of the Organization to retrieve audit logs for.
          in: path
          name: organizationId
          required: true
          schema:
            type: string
        - description: The start date of the logs.
          in: query
          name: startDate
          schema:
            format: date-time
            type: string
        - description: The end date of the logs.
          in: query
          name: endDate
          schema:
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/octet-stream:
              schema:
                items:
                  type: integer
                type: array
          description: OK
        '400':
          content:
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
        '401':
          content:
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '500':
          content:
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal Server Error
      security:
        - JWT: []
components:
  schemas:
    Error:
      properties:
        fieldErrors:
          description: >-
            FieldErrors carries one entry per failed request-validation
            constraint.

            Only present on 400 responses caused by request binding/validation.
          items:
            $ref: '#/components/schemas/FieldValidationError'
          type: array
        message:
          type: string
        requestId:
          type: string
        statusCode:
          maximum: 600
          minimum: 400
          type: integer
      required:
        - message
        - requestId
        - statusCode
      type: object
    FieldValidationError:
      properties:
        code:
          type: string
        field:
          type: string
        message:
          type: string
      required:
        - code
        - field
        - message
      type: object
  securitySchemes:
    JWT:
      scheme: bearer
      type: http

````