> ## 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 apiv2publiclanding page analytics



## OpenAPI

````yaml https://api.osiro.com/doc post /api/v2/public/landing-page/{id}/analytics
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, MFA, and analytics.
  - name: Booking
    description: A lead's cancel and reschedule of their booking, via the manage link.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
  - name: Billing
    description: Org-scoped checkouts, plans, trials and the Stripe billing portal.
  - name: Leads
    description: Org-scoped lead reads and actions.
  - name: Ad copy
    description: Org-scoped ad guidelines and Meta ad copy generation.
paths:
  /api/v2/public/landing-page/{id}/analytics:
    post:
      tags:
        - Landing Page
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LandingPageAnalyticsBatch'
      responses:
        '200':
          description: Events received. `0` for bots and for missing or unpublished pages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LandingPageAnalyticsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Payload too large
          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:
    LandingPageAnalyticsBatch:
      type: object
      properties:
        events:
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - page_viewed
                  versionId:
                    type: string
                    format: uuid
                  payload:
                    type: object
                    properties: {}
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - versionId
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - page_left
                  blockId:
                    type: string
                  durationMs:
                    type: integer
                    minimum: 0
                  payload:
                    type: object
                    properties: {}
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - blockId
                  - durationMs
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - block_viewed
                  blockId:
                    type: string
                  payload:
                    type: object
                    properties:
                      blockType:
                        type: string
                      blockIndex:
                        type: integer
                    required:
                      - blockType
                      - blockIndex
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - blockId
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - cta_clicked
                  blockId:
                    type: string
                  payload:
                    type: object
                    properties:
                      label:
                        type: string
                        maxLength: 100
                      href:
                        type: string
                    required:
                      - label
                      - href
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - blockId
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - outbound_clicked
                  blockId:
                    type: string
                  payload:
                    type: object
                    properties:
                      href:
                        type: string
                      host:
                        type: string
                    required:
                      - href
                      - host
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - blockId
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - funnel_started
                  payload:
                    type: object
                    properties:
                      funnelId:
                        type: string
                        format: uuid
                      stepId:
                        type: string
                      stepIndex:
                        type: integer
                    required:
                      - funnelId
                      - stepId
                      - stepIndex
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - payload
              - type: object
                properties:
                  eventId:
                    type: string
                    format: uuid
                  pageviewId:
                    type: string
                    format: uuid
                  pageviewStartedAt:
                    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
                  path:
                    type: string
                  referrer:
                    type: string
                  language:
                    type: string
                  utmSource:
                    type: string
                  utmMedium:
                    type: string
                  utmCampaign:
                    type: string
                  utmTerm:
                    type: string
                  utmContent:
                    type: string
                  version:
                    type: integer
                    minimum: 1
                    default: 1
                  eventType:
                    type: string
                    enum:
                      - form_submitted
                  payload:
                    type: object
                    properties:
                      funnelId:
                        type: string
                        format: uuid
                      stepId:
                        type: string
                      stepIndex:
                        type: integer
                      leadId:
                        type: string
                        format: uuid
                    required:
                      - funnelId
                      - stepId
                      - stepIndex
                    additionalProperties: false
                required:
                  - eventId
                  - pageviewId
                  - pageviewStartedAt
                  - deviceType
                  - browser
                  - os
                  - pageUrl
                  - path
                  - referrer
                  - language
                  - eventType
                  - payload
          minItems: 1
          maxItems: 20
      required:
        - events
    LandingPageAnalyticsResponse:
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.