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

# List audit-log export reports

> List your audit-log export reports with their status, period, filters and size. Poll a single report by reference until it is completed.



## OpenAPI

````yaml get /v1/analytics/audit-logs/reports
openapi: 3.0.0
info:
  description: >-
    The Magnific API is your gateway to a vast collection of high-quality
    digital resources for your applications and projects. As a leading platform,
    it offers a wide range of graphics, including vectors, photos,
    illustrations, icons, PSD templates, and more, all curated by talented
    designers from around the world.
  title: Magnific API
  version: 1.0.0
servers:
  - description: B2B API Production V1
    url: https://api.magnific.com
security:
  - magnificApiKey: []
paths:
  /v1/analytics/audit-logs/reports:
    get:
      tags:
        - Analytics
      summary: List audit-log export reports
      description: >
        Returns the audit-log export reports of the caller's enterprise team,
        newest first:

        the ones requested through this API and the ones requested from the
        dashboard. Reports

        deleted from the dashboard are not listed.


        The list is not paginated: a call returns every report of the team. If
        paging is added

        it will be through optional query parameters, and a call without them
        will keep working

        as it does now.


        Pass `reference` to get a single report, which is how to poll an export
        until it

        finishes. A reference that does not exist, or that belongs to another
        team, yields an

        empty `data` array, not a `404`.


        A report moves `pending` → `in_progress` → `completed` or `failed`. Only
        a `completed`

        report can be downloaded. The response describes the reports, never the
        audit events

        themselves.


        Same authentication, plan and role requirements as

        `POST /v1/analytics/audit-logs/export`, and the same shared daily limit
        of 50,000

        requests per API key: keep the polling interval at a few seconds or
        more.
      parameters:
        - description: >-
            Return only the report with this reference (the `id` returned by the
            export request).
          example: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
          in: query
          name: reference
          required: false
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                success:
                  $ref: '#/components/examples/200-analytics-audit-logs-reports'
                unknown_reference:
                  summary: Unknown reference - empty list
                  value:
                    data: []
              schema:
                $ref: >-
                  #/components/schemas/_v1_analytics_audit_logs_reports_get_200_response
          description: OK
        '400':
          content:
            application/json:
              examples:
                invalid_reference:
                  summary: '`reference` is not a UUID'
                  value:
                    code: invalid_request
                    message: not-a-uuid is not a valid UUID
              schema:
                $ref: '#/components/schemas/audit-log-error'
          description: Bad Request - `reference` is not a valid UUID.
        '403':
          content:
            application/json:
              examples:
                key_not_enterprise:
                  summary: The API key is not an enterprise one
                  value:
                    message: You are not authorized to access this endpoint.
              schema:
                $ref: '#/components/schemas/audit-log-forbidden-error'
          description: >-
            Forbidden - the API key is not an enterprise one, or the member it
            belongs to is not allowed to access audit logs. The first case is
            answered before the request reaches the API and carries only
            `message`; the second carries `code: forbidden` too.
        '429':
          $ref: '#/components/responses/429-too-many-requests'
        '500':
          $ref: '#/components/responses/500-internal-server-error'
        '503':
          $ref: '#/components/responses/503-service-unavailable'
components:
  examples:
    200-analytics-audit-logs-reports:
      summary: Success - Reports of the team, newest first.
      value:
        data:
          - reference: 7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70
            name: Report 7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70
            status: pending
            period:
              from: '2026-10-01T00:00:00.000Z'
              to: '2026-10-31T00:00:00.000Z'
            requested_by: 10499812
            filters:
              users:
                - 10499812
              groups:
                - 10
                - 20
            file_size: null
            error_message: null
            created_at: '2026-11-23T09:20:03.000Z'
            completed_at: null
          - reference: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            name: Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            status: completed
            period:
              from: '2026-07-01T00:00:00.000Z'
              to: '2026-09-30T00:00:00.000Z'
            requested_by: 10499812
            filters: {}
            file_size: 1048576
            error_message: null
            created_at: '2026-11-23T09:14:52.000Z'
            completed_at: '2026-11-23T09:15:40.000Z'
  schemas:
    _v1_analytics_audit_logs_reports_get_200_response:
      example:
        data:
          - reference: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            error_message: error_message
            completed_at: '2026-11-23T09:15:40.000Z'
            period:
              from: '2026-07-01T00:00:00.000Z'
              to: '2026-09-30T00:00:00.000Z'
            requested_by: 10499812
            name: Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            created_at: '2026-11-23T09:14:52.000Z'
            filters: ''
            file_size: 1048576
            status: completed
          - reference: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            error_message: error_message
            completed_at: '2026-11-23T09:15:40.000Z'
            period:
              from: '2026-07-01T00:00:00.000Z'
              to: '2026-09-30T00:00:00.000Z'
            requested_by: 10499812
            name: Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
            created_at: '2026-11-23T09:14:52.000Z'
            filters: ''
            file_size: 1048576
            status: completed
      properties:
        data:
          items:
            $ref: '#/components/schemas/audit-log-report'
          type: array
      required:
        - data
      type: object
    audit-log-error:
      description: Error answered by the audit-logs export endpoints.
      example:
        code: invalid_request
        message: message
      properties:
        code:
          description: >-
            Machine-readable error code, stable across releases. Branch on this,
            not on `message`.
          example: invalid_request
          type: string
        message:
          description: Human-readable explanation. Its wording may change.
          type: string
      required:
        - code
        - message
      type: object
    audit-log-forbidden-error:
      description: >-
        `403` of the audit-logs export endpoints. `code` is missing when the
        request is rejected before it reaches the API (an API key that is not an
        enterprise one).
      example:
        code: forbidden
        message: message
      properties:
        code:
          description: >-
            Machine-readable error code. `forbidden` when the member is not
            allowed to access audit logs.
          example: forbidden
          type: string
        message:
          description: Human-readable explanation. Its wording may change.
          type: string
      required:
        - message
      type: object
    audit-log-report:
      description: >-
        An audit-log export report. Every property is always present; some can
        be `null`.
      example:
        reference: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
        error_message: error_message
        completed_at: '2026-11-23T09:15:40.000Z'
        period:
          from: '2026-07-01T00:00:00.000Z'
          to: '2026-09-30T00:00:00.000Z'
        requested_by: 10499812
        name: Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
        created_at: '2026-11-23T09:14:52.000Z'
        filters: ''
        file_size: 1048576
        status: completed
      properties:
        reference:
          description: Identifier of the report.
          example: 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
          format: uuid
          type: string
        name:
          description: >-
            Display name. `Report {reference}` when created; it can be renamed
            from the dashboard. `null` only on a report stored without a name.
          example: Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c
          nullable: true
          type: string
        status:
          description: >-
            `pending` and `in_progress` while the file is being generated;
            `completed` once it can be downloaded; `failed` when it could not be
            generated (see `error_message`).
          enum:
            - pending
            - in_progress
            - completed
            - failed
          example: completed
          type: string
        period:
          $ref: '#/components/schemas/audit_log_report_period'
        requested_by:
          description: >-
            User ID of the member who requested the report: for a report
            requested through the API, the member the API key belongs to. `null`
            when support generated it on the team's behalf.
          example: 10499812
          nullable: true
          type: integer
        filters:
          allOf:
            - $ref: '#/components/schemas/audit-log-export-filters'
          description: >-
            Filters the report was requested with. Only the filters that were
            set appear; an empty object means the report is not filtered.
        file_size:
          description: >-
            Size in bytes of the downloadable ZIP archive. `null` until the
            report is `completed`.
          example: 1048576
          format: int64
          minimum: 0
          nullable: true
          type: integer
        error_message:
          description: Why the report failed. `null` unless `status` is `failed`.
          nullable: true
          type: string
          example: null
        created_at:
          description: When the report was requested (ISO-8601).
          example: '2026-11-23T09:14:52.000Z'
          format: date-time
          type: string
        completed_at:
          description: >-
            When the report reached `completed` or `failed` (ISO-8601). `null`
            before that.
          example: '2026-11-23T09:15:40.000Z'
          format: date-time
          nullable: true
          type: string
      required:
        - completed_at
        - created_at
        - error_message
        - file_size
        - filters
        - name
        - period
        - reference
        - requested_by
        - status
      type: object
    inline_object:
      example:
        message: message
        request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
      properties:
        request_id:
          description: >-
            Identifier of the HTTP request, the same value as the `X-Request-Id`
            response header. The API gateway adds it to every error response of
            the public API (`/v1` on `api.magnific.com` and `api.magnific.com`),
            so it is absent when a service is called directly, without the
            gateway. Include it when you contact support. It identifies the
            request, not a task.
          example: ak-97f5c07b9dd04324842b8f8b55a0edf1
          type: string
        message:
          type: string
      type: object
    inline_object_2:
      example:
        message: Internal Server Error
        request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
      properties:
        request_id:
          description: >-
            Identifier of the HTTP request, the same value as the `X-Request-Id`
            response header. The API gateway adds it to every error response of
            the public API (`/v1` on `api.magnific.com` and `api.magnific.com`),
            so it is absent when a service is called directly, without the
            gateway. Include it when you contact support. It identifies the
            request, not a task.
          example: ak-97f5c07b9dd04324842b8f8b55a0edf1
          type: string
        message:
          example: Internal Server Error
          type: string
      type: object
    inline_object_3:
      example:
        message: Service Unavailable. Please try again later.
        request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
      properties:
        request_id:
          description: >-
            Identifier of the HTTP request, the same value as the `X-Request-Id`
            response header. The API gateway adds it to every error response of
            the public API (`/v1` on `api.magnific.com` and `api.magnific.com`),
            so it is absent when a service is called directly, without the
            gateway. Include it when you contact support. It identifies the
            request, not a task.
          example: ak-97f5c07b9dd04324842b8f8b55a0edf1
          type: string
        message:
          example: Service Unavailable. Please try again later.
          type: string
      type: object
    audit_log_report_period:
      description: Range the report covers, both days inclusive.
      example:
        from: '2026-07-01T00:00:00.000Z'
        to: '2026-09-30T00:00:00.000Z'
      properties:
        from:
          example: '2026-07-01T00:00:00.000Z'
          format: date
          type: string
        to:
          example: '2026-09-30T00:00:00.000Z'
          format: date
          type: string
      required:
        - from
        - to
      type: object
    audit-log-export-filters:
      description: >-
        Narrows the export. An event must match every filter that is set; within
        one filter, any of its values. Repeated values are ignored. An absent or
        empty filter does not narrow.
      properties:
        users:
          description: Only events whose actor is one of these user IDs.
          example:
            - 10499812
          items:
            minimum: 1
            type: integer
          type: array
        groups:
          description: Only events of these team group IDs.
          example:
            - 10
            - 20
          items:
            minimum: 1
            type: integer
          type: array
        folders:
          description: Only events of these folder (project) references.
          example:
            - a1b2c3d4-1111-4000-8000-000000000001
          items:
            minLength: 1
            type: string
          type: array
      type: object
  responses:
    429-too-many-requests:
      content:
        application/json:
          examples:
            generic:
              summary: Generic message for 429 errors
              value:
                request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
                message: Too many requests
            download_limit_reached:
              summary: The download limits has been reached.
              value:
                request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
                message: >-
                  The user can't download more items because the download limits
                  has been reached.
            edit_limit_reached:
              summary: Free user icon edit limits has been reached.
              value:
                request_id: ak-97f5c07b9dd04324842b8f8b55a0edf1
                message: Limit for free users reached.
          schema:
            $ref: '#/components/schemas/inline_object'
      description: >-
        Too Many Requests - The client has sent too many requests in a given
        amount of time.
    500-internal-server-error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/inline_object_2'
      description: >-
        Internal Server Error - The server has encountered a situation it
        doesn't know how to handle.
    503-service-unavailable:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/inline_object_3'
      description: Service Unavailable
  securitySchemes:
    magnificApiKey:
      description: >
        Your Magnific API key. Required for authentication. [Learn how to obtain
        an API key](https://docs.magnific.com/quickstart)
      in: header
      name: x-magnific-api-key
      type: apiKey

````

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