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

# Get Prompt Tags

> Returns all prompt tags for a specific website, sorted by tag name, with the number of non-deleted prompts carrying each tag. Use the returned IDs with the `prompt_tags` filter on GET /api/v1/prompts or the `tag_ids` field on POST /api/v1/prompts.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/prompt-tags
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
paths:
  /api/v1/prompt-tags:
    get:
      tags:
        - Basics
      summary: Get Prompt Tags
      description: >-
        Returns all prompt tags for a specific website, sorted by tag name, with
        the number of non-deleted prompts carrying each tag. Use the returned
        IDs with the `prompt_tags` filter on GET /api/v1/prompts or the
        `tag_ids` field on POST /api/v1/prompts.
      operationId: getPromptTags
      parameters:
        - name: website_id
          in: query
          description: The ID of the website to retrieve prompt tags for
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response with list of prompt tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  prompt_tags:
                    type: array
                    items:
                      $ref: '#/components/schemas/PromptTagWithCount'
                required:
                  - prompt_tags
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_website_id:
                  value:
                    error: website_id is required
                invalid_website_id:
                  value:
                    error: website_id must be a uuid
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - You don't have access to this website
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    PromptTagWithCount:
      type: object
      description: A prompt tag with its prompt count
      required:
        - id
        - name
        - prompt_count
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the tag
          example: 223e4567-e89b-12d3-a456-426614174111
        name:
          type: string
          description: Tag name
          example: Caption Phones
        prompt_count:
          type: integer
          description: >-
            Number of non-deleted prompts carrying this tag. Matches the number
            of rows GET /api/v1/prompts returns when filtered by this tag.
          example: 12
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````