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

# Retrieve recent audit events across the organisation.



## OpenAPI

````yaml /openapi/v1.yaml get /events
openapi: 3.1.0
info:
  title: Attexra API
  version: 0.1.0
  description: >-
    Identity, scoped authorization, and auditable action evidence for autonomous
    agents. The MVP is non-custodial and does not execute payments.
servers:
  - url: /v1
    description: Current API server
  - url: https://api.attexra.example/v1
    description: Production example
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /events:
    get:
      summary: Retrieve recent audit events across the organisation.
      operationId: listOrganisationEvents
      parameters:
        - in: query
          name: agentId
          required: false
          schema:
            type: string
            format: uuid
        - in: query
          name: eventType
          required: false
          schema:
            type: string
        - $ref: '#/components/parameters/LimitParam'
        - $ref: '#/components/parameters/CursorParam'
      responses:
        '200':
          description: Audit events.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditEvent'
                  nextCursor:
                    type: string
components:
  parameters:
    LimitParam:
      in: query
      name: limit
      required: false
      description: Page size (1 to 100, default 50).
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    CursorParam:
      in: query
      name: cursor
      required: false
      description: Opaque pagination cursor returned as nextCursor by the previous page.
      schema:
        type: string
  schemas:
    AuditEvent:
      type: object
      required:
        - id
        - eventType
        - occurredAt
        - data
      properties:
        id:
          type: string
          format: uuid
        agentId:
          type: string
          format: uuid
          nullable: true
        agentName:
          type: string
        eventType:
          type: string
        correlationId:
          type: string
          format: uuid
          nullable: true
        occurredAt:
          type: string
          format: date-time
        data:
          type: object
          additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Console session token (also supported via attexra_session HttpOnly
        cookie).

````

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