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

# Enqueue a distinct Claude event once across webhook and stream transports



## OpenAPI

````yaml /api-reference/openapi.json post /v2/sessions/-/enqueue-claude-event
openapi: 3.1.0
info:
  title: Base39 API
  description: Base39 API
  version: 1.0.0
  contact:
    name: Base39 Team
    url: https://base39.com.br
    email: suporte@base39.com.br
  termsOfService: https://base39.com.br/termos
  license:
    name: Proprietary
    url: https://base39.com.br/termos
servers:
  - url: http://localhost:3000
    description: Local
  - url: https://api.dev.base39.cloud
    description: Development
  - url: https://api.base39.com.br
    description: Production
security:
  - OAuth2: []
tags:
  - name: pages
    description: Profiles and reports pages
  - name: pipelines
    description: Pipeline boards (kanban) of pages
  - name: blocks
    description: Blocks operations
  - name: search
    description: Search across content
  - name: targets
    description: Lookup targets via datasets
  - name: CognitoTriggers
    description: Cognito triggers
paths:
  /v2/sessions/-/enqueue-claude-event:
    post:
      tags:
        - sessions
      summary: >-
        Enqueue a distinct Claude event once across webhook and stream
        transports
      operationId: sessions_enqueue_claude_event
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClaudeEventEnqueueInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaudeEventEnqueueOutput'
components:
  schemas:
    ClaudeEventEnqueueInput:
      type: object
      properties:
        event_name:
          type: string
          description: Canonical Claude event handled by the queue
          enum:
            - session.outcome_evaluation_ended
          example: session.outcome_evaluation_ended
        event_id:
          type: string
          description: Provider event id from the transport
          example: wevt_123
        source_event_type:
          type: string
          description: Provider event type that observed the canonical event
          enum:
            - session.outcome_evaluation_ended
            - session.idled
            - session.status_idled
        resource_id:
          type: string
          description: Provider resource id used by the canonical event
          example: sesn_123
        semantic_id:
          type: string
          description: >-
            Session output file id used to deduplicate processing across
            transports
          example: file_123
        organization_id:
          type: string
        workspace_id:
          type: string
        created_at:
          type: string
      required:
        - event_name
        - event_id
        - source_event_type
        - resource_id
        - semantic_id
        - organization_id
        - workspace_id
        - created_at
    ClaudeEventEnqueueOutput:
      type: object
      properties:
        enqueued:
          type: boolean
        job_id:
          type: string
        deduplication_id:
          type: string
      required:
        - enqueued
        - job_id
        - deduplication_id
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.local.base39.cloud/oauth2/authorize
          tokenUrl: https://id.local.base39.cloud/oauth2/token
          scopes:
            profile: Read user profile
            email: Read user email
            openid: OpenID authentication
      description: OAuth2 Authorization Code flow

````