> ## 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 upsell event

> Record a telemetry event (view or decline) when an upsell is presented on a custom frontend. This ensures accurate conversion metrics.



## OpenAPI

````yaml post /upsells/{id}/events
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security: []
paths:
  /upsells/{id}/events:
    post:
      tags:
        - Upsells
      summary: Track an upsell event
      description: >-
        Record a telemetry event (view or decline) when an upsell is presented
        on a custom frontend. This ensures accurate conversion metrics.
      parameters:
        - name: id
          in: path
          description: The ID of the upsell
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - view
                    - decline
      responses:
        '200':
          description: Event successfully tracked

````