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

# Get conversation tag analytics

> Returns frequency and trend data for conversation tags within a date range. Useful for understanding volume patterns by topic or category.



## OpenAPI

````yaml /openapi.json get /api/v1/analytics/tags
openapi: 3.0.0
info:
  title: g-tateth CRM API
  version: 1.1.0
  description: >-
    RESTful API for g-tateth CRM platform. Manage conversations, customers,
    users, and more.
  contact:
    name: g-tateth Support
    email: support@g-tateth.com
  license:
    name: Proprietary
servers:
  - url: https://api.g-tateth.com
    description: Production server
  - url: https://staging-api.g-tateth.com
    description: Staging server
security: []
tags:
  - name: Health
    description: API health and status check (no authentication required)
  - name: Authentication
    description: API key and JWT authentication
  - name: API Keys
    description: Create and manage your tenant API keys (requires JWT session)
  - name: Conversations
    description: Manage customer conversations (supports API key or JWT)
  - name: Customers
    description: Manage customer profiles (supports API key or JWT)
  - name: Webhooks
    description: Subscribe to real-time events via webhooks (supports API key or JWT)
  - name: Analytics
    description: Usage analytics and performance metrics (supports API key or JWT)
  - name: Data Privacy
    description: >-
      GDPR data rights endpoints — export, deletion, access, rectification,
      restriction, and objection requests (requires JWT session)
  - name: Widget
    description: Chat widget API endpoints (public — no authentication required)
  - name: Telephony
    description: Voice and phone API endpoints
  - name: Zoho Integration
    description: Zoho CRM integration and data import endpoints
paths:
  /api/v1/analytics/tags:
    get:
      tags:
        - Analytics
      summary: Get conversation tag analytics
      description: >-
        Returns frequency and trend data for conversation tags within a date
        range. Useful for understanding volume patterns by topic or category.
      parameters:
        - in: query
          name: startDate
          schema:
            type: string
            format: date-time
            example: '2026-04-01T00:00:00Z'
          description: Start of date range (ISO 8601)
        - in: query
          name: endDate
          schema:
            type: string
            format: date-time
            example: '2026-04-30T23:59:59Z'
          description: End of date range (ISO 8601)
        - in: query
          name: userId
          schema:
            type: string
          description: Scope results to a specific agent
        - in: query
          name: tag
          schema:
            type: string
          description: Filter to a single tag
      responses:
        '200':
          description: Tag analytics data
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        tag:
                          type: string
                          example: billing
                        count:
                          type: integer
                          example: 142
                        percentage:
                          type: number
                          format: float
                          example: 18.5
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '429':
          $ref: '#/components/responses/RateLimitError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  responses:
    UnauthorizedError:
      description: Authentication required or credentials are invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Authentication required
            code: AUTH_REQUIRED
    ForbiddenError:
      description: Insufficient permissions for this operation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Insufficient permissions
            code: PERMISSION_DENIED
    RateLimitError:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Rate limit exceeded
            code: RATE_LIMIT_EXCEEDED
            limit: 1000
            resetAt: '2024-01-01T00:00:00Z'
      headers:
        X-RateLimit-Limit:
          schema:
            type: string
          description: Rate limit per window
        X-RateLimit-Remaining:
          schema:
            type: string
          description: Remaining requests in current window
        X-RateLimit-Reset:
          schema:
            type: string
          description: Unix timestamp when rate limit resets
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Error message
        code:
          type: string
          example: ERROR_CODE
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API Key authentication. Format: `Bearer sk_live_...` (production) or
        `Bearer sk_test_...` (staging). Obtain keys from Settings → Developer
        Console.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT session token authentication. Use for user-context requests. The
        token is returned by the login endpoint and expires after 15 minutes.

````