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

# List test case tags

> Returns the distinct set of tags across the scoped project's test cases. The response is a bare `{ tags }` object (no `data` envelope) and is cached for 5 minutes via a `Cache-Control` header.



## OpenAPI

````yaml /api-reference/openapi.generated.json get /api/v2/test-cases/tags
openapi: 3.1.0
info:
  title: Empirical API
  version: 1.0.0
  description: Programmatic access to Empirical test runs, snoozes, and more.
  contact:
    name: Empirical
    url: https://empirical.run
servers:
  - url: https://api.empirical.run
security:
  - Bearer: []
tags:
  - name: Analytics
    description: Aggregated test-run, test-count and test-case analytics for a project.
  - name: Analytics (Deprecated)
    description: >-
      Legacy analytics endpoints retained for backwards compatibility; prefer
      the v2 equivalents.
  - name: Environments
    description: >-
      Named deployment targets (slug + Playwright project filters) a project's
      tests run against.
  - name: Snoozes
    description: Temporarily suppress known test failures for specific Playwright tests.
  - name: Telemetry
    description: Product telemetry derived from analytics events, scoped to a project.
  - name: Test Cases
    description: >-
      Browse the Playwright test cases synced from a project's repository and
      manage their tags.
paths:
  /api/v2/test-cases/tags:
    get:
      tags:
        - Test Cases
      summary: List test case tags
      description: >-
        Returns the distinct set of tags across the scoped project's test cases.
        The response is a bare `{ tags }` object (no `data` envelope) and is
        cached for 5 minutes via a `Cache-Control` header.
      operationId: listTestCaseTags
      responses:
        '200':
          description: The project's distinct test case tags.
          headers:
            Cache-Control:
              schema:
                type: string
                description: >-
                  Caching directive: `public, s-maxage=300,
                  stale-while-revalidate=600`.
              required: true
              description: >-
                Caching directive: `public, s-maxage=300,
                stale-while-revalidate=600`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestCaseTagsResponse'
        '400':
          description: Project could not be resolved from the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Project not found or not accessible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TestCaseTagsResponse:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
          description: Distinct tags across the project's test cases.
      required:
        - tags
    ErrorResponse:
      type: object
      properties:
        data:
          nullable: true
          description: Always null for error responses.
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error message.
          required:
            - message
          description: Error details.
      required:
        - data
        - error
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer

````