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

# Ticket counts by tool and by SAC destination

> byTool has every tool key (defaulting to 0). byDestination counts Wokus, NPS, CSAT and CES routed to a destination (forms excluded).



## OpenAPI

````yaml /openapi-v1.json get /v1/tickets/stats
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/tickets/stats:
    get:
      tags:
        - v1 - tickets
      summary: Ticket counts by tool and by SAC destination
      description: >-
        byTool has every tool key (defaulting to 0). byDestination counts Wokus,
        NPS, CSAT and CES routed to a destination (forms excluded).
      operationId: V1TicketsController_getStats
      parameters:
        - name: destinationId
          required: false
          in: query
          description: Scope the aggregate to a single SAC destination.
          schema:
            type: string
            format: ObjectId
        - name: createdFrom
          required: false
          in: query
          description: Lower bound for createdAt (ISO 8601).
          schema:
            type: string
        - name: createdTo
          required: false
          in: query
          description: Upper bound for createdAt (ISO 8601).
          schema:
            type: string
      responses:
        '200':
          description: Aggregate ticket counts
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````