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

# Get analysis relevant events

> Eventos relevantes (fatos observados) identificados na análise, com suas entidades e evidências associadas.



## OpenAPI

````yaml https://api.qa.nlbs.ai/api/openapi.json get /analyses/{analysis_uuid}/events
openapi: 3.1.0
info:
  description: >-
    NL Labs AI AML API. Use Bearer API keys for protected endpoints. The /live
    and /ready probes are public.
  title: NL Labs AI
  version: 0.1.0
servers:
  - url: https://api.qa.nlbs.ai/api
security:
  - ApiKeyAuth: []
tags:
  - description: Runtime health checks and source freshness endpoints.
    name: health
  - description: Canonical entity lookup endpoints used before starting analyses.
    name: entities
  - description: AML analysis creation, status, result, and debug endpoints.
    name: analyses
  - description: Regulatory report (Motor 2) creation, status, result, and debug endpoints.
    name: reports
  - description: Versioned deterministic rules catalog endpoints.
    name: rules
  - description: Versioned regulatory reference catalog endpoints.
    name: regulatory
  - description: Webhook endpoint configuration and delivery-event operations.
    name: webhooks
paths:
  /analyses/{analysis_uuid}/events:
    get:
      tags:
        - analyses
      summary: Get analysis relevant events
      description: >-
        Eventos relevantes (fatos observados) identificados na análise, com suas
        entidades e evidências associadas.
      operationId: get_analysis_events
      parameters:
        - description: UUID da execução da análise.
          in: path
          name: analysis_uuid
          required: true
          schema:
            description: UUID da execução da análise.
            format: uuid
            title: Analysis Uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisEventsResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, expired, or invalid Bearer API key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The authenticated API key does not have the required scope.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Analysis was not found.
        '422':
          description: >-
            Invalid request body, path parameter, query parameter, or business
            rule.
      security:
        - HTTPBearer: []
components:
  schemas:
    AnalysisEventsResponse:
      properties:
        relevant_events:
          items:
            $ref: '#/components/schemas/RelevantEvent'
          title: Relevant Events
          type: array
          description: Lista de eventos relevantes.
      title: AnalysisEventsResponse
      type: object
      description: Eventos relevantes (fatos observados) identificados na análise.
    ErrorResponse:
      properties:
        detail:
          description: Stable public error message.
          examples:
            - Resource not found.
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    RelevantEvent:
      additionalProperties: false
      description: >-
        Timeline projection of a fact considered relevant to the analysis.


        `key` is the deterministic, public identity of the fact. It drives
        consolidation, auditing,

        and frontend reference, and must never be derived from the title,
        description, list index, or

        execution order. When a canonical record backs the fact, the key should
        encode that stable

        identity plus the event subtype (e.g.
        ``sanction:{sanction_uuid}:publication``).
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        entities:
          items:
            $ref: '#/components/schemas/EntityReference'
          title: Entities
          type: array
        evidence_keys:
          items:
            type: string
          title: Evidence Keys
          type: array
        key:
          minLength: 1
          title: Key
          type: string
        metadata:
          additionalProperties: true
          title: Metadata
          type: object
        occurred_at:
          anyOf:
            - format: date-time
              type: string
            - format: date
              type: string
          title: Occurred At
        pillar:
          anyOf:
            - $ref: '#/components/schemas/PillarCode'
            - type: 'null'
        signal_codes:
          items:
            type: string
          title: Signal Codes
          type: array
        title:
          minLength: 1
          title: Title
          type: string
      required:
        - key
        - occurred_at
        - title
      title: RelevantEvent
      type: object
    EntityReference:
      additionalProperties: false
      description: Stable reference to a canonical person or organization.
      properties:
        display_name:
          minLength: 1
          title: Display Name
          type: string
        entity_id:
          exclusiveMinimum: 0
          title: Entity Id
          type: integer
        entity_type:
          $ref: '#/components/schemas/EntityType'
      required:
        - entity_id
        - entity_type
        - display_name
      title: EntityReference
      type: object
    PillarCode:
      description: Official Motor 1 v1 measurable AML risk pillars.
      enum:
        - sanc
        - estru
        - jud
        - pep
        - juris
      title: PillarCode
      type: string
    EntityType:
      enum:
        - person
        - organization
        - government_agency
        - financial_institution
        - political_party
        - foreign_entity
        - vessel
        - aircraft
      title: EntityType
      type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````