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

# Track an event

> This endpoint allows you to track events on your platform, sending data to Umami for analytics. The request requires an `eventName`, and you can optionally provide `eventData`, `url`, and `referrer`. The store must be identified by the `x-store-id` header. The endpoint formats the URL for tracking and sends the event to Umami, ensuring session continuity through forwarded headers like IP and User-Agent.



## OpenAPI

````yaml /api-reference/webhooks-api.json post /events
openapi: 3.1.0
info:
  title: Webhooks & Events
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
paths:
  /events:
    post:
      tags:
        - Events
      summary: Track an event
      description: >-
        This endpoint allows you to track events on your platform, sending data
        to Umami for analytics. The request requires an `eventName`, and you can
        optionally provide `eventData`, `url`, and `referrer`. The store must be
        identified by the `x-store-id` header. The endpoint formats the URL for
        tracking and sends the event to Umami, ensuring session continuity
        through forwarded headers like IP and User-Agent.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                eventName:
                  type: string
                eventData:
                  type: object
                url:
                  type: string
                referrer:
                  type: string
              required:
                - eventName
      responses:
        '200':
          description: Event tracked successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
      security:
        - storeIdHeader: []
components:
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````