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

# Get events



## OpenAPI

````yaml /openapi/audit.json get /v1/audit/events/{id}/
openapi: 3.0.3
info:
  title: Yume API — Аудит
  version: 1.0.0
  description: Журнал действий и история изменений.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/audit/events/{id}/:
    get:
      tags:
        - events
      summary: Get events
      operationId: events_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditEvent'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    AuditEvent:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        action:
          type: string
          maxLength: 64
        action_label:
          type: string
          readOnly: true
        category:
          $ref: '#/components/schemas/CategoryEnum'
        category_label:
          type: string
          readOnly: true
        actor:
          type: integer
          nullable: true
        actor_type:
          $ref: '#/components/schemas/ActorTypeEnum'
        actor_type_label:
          type: string
          readOnly: true
        actor_label:
          type: string
          maxLength: 255
        subject_repr:
          type: string
          maxLength: 255
        targets:
          type: array
          items:
            $ref: '#/components/schemas/AuditTarget'
          readOnly: true
        changes:
          type: object
          additionalProperties: {}
          readOnly: true
        extra: {}
        request_id:
          type: string
          nullable: true
          maxLength: 64
        ip:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
      required:
        - action
        - action_label
        - actor_type_label
        - category
        - category_label
        - changes
        - created_at
        - id
        - targets
    CategoryEnum:
      enum:
        - order
        - inventory
        - client
        - finance
        - auth
        - staff
        - settings
        - integration
        - document
        - billing
        - storefront
        - report
        - task
      type: string
      description: |-
        * `order` - Аренда
        * `inventory` - Инвентарь
        * `client` - Клиент
        * `finance` - Финансы
        * `auth` - Доступ
        * `staff` - Сотрудники
        * `settings` - Настройки
        * `integration` - Интеграция
        * `document` - Документ
        * `billing` - Подписка
        * `storefront` - Витрина
        * `report` - Отчёты
        * `task` - Задачи
    ActorTypeEnum:
      enum:
        - user
        - client
        - anonymous
        - system
        - integration
        - platform
      type: string
      description: |-
        * `user` - Пользователь
        * `client` - Клиент
        * `anonymous` - Анонимно
        * `system` - Система
        * `integration` - Интеграция
        * `platform` - Платформа
    AuditTarget:
      type: object
      properties:
        content_type:
          type: string
          title: Имя класса модели
          readOnly: true
        content_type_label:
          type: string
          readOnly: true
        object_id:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
        role:
          $ref: '#/components/schemas/RoleEnum'
        role_label:
          type: string
          readOnly: true
      required:
        - content_type
        - content_type_label
        - object_id
        - role_label
    RoleEnum:
      enum:
        - primary
        - parent
        - related
      type: string
      description: |-
        * `primary` - Основной
        * `parent` - Родительский
        * `related` - Связанный
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````