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

# Record benchmark activity events

> Batch-insert benchmark activity events collected by the frontend for the authenticated user.



## OpenAPI

````yaml https://api.nugen.in/openapi-public.json post /api/v3/benchmark/events
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: 'Nugen Intelligence : Powering Specialized Intelligence At Scale'
  version: 25.4.20
servers: []
security: []
paths:
  /api/v3/benchmark/events:
    post:
      tags:
        - Benchmark
      summary: Record benchmark activity events
      description: >-
        Batch-insert benchmark activity events collected by the frontend for the
        authenticated user.
      operationId: record_benchmark_events
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BenchmarkEventsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BenchmarkEventsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BenchmarkEventsRequest:
      properties:
        workflow_id:
          type: string
          title: Workflow Id
          description: >-
            Frontend-generated workflow ID linking all benchmark events in this
            session
        events:
          items:
            $ref: '#/components/schemas/BenchmarkEvent'
          type: array
          title: Events
          description: >-
            List of benchmark events; same benchmark_id can appear multiple
            times with different event types
      type: object
      required:
        - workflow_id
        - events
      title: BenchmarkEventsRequest
    BenchmarkEventsResponse:
      properties:
        recorded:
          type: integer
          title: Recorded
          description: Number of events successfully recorded
        message:
          type: string
          title: Message
          description: Confirmation message
      type: object
      required:
        - recorded
        - message
      title: BenchmarkEventsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BenchmarkEvent:
      properties:
        benchmark_id:
          type: string
          title: Benchmark Id
          description: Benchmark ID this event relates to
        event_type:
          $ref: '#/components/schemas/BenchmarkEventType'
          description: Type of benchmark action performed
        timestamp:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Timestamp
          description: >-
            Timestamp when the event occurred (stored as IST); defaults to
            server IST now if omitted
        doc_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Id
          description: Document ID associated with the event
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
          description: Additional event context
      type: object
      required:
        - benchmark_id
        - event_type
      title: BenchmarkEvent
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    BenchmarkEventType:
      type: string
      enum:
        - generated
        - upload
        - download
        - view
        - delete
        - list
      title: BenchmarkEventType
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````