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

# Campaign Tags

> Get all distinct tags used across campaigns and their calls.

- **campaign_id**: Scope results to a single campaign and its calls.
- **tags**: Filter results by substring match against tag strings.



## OpenAPI

````yaml https://api-prod.interactly.ai/api-docs/sms/api.json get /campaigns/v1/stats/campaigns/tags
openapi: 3.1.0
info:
  title: Interactly API
  description: API for building interactly.ai services
  version: 1.1.0
  contact:
    name: Interactly
    url: https://interactly.ai
    email: developers@interactly.ai
servers:
  - url: https://api-prod.interactly.ai
    description: API Server
security: []
paths:
  /campaigns/v1/stats/campaigns/tags:
    get:
      tags:
        - Campaign Stats
        - Stats
      summary: Campaign Tags
      description: |-
        Get all distinct tags used across campaigns and their calls.

        - **campaign_id**: Scope results to a single campaign and its calls.
        - **tags**: Filter results by substring match against tag strings.
      operationId: >-
        campaigns_service_get_campaign_and_calls_tags_v1_stats_campaigns_tags_get
      parameters:
        - name: campaign_id
          in: query
          required: false
          schema:
            anyOf:
              - cae128f0-bf48-476e-885c-8871a306df45
              - type: 'null'
            description: Scope to a specific campaign
            title: Campaign Id
          description: Scope to a specific campaign
        - name: tags
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
              - type: 'null'
            description: Filter tag stats by tag strings (substring match)
            title: Tags
          description: Filter tag stats by tag strings (substring match)
      responses:
        '200':
          description: Distinct tags with occurrence counts
          content:
            application/json:
              schema:
                $ref: 2c5b4f5e-d90d-4718-b93c-4a3412be7403
        '400':
          description: Bad request — invalid input or constraint violation
          content:
            application/json:
              schema:
                $ref: e525ba89-10eb-466b-acde-70640ae0f189
        '404':
          description: Requested resource not found
          content:
            application/json:
              schema:
                $ref: e525ba89-10eb-466b-acde-70640ae0f189
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: 61188eef-82a8-4002-94b5-80ed8ff45c7a
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: e525ba89-10eb-466b-acde-70640ae0f189
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: Bearer
      type: http
      description: >-
        Retrieve your API Key from [Dashboard API Keys
        Section](https://dashboard.interactly.ai/api-keys).

````