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

# List Audit Logs

> List your organization's audit logs, newest first: the same configuration changes shown under Audit Logs in the dashboard. Each log has its `type`, a human-readable `log` description and a `timestamp`; `total` counts every log matching the request across all pages. Select the time range with `start`/`end` or `period` (default `7d`, at most 365 days), filter by one or more `type` values, and page with `offset` and `limit`. Requires an API key with manage read or write permission.

List your organization's audit logs, newest first, with a Management API key. The logs are the same configuration changes shown under **Admin Panel → Audit Logs** in the dashboard, so you can export them to your own SIEM or compliance tooling.

Select the time range with `start` and `end` (RFC 3339) or a relative `period` such as `24h`, `30d` or `this_month`; the default is the last 7 days. Repeat `type` to return only some kinds of change, for example `type=create_api_key&type=delete_api_key`. Page through results with `offset` and `limit` (up to 1000 per page) until you have read `total` logs.


## OpenAPI

````yaml GET /v1/manage/org/audit-log
openapi: 3.0.3
info:
  title: Requesty Management API
  description: >-
    Requesty Management API for API key management, groups, members, and
    organization settings.
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/org/audit-log:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    get:
      summary: List audit logs
      description: >-
        List your organization's audit logs, newest first: the same
        configuration changes shown under Audit Logs in the dashboard. Each log
        has its `type`, a human-readable `log` description and a `timestamp`;
        `total` counts every log matching the request across all pages. Select
        the time range with `start`/`end` or `period` (default `7d`, at most 365
        days), filter by one or more `type` values, and page with `offset` and
        `limit`. Requires an API key with manage read or write permission.
      operationId: listAuditLogs
      parameters:
        - name: start
          in: query
          required: false
          schema:
            type: string
            format: date-time
            example: '2026-11-01T00:00:00Z'
          description: >-
            Start of the time range in RFC 3339 format. Takes precedence over
            `period`. The range from `start` to `end` cannot exceed 365 days.
        - name: end
          in: query
          required: false
          schema:
            type: string
            format: date-time
            example: '2026-11-23T00:00:00Z'
          description: >-
            End of the time range in RFC 3339 format. Requires `start`; defaults
            to now when `start` is set without `end`. Must not be before
            `start`.
        - name: period
          in: query
          required: false
          schema:
            type: string
            default: 7d
            example: 30d
          description: >-
            Relative time range ending now, used when `start` is not set: `<N>h`
            (up to `168h`), `<N>d` (up to `365d`) or `<N>m` (30-day months, up
            to `12m`), or one of `this_week`, `this_month`, `this_quarter`,
            `this_year`. Defaults to `7d`.
        - name: type
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
            example:
              - create_api_key
              - delete_api_key
          description: >-
            Only return logs of this type, for example `create_api_key`,
            `delete_api_key` or `create_policy`. Repeat the parameter to include
            several types. An unknown type returns `400`. Omit to return every
            type.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
          description: >-
            Number of logs to skip. Defaults to 0; a negative or invalid value
            falls back to the default.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 50
          description: >-
            Maximum number of logs to return, up to 1000. Defaults to 50; a
            value outside 1 to 1000 falls back to the default.
      responses:
        '200':
          description: Successfully retrieved audit logs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAuditLogsResponse'
              example:
                logs:
                  - type: create_api_key
                    log: admin@example.com created API key Production API
                    timestamp: '2026-11-22T14:03:27Z'
                  - type: delete_api_key
                    log: admin@example.com deleted API key Old CI key
                    timestamp: '2026-11-21T09:41:05Z'
                total: 2
        '400':
          description: Bad request - invalid time range or unknown audit log type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - API key does not have manage permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ListAuditLogsResponse:
      type: object
      properties:
        logs:
          type: array
          items:
            $ref: '#/components/schemas/AuditLog'
          description: Audit logs on this page, newest first. Omitted when no logs match.
        total:
          type: integer
          format: int32
          description: >-
            Number of audit logs matching the request across all pages. Omitted
            when no logs match.
          example: 2
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
    AuditLog:
      type: object
      properties:
        type:
          type: string
          description: >-
            Kind of change recorded, for example `create_api_key` or
            `update_policy`.
          example: create_api_key
        log:
          type: string
          description: >-
            Human-readable description of the change, as shown in the dashboard.
            A log that cannot be displayed carries an error message here
            instead.
          example: admin@example.com created API key Production API
        timestamp:
          type: string
          format: date-time
          description: When the change was made, in RFC 3339 format.
          example: '2026-11-22T14:03:27Z'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````

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