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

# List audit log entries

> Who changed what in the organization, newest first, over a window of at most 90 days. Needs a key with the `admin` scope.



## OpenAPI

````yaml /openapi.json get /api/v1/organizations/{id}/audit-log/
openapi: 3.0.3
info:
  title: Go-Fetch API
  version: v1
servers:
  - url: https://go-fetch.io
security: []
tags:
  - name: Jobs
    description: >-
      A job is one scrape. Create it with a scraper type and its input, follow
      it until it is completed, failed, timed_out or cancelled, then page
      through its results.
  - name: Webhooks
    description: >-
      URLs we POST to when a job finishes, signed with your webhook secret in
      the X-Webhook-Signature header, and the log of every delivery.
  - name: Usage
    description: Billable usage, one record per charge.
  - name: Pricing
    description: List prices per platform and a cost estimate. No API key needed.
  - name: API keys
    description: >-
      Your organization's API keys. Creating, changing and rotating a key needs
      a key with the admin scope.
  - name: Organizations
    description: >-
      The organization your key belongs to: its environments, members, this
      month's usage and the audit log.
paths:
  /api/v1/organizations/{id}/audit-log/:
    get:
      tags:
        - Organizations
      summary: List audit log entries
      description: >-
        Who changed what in the organization, newest first, over a window of at
        most 90 days. Needs a key with the `admin` scope.
      operationId: organizations_audit_log_list
      parameters:
        - in: query
          name: from
          schema:
            type: string
          description: ISO date or datetime, inclusive.
          required: true
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
        - name: ordering
          required: false
          in: query
          description: Which field to use when ordering the results.
          schema:
            type: string
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
        - in: query
          name: to
          schema:
            type: string
          description: ISO date or datetime, inclusive; a date covers the whole UTC day.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedAuditLogList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedAuditLogList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/AuditLog'
    AuditLog:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        user:
          type: string
          format: email
          readOnly: true
        action:
          $ref: '#/components/schemas/ActionEnum'
        resource_type:
          type: string
          maxLength: 50
        resource_id:
          type: string
          maxLength: 255
        description:
          type: string
        changes: {}
        ip_address:
          type: string
          nullable: true
        user_agent:
          type: string
      required:
        - action
        - created_at
        - description
        - id
        - user
    ActionEnum:
      enum:
        - create
        - update
        - delete
        - login
        - logout
        - invite
        - revoke
        - login_failed
        - download
        - view
      type: string
      description: |-
        * `create` - Create
        * `update` - Update
        * `delete` - Delete
        * `login` - Login
        * `logout` - Logout
        * `invite` - Invite
        * `revoke` - Revoke
        * `login_failed` - Login failed
        * `download` - Download
        * `view` - View
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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