> ## 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 events

> Audit-log events of your team, newest first, a page at a time.



## OpenAPI

````yaml openapi/magnific-api-v2-openapi.yaml GET /v2/team/audit-logs/events
openapi: 3.1.0
info:
  title: Magnific API v2 — Team
  version: 2.0.0
  description: >-
    Read and manage your team with the Magnific API v2: members, groups, API
    keys, credit limits, the total budget (beta), tool permissions, credit usage
    and audit logs. Authenticate with a personal token or with an API key in
    `x-magnific-api-key`; each operation names the scope a personal token needs
    (`api:read`, `api:write` or `api:destructive`). Errors are JSON `{code,
    message, details?, request_id?}`. Listings page with `limit` and `cursor`,
    and answer `meta.pagination.next_cursor`.
servers:
  - description: Production V2
    url: https://api.magnific.com
security:
  - magnificApiKey: []
  - bearerAuth: []
tags:
  - description: Members and invitations of your team.
    name: Members
  - description: Groups of your team.
    name: Groups
  - description: API keys of your team.
    name: API keys
  - description: Credit limits and the total budget.
    name: Budgets
  - description: Tool permissions of the organization, groups and members.
    name: Permissions
  - description: Credit usage and project budgets.
    name: Analytics
  - description: Audit-log events and reports.
    name: Audit logs
paths:
  /v2/team/audit-logs/events:
    get:
      tags:
        - Audit logs
      summary: List audit-log events
      description: >-
        Audit-log events of your team, newest first. Enterprise; needs the
        audit-logs permission.


        A personal token needs `api:read`.
      operationId: team_audit_log_events_list
      parameters:
        - description: >-
            Personal token only: the team the call acts on (its UUID). The
            caller must be an active member of it. Without it, the team in the
            token is used; with neither, the call is `team_required` (400).
            Ignored for an API key, which always acts on its own team.
          example: 8a5b79ee-5d57-4ce0-b3e2-a00fbfed3ba5
          in: header
          name: x-magnific-team-id
          required: false
          schema:
            format: uuid
            type: string
        - description: Items per page.
          in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            type: integer
        - description: >-
            `meta.pagination.next_cursor` of the previous page. Opaque: pass it
            back as received.
          in: query
          name: cursor
          required: false
          schema:
            maxLength: 512
            type: string
        - in: query
          name: date_from
          required: false
          schema:
            format: date
            type: string
        - in: query
          name: date_to
          required: false
          schema:
            format: date
            type: string
        - description: Only these members (up to 50), by `member_id`. Comma-separated.
          example: usr_a3f81c2d9e4b7f60
          in: query
          name: member_id
          required: false
          schema:
            type: string
        - description: Only these groups. Comma-separated.
          example: '10'
          in: query
          name: group_id
          required: false
          schema:
            type: string
        - description: Only these project or folder references. Comma-separated.
          example: a1b2c3d4-1111-4000-8000-000000000001
          in: query
          name: folder_id
          required: false
          schema:
            type: string
        - description: Only these event types. Comma-separated.
          example: creation.executed
          in: query
          name: event_type
          required: false
          schema:
            type: string
        - in: query
          name: request_id
          required: false
          schema:
            type: string
        - in: query
          name: auth_type
          required: false
          schema:
            enum:
              - api_key
              - session
            type: string
        - description: Only these API keys (up to 50). Comma-separated.
          example: 00000000-0000-4000-8000-000000000001
          in: query
          name: api_key_id
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Teamteam_audit_log_events_list_200_response
          description: A page of events.
        '400':
          $ref: '#/components/responses/Team400-team-required'
        '401':
          $ref: '#/components/responses/Team401-unauthenticated'
        '403':
          $ref: '#/components/responses/Team403-forbidden'
        '404':
          $ref: '#/components/responses/Team404-not-found'
        '422':
          $ref: '#/components/responses/Team422-validation-failed'
        '429':
          $ref: '#/components/responses/Team429-rate-limited'
        '500':
          $ref: '#/components/responses/Team500-server-error'
        '503':
          $ref: '#/components/responses/Team503-service-unavailable'
      security:
        - magnificApiKey: []
        - bearerAuth: []
components:
  schemas:
    Teamteam_audit_log_events_list_200_response:
      example:
        data:
          - date: '2026-11-19 11:38:11.275000+00:00'
            event_id: b3d1f0a2-9c4e-4a1b-8f2d-1a2b3c4d5e6f
            member:
              member_id: ''
              auth:
                type: api_key
                api_key_id: api_key_id
                api_key_name: api_key_name
              type: user
              email: admin@example.com
            action:
              data:
                key: ''
              verb: updated
              folder_name: folder_name
              project_name: project_name
              duration_ms: 0
              event_type: creation.executed
              old_state:
                key: ''
              context: ''
              resource_id: resource_id
              correlation_id: correlation_id
              new_state:
                key: ''
              request_id: request_id
              status: success
            source:
              ip: ip
              platform: platform
              user_agent: user_agent
            category: member
          - date: '2026-11-19 11:38:11.275000+00:00'
            event_id: b3d1f0a2-9c4e-4a1b-8f2d-1a2b3c4d5e6f
            member:
              member_id: ''
              auth:
                type: api_key
                api_key_id: api_key_id
                api_key_name: api_key_name
              type: user
              email: admin@example.com
            action:
              data:
                key: ''
              verb: updated
              folder_name: folder_name
              project_name: project_name
              duration_ms: 0
              event_type: creation.executed
              old_state:
                key: ''
              context: ''
              resource_id: resource_id
              correlation_id: correlation_id
              new_state:
                key: ''
              request_id: request_id
              status: success
            source:
              ip: ip
              platform: platform
              user_agent: user_agent
            category: member
        meta:
          pagination:
            next_cursor: bzo1MA
            has_more: true
          available_from: available_from
      properties:
        data:
          items:
            $ref: '#/components/schemas/Teamaudit_event'
          type: array
        meta:
          $ref: >-
            #/components/schemas/Teamteam_audit_log_events_list_200_response_meta
      required:
        - data
        - meta
      type: object
    Teamaudit_event:
      description: >-
        An audit-log event. The free-form objects (`action.data`,
        `action.old_state`, `action.new_state`) carry only vetted public keys,
        which vary by `action.event_type`.
      example:
        date: '2026-11-19 11:38:11.275000+00:00'
        event_id: b3d1f0a2-9c4e-4a1b-8f2d-1a2b3c4d5e6f
        member:
          member_id: ''
          auth:
            type: api_key
            api_key_id: api_key_id
            api_key_name: api_key_name
          type: user
          email: admin@example.com
        action:
          data:
            key: ''
          verb: updated
          folder_name: folder_name
          project_name: project_name
          duration_ms: 0
          event_type: creation.executed
          old_state:
            key: ''
          context: ''
          resource_id: resource_id
          correlation_id: correlation_id
          new_state:
            key: ''
          request_id: request_id
          status: success
        source:
          ip: ip
          platform: platform
          user_agent: user_agent
        category: member
      properties:
        event_id:
          example: b3d1f0a2-9c4e-4a1b-8f2d-1a2b3c4d5e6f
          type: string
        date:
          example: '2026-11-19 11:38:11.275000+00:00'
          format: date-time
          type: string
        action:
          $ref: '#/components/schemas/Teamaudit_event_action'
        member:
          $ref: '#/components/schemas/Teamaudit_event_member'
        category:
          example: member
          type:
            - string
            - 'null'
        source:
          $ref: '#/components/schemas/Teamaudit_event_source'
      type: object
    Teamteam_audit_log_events_list_200_response_meta:
      allOf:
        - $ref: '#/components/schemas/Teampagination_meta'
        - properties:
            available_from:
              description: Date of the oldest event of the team, on the first page.
              type:
                - string
                - 'null'
          type: object
      example:
        pagination:
          next_cursor: bzo1MA
          has_more: true
        available_from: available_from
    Teamerror:
      description: The body of every error of API v2.
      example:
        code: validation_failed
        details:
          required_scope: api:write
          errors:
            key:
              - errors
              - errors
        message: Validation error.
        request_id: 0f8c2c1e8d6a4b7f
      properties:
        code:
          description: >-
            Stable, for code: `team_required`, `unauthenticated`,
            `insufficient_scope`, `magnific_api_disabled`, `forbidden`,
            `not_found`, `conflict`, `validation_failed`, `upgrade_required`,
            `rate_limited`, `upstream_error`, `service_unavailable`,
            `server_error`... Each response lists the codes it carries.
          example: validation_failed
          type: string
        message:
          description: For people. The text can change.
          example: Validation error.
          type: string
        details:
          $ref: '#/components/schemas/Teamerror_details'
        request_id:
          description: >-
            The request's id, the same as the `X-Request-Id` response header.
            Share it with support.
          example: 0f8c2c1e8d6a4b7f
          type: string
      required:
        - code
        - message
      type: object
    Teamaudit_event_action:
      additionalProperties: true
      example:
        data:
          key: ''
        verb: updated
        folder_name: folder_name
        project_name: project_name
        duration_ms: 0
        event_type: creation.executed
        old_state:
          key: ''
        context: ''
        resource_id: resource_id
        correlation_id: correlation_id
        new_state:
          key: ''
        request_id: request_id
        status: success
      properties:
        event_type:
          description: >-
            New types can appear: treat an unknown one as a new event, not an
            error.
          example: creation.executed
          type: string
        verb:
          example: updated
          type: string
        status:
          example: success
          type: string
        resource_id:
          type:
            - string
            - 'null'
        request_id:
          type:
            - string
            - 'null'
        correlation_id:
          type:
            - string
            - 'null'
        old_state:
          additionalProperties: true
          type:
            - object
            - 'null'
        new_state:
          additionalProperties: true
          type:
            - object
            - 'null'
        duration_ms:
          type:
            - integer
            - 'null'
        data:
          additionalProperties: true
          type: object
        context: {}
        project_name:
          type:
            - string
            - 'null'
        folder_name:
          type:
            - string
            - 'null'
      type: object
    Teamaudit_event_member:
      description: >-
        The actor. An action done with an API key is the member who created the
        key.
      example:
        member_id: ''
        auth:
          type: api_key
          api_key_id: api_key_id
          api_key_name: api_key_name
        type: user
        email: admin@example.com
      properties:
        member_id:
          description: '`null` for a system actor.'
          anyOf:
            - allOf:
                - $ref: '#/components/schemas/Teammember_id'
            - type: 'null'
        type:
          example: user
          type: string
        email:
          example: admin@example.com
          type:
            - string
            - 'null'
        auth:
          $ref: '#/components/schemas/Teamaudit_event_member_auth'
      type: object
    Teamaudit_event_source:
      additionalProperties: true
      example:
        ip: ip
        platform: platform
        user_agent: user_agent
      properties:
        platform:
          type:
            - string
            - 'null'
        ip:
          type:
            - string
            - 'null'
        user_agent:
          type:
            - string
            - 'null'
      type: object
    Teampagination_meta:
      properties:
        pagination:
          $ref: '#/components/schemas/Teampagination_meta_pagination'
      required:
        - pagination
      type: object
    Teamerror_details:
      additionalProperties: true
      description: >-
        What the refusal knows: `errors` lists the validation messages by field,
        `required_scope` names the scope an `insufficient_scope` error lacks,
        `minimum_credits` the lowest total budget allowed.
      example:
        required_scope: api:write
        errors:
          key:
            - errors
            - errors
      properties:
        errors:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
        required_scope:
          example: api:write
          type: string
      type: object
    Teammember_id:
      description: >-
        Stable, opaque id of a member in your team. It is the same value as
        `user_reference` in the credit usage, and it differs from team to team
        for the same person.
      example: usr_a3f81c2d9e4b7f60
      pattern: ^usr_[0-9a-f]{16}$
      type: string
    Teamaudit_event_member_auth:
      example:
        type: api_key
        api_key_id: api_key_id
        api_key_name: api_key_name
      properties:
        type:
          enum:
            - api_key
            - session
          type: string
        api_key_id:
          type:
            - string
            - 'null'
        api_key_name:
          type:
            - string
            - 'null'
      type: object
    Teampagination_meta_pagination:
      example:
        next_cursor: bzo1MA
        has_more: true
      properties:
        has_more:
          description: Whether another page follows.
          example: true
          type: boolean
        next_cursor:
          description: >-
            Pass it as `cursor` to read the next page. `null` on the last page.
            Opaque.
          example: bzo1MA
          type:
            - string
            - 'null'
      required:
        - has_more
        - next_cursor
      type: object
  responses:
    Team400-team-required:
      content:
        application/json:
          example:
            code: team_required
            message: 'No team: send x-magnific-team-id with the team id (a UUID).'
            request_id: 0f8c2c1e8d6a4b7f
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `team_required`: a personal token that names no team. Send
        `x-magnific-team-id`. Answered by the gateway.
    Team401-unauthenticated:
      content:
        application/json:
          example:
            code: unauthenticated
            message: Unauthenticated.
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: '`unauthenticated`: missing, invalid or expired credentials.'
    Team403-forbidden:
      content:
        application/json:
          examples:
            insufficient_scope:
              value:
                code: insufficient_scope
                message: Forbidden
                details:
                  required_scope: api:write
            magnific_api_disabled:
              value:
                code: magnific_api_disabled
                message: Magnific API is disabled for this organization.
            forbidden:
              value:
                code: forbidden
                message: You do not have permission to perform this action.
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `insufficient_scope`: the personal token or API key lacks the
        operation's scope (`details.required_scope`). `magnific_api_disabled`:
        the organization switched the Magnific API off. `forbidden`: the
        caller's role can't do this, on this resource, or the plan has no
        analytics.
    Team404-not-found:
      content:
        application/json:
          example:
            code: not_found
            message: Not Found
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `not_found`: no such member, group, API key or report in your team, or
        the route does not exist for your credential.
    Team422-validation-failed:
      content:
        application/json:
          example:
            code: validation_failed
            message: Validation error.
            details:
              errors:
                limit:
                  - This value should be an integer between 1 and 100.
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `validation_failed`: the body or the query is not valid. Field errors
        are listed by field in `details.errors`; a field or parameter the
        operation does not take is refused as not supported. A rule the domain
        checks comes with only `message`.
    Team429-rate-limited:
      content:
        application/json:
          example:
            code: rate_limited
            message: Too many requests
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `rate_limited`: too many requests. Wait the seconds in `Retry-After`.
        Answered by the gateway.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            example: 60
            type: integer
    Team500-server-error:
      content:
        application/json:
          example:
            code: server_error
            message: Internal Server error
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `server_error`: unexpected error. Retry; if it keeps failing, share the
        `request_id` with support.
    Team503-service-unavailable:
      content:
        application/json:
          example:
            code: service_unavailable
            message: Service Unavailable
          schema:
            $ref: '#/components/schemas/Teamerror'
      description: >-
        `service_unavailable`: the credential or the team could not be checked,
        or a search timed out. Retry later.
  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
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Personal access token. Reads need the `api:read` scope; changes (team,
        budgets, audit-log exports) need `api:write`. Pick the team with
        `x-magnific-team-id`.

````

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