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

# Submit metrics for a card

> Submit various metrics related to a specific card identified by `cardId`. This allows for tracking and performance measurement of the card.



## OpenAPI

````yaml https://api.vistaly.com/v1/swagger.json post /v1/cards/{cardId}/metrics
openapi: 3.1.0
info:
  contact:
    email: support@vistaly.com
    name: Vistaly Support Team
  description: >-
    Vistaly's public API for interacting with our platform, enabling developers
    to integrate with various features such as feedback, cards, and system
    health.
  termsOfService: https://vistaly.com/terms-of-service
  title: Vistaly API
  version: '2025-06-21'
servers:
  - description: Production server
    url: https://api.vistaly.com
security: []
tags:
  - description: System-related endpoints to interact with the overall service.
    name: system
  - description: >-
      Endpoints related to card management, including the creation and
      modification of card metrics and related data.
    externalDocs:
      description: Learn more about Cards
      url: https://docs.vistaly.com/en/card-types/overview
    name: cards
  - description: >-
      Endpoints for handling insights data, such as user feedback and interview
      records.
    externalDocs:
      description: Learn more about Insights
      url: https://docs.vistaly.com/en/insights/overview
    name: insights
paths:
  /v1/cards/{cardId}/metrics:
    post:
      tags:
        - cards
      summary: Submit metrics for a card
      description: >-
        Submit various metrics related to a specific card identified by
        `cardId`. This allows for tracking and performance measurement of the
        card.
      parameters:
        - description: >-
            The unique identifier for the card whose metrics are being
            submitted.
          in: path
          name: cardId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardMetricsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                message: Metric datapoint created
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: Metrics submitted successfully
        '400':
          description: Bad request
          content:
            application/json:
              example:
                message: Bad request
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                message: Unauthorized
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                message: Forbidden
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                message: Internal server error
              schema:
                $ref: '#/components/schemas/MessageResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CardMetricsRequest:
      additionalProperties: false
      properties:
        timestamp:
          description: >-
            The timestamp of the metric (defaults to current timestamp if not
            provided)
          format: date-time
          type: string
        value:
          description: The value of the metric (e.g., count of views or clicks)
          type: number
      required:
        - value
      type: object
    MessageResponse:
      additionalProperties: false
      properties:
        message:
          example: System provided message
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````