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

# Participant Events



## OpenAPI

````yaml /openapi.json post /v1/participant/events
openapi: 3.1.0
info:
  description: Are we on the same page?
  title: Synapse
  version: 0.1.0
servers: []
security: []
paths:
  /v1/participant/events:
    post:
      tags:
        - v1-platform
      summary: Participant Events
      operationId: participant_events_v1_participant_events_post
      parameters:
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 255
            minLength: 1
            title: Idempotency-Key
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InteractionEventBatch'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionEventBatchReceipt'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Authentication required
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: State or idempotency conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: API error
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Request validation failed
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Rate or budget limit exceeded
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Internal server error
      security:
        - ParticipantToken: []
components:
  schemas:
    InteractionEventBatch:
      additionalProperties: false
      properties:
        events:
          items:
            $ref: '#/components/schemas/InteractionEventInput'
          maxItems: 100
          minItems: 1
          title: Events
          type: array
      required:
        - events
      title: InteractionEventBatch
      type: object
    InteractionEventBatchReceipt:
      properties:
        items:
          items:
            $ref: '#/components/schemas/InteractionEventReceipt'
          title: Items
          type: array
      required:
        - items
      title: InteractionEventBatchReceipt
      type: object
    ApiErrorResponse:
      additionalProperties: false
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/ErrorDetail'
            - type: string
            - items: {}
              type: array
            - additionalProperties: true
              type: object
          title: Detail
      required:
        - detail
      title: ApiErrorResponse
      type: object
    InteractionEventInput:
      additionalProperties: false
      properties:
        answer:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Answer
        client_event_id:
          maxLength: 255
          minLength: 1
          title: Client Event Id
          type: string
        elapsed_ms:
          anyOf:
            - maximum: 86400000
              minimum: 0
              type: number
            - type: 'null'
          title: Elapsed Ms
        metadata:
          additionalProperties: true
          title: Metadata
          type: object
        occurred_at:
          format: date-time
          title: Occurred At
          type: string
        previous_answer:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Previous Answer
        question_id:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Question Id
        type:
          enum:
            - session_started
            - question_viewed
            - answered
            - answer_changed
            - declined
            - skipped
            - backtracked
            - idle
            - resumed
            - completed
            - consent_accepted
            - consent_withdrawn
            - voice_session_started
          title: Type
          type: string
      required:
        - client_event_id
        - type
        - occurred_at
      title: InteractionEventInput
      type: object
    InteractionEventReceipt:
      properties:
        accepted:
          title: Accepted
          type: boolean
        client_event_id:
          title: Client Event Id
          type: string
        idempotent_replay:
          title: Idempotent Replay
          type: boolean
      required:
        - client_event_id
        - accepted
        - idempotent_replay
      title: InteractionEventReceipt
      type: object
    ErrorDetail:
      additionalProperties: false
      description: Stable structured detail returned by versioned API errors.
      properties:
        code:
          title: Code
          type: string
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
      title: ErrorDetail
      type: object
  securitySchemes:
    ParticipantToken:
      bearerFormat: spt_...
      description: Short-lived token bound to one participant session.
      scheme: bearer
      type: http

````