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

# Post apiv2publicfunnel analytics



## OpenAPI

````yaml https://api.osiro.com/doc post /api/v2/public/funnel/{id}/analytics
openapi: 3.0.0
info:
  title: Osiro API
  version: 1.0.0
servers: []
security: []
paths:
  /api/v2/public/funnel/{id}/analytics:
    post:
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FunnelAnalyticsBatch'
      responses:
        '200':
          description: Events received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunnelAnalyticsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    FunnelAnalyticsBatch:
      type: object
      properties:
        events:
          type: array
          items:
            type: object
            properties:
              eventId:
                type: string
                format: uuid
              eventType:
                type: string
                enum:
                  - funnel_started
                  - step_viewed
                  - step_completed
                  - form_submitted
                  - form_error
                  - answer_recorded
              sessionId:
                type: string
              funnelId:
                type: string
                format: uuid
              stepId:
                type: string
              stepIndex:
                type: integer
              timestamp:
                type: string
                format: date-time
              deviceType:
                type: string
                enum:
                  - mobile
                  - tablet
                  - desktop
              browser:
                type: string
                enum:
                  - chrome
                  - firefox
                  - safari
                  - edge
                  - opera
                  - samsung
                  - other
              os:
                type: string
                enum:
                  - ios
                  - android
                  - macos
                  - windows
                  - linux
                  - other
              pageUrl:
                type: string
              referrer:
                type: string
              language:
                type: string
              utmSource:
                type: string
              utmMedium:
                type: string
              utmCampaign:
                type: string
              utmTerm:
                type: string
              utmContent:
                type: string
              payload:
                type: object
                additionalProperties:
                  nullable: true
              version:
                type: integer
                minimum: 1
                default: 1
            required:
              - eventId
              - eventType
              - sessionId
              - funnelId
              - timestamp
              - deviceType
              - browser
              - os
              - pageUrl
              - referrer
              - language
              - payload
          minItems: 1
          maxItems: 20
      required:
        - events
    FunnelAnalyticsResponse:
      type: object
      properties:
        received:
          type: number
      required:
        - received
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````