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

# Analytics overview

> Aggregates transactions (paid plus free-trial calls), revenue, buyers, capability-call delivery, payment methods, included units, and top services for the authenticated organization. `days` is a window ending today or `all`.



## OpenAPI

````yaml https://api.zeroclick.io/openapi.json get /v1/analytics/overview
openapi: 3.0.0
info:
  title: ZeroClick API
  description: >-
    REST API for managing ZeroClick sellers, services, pricing, usage, and
    analytics. Authenticate with an API key from the ZeroClick dashboard.
  version: 1.0.0
servers:
  - url: https://api.zeroclick.io
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Sellers
  - name: Services
  - name: Meters
  - name: Plans
  - name: Plan meter prices
  - name: Usage
  - name: Analytics
  - name: Agentify
  - name: Stripe Connect
  - name: Sandbox
  - name: Organizations
  - name: Users
paths:
  /v1/analytics/overview:
    get:
      tags:
        - Analytics
      summary: Analytics overview
      description: >-
        Aggregates transactions (paid plus free-trial calls), revenue, buyers,
        capability-call delivery, payment methods, included units, and top
        services for the authenticated organization. `days` is a window ending
        today or `all`.
      parameters:
        - schema:
            default: 30
            anyOf:
              - type: string
                enum:
                  - all
              - type: integer
                minimum: 1
                maximum: 365
          in: query
          name: days
          required: false
        - schema:
            type: string
            minLength: 1
          in: query
          name: sellerId
          required: false
        - schema:
            type: string
            minLength: 1
          in: query
          name: serviceId
          required: false
        - schema:
            type: string
            enum:
              - include
          in: query
          name: trials
          required: false
        - schema:
            type: string
            enum:
              - include
          in: query
          name: includedUnits
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  analytics:
                    type: object
                    properties:
                      days:
                        type: number
                      transactions:
                        type: number
                      previousTransactions:
                        type: number
                      revenueUsd:
                        type: string
                      previousRevenueUsd:
                        type: string
                      attempts:
                        type: number
                      successRate:
                        nullable: true
                        type: number
                      previousSuccessRate:
                        nullable: true
                        type: number
                      lifetimeRevenueUsd:
                        type: string
                      lifetimeTransactions:
                        type: number
                      trialActivations:
                        type: number
                      previousTrialActivations:
                        type: number
                      lifetimeTrialActivations:
                        type: number
                      trialActivationsByDay:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            activations:
                              type: number
                          required:
                            - date
                            - activations
                          additionalProperties: false
                      trialCalls:
                        type: number
                      previousTrialCalls:
                        type: number
                      trialUsageUsd:
                        type: string
                      previousTrialUsageUsd:
                        type: string
                      trialCallsByDay:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            calls:
                              type: number
                            usageUsd:
                              type: string
                          required:
                            - date
                            - calls
                            - usageUsd
                          additionalProperties: false
                      included:
                        type: object
                        properties:
                          calls:
                            type: number
                          previousCalls:
                            type: number
                          valueUsd:
                            type: string
                          previousValueUsd:
                            type: string
                        required:
                          - calls
                          - previousCalls
                          - valueUsd
                          - previousValueUsd
                        additionalProperties: false
                      buyers:
                        type: object
                        properties:
                          total:
                            type: number
                          repeat:
                            type: number
                          previousTotal:
                            type: number
                        required:
                          - total
                          - repeat
                          - previousTotal
                        additionalProperties: false
                      calls:
                        type: object
                        properties:
                          total:
                            type: number
                          delivered:
                            type: number
                          previousTotal:
                            type: number
                          previousDelivered:
                            type: number
                        required:
                          - total
                          - delivered
                          - previousTotal
                          - previousDelivered
                        additionalProperties: false
                      previousWindowAvailable:
                        type: boolean
                      paymentMethods:
                        type: object
                        properties:
                          x402_wallet:
                            type: number
                          mpp_wallet:
                            type: number
                          agent_card:
                            type: number
                          human_card:
                            type: number
                          free_trial:
                            type: number
                          unknown:
                            type: number
                        required:
                          - x402_wallet
                          - mpp_wallet
                          - agent_card
                          - human_card
                          - free_trial
                          - unknown
                        additionalProperties: false
                      revenueByDay:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            revenueUsd:
                              type: string
                            transactions:
                              type: number
                            buyers:
                              type: number
                          required:
                            - date
                            - revenueUsd
                            - transactions
                            - buyers
                          additionalProperties: false
                      attemptsByDay:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            attempts:
                              type: number
                          required:
                            - date
                            - attempts
                          additionalProperties: false
                      callsByDay:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            calls:
                              type: number
                            delivered:
                              type: number
                          required:
                            - date
                            - calls
                            - delivered
                          additionalProperties: false
                      recentTransactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            kind:
                              type: string
                              enum:
                                - purchase
                                - renewal
                                - top_up
                                - transaction
                                - free_trial
                                - included
                            status:
                              type: string
                              enum:
                                - challenge_created
                                - verified
                                - failed
                            paymentMethod:
                              nullable: true
                              type: string
                              enum:
                                - x402_wallet
                                - mpp_wallet
                                - agent_card
                                - human_card
                                - free_trial
                            amountUsd:
                              nullable: true
                              type: string
                            network:
                              nullable: true
                              type: string
                            protocol:
                              nullable: true
                              type: string
                            createdAt:
                              type: string
                            verifiedAt:
                              nullable: true
                              type: string
                            seller:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                slug:
                                  type: string
                              required:
                                - id
                                - name
                                - slug
                              additionalProperties: false
                            service:
                              nullable: true
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                slug:
                                  type: string
                              required:
                                - id
                                - name
                                - slug
                              additionalProperties: false
                            plan:
                              nullable: true
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                              required:
                                - id
                                - name
                              additionalProperties: false
                            agent:
                              nullable: true
                              type: object
                              properties:
                                id:
                                  type: string
                                walletAddress:
                                  nullable: true
                                  type: string
                              required:
                                - id
                                - walletAddress
                              additionalProperties: false
                          required:
                            - id
                            - kind
                            - status
                            - paymentMethod
                            - amountUsd
                            - network
                            - protocol
                            - createdAt
                            - verifiedAt
                            - seller
                            - service
                            - plan
                            - agent
                          additionalProperties: false
                      topSellers:
                        type: array
                        items:
                          type: object
                          properties:
                            seller:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                slug:
                                  type: string
                              required:
                                - id
                                - name
                                - slug
                              additionalProperties: false
                            transactions:
                              type: number
                            revenueUsd:
                              type: string
                          required:
                            - seller
                            - transactions
                            - revenueUsd
                          additionalProperties: false
                    required:
                      - days
                      - transactions
                      - previousTransactions
                      - revenueUsd
                      - previousRevenueUsd
                      - attempts
                      - successRate
                      - previousSuccessRate
                      - lifetimeRevenueUsd
                      - lifetimeTransactions
                      - trialActivations
                      - previousTrialActivations
                      - lifetimeTrialActivations
                      - trialActivationsByDay
                      - trialCalls
                      - previousTrialCalls
                      - trialUsageUsd
                      - previousTrialUsageUsd
                      - trialCallsByDay
                      - included
                      - buyers
                      - calls
                      - previousWindowAvailable
                      - paymentMethods
                      - revenueByDay
                      - attemptsByDay
                      - callsByDay
                      - recentTransactions
                      - topSellers
                    additionalProperties: false
                required:
                  - analytics
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                      - auto_renew_incompatible_plan
                      - auto_top_up_incompatible_plan
                required:
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                      - auto_renew_incompatible_plan
                      - auto_top_up_incompatible_plan
                required:
                  - error
                additionalProperties: false
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                      - auto_renew_incompatible_plan
                      - auto_top_up_incompatible_plan
                required:
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                      - auto_renew_incompatible_plan
                      - auto_top_up_incompatible_plan
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in the ZeroClick dashboard under Settings → API keys.
        Keys start with `zc_`. Send them as `Authorization: Bearer zc_...`.

````