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

# List test case tags of a canvas

> Returns every non-deleted tag defined for the canvas.



## OpenAPI

````yaml GET /test-case-tags
openapi: 3.0.1
info:
  title: Tela API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tela.com
security: []
paths:
  /test-case-tags:
    get:
      tags:
        - Test Case Tag
      summary: List test case tags of a canvas
      description: Returns every non-deleted tag defined for the canvas.
      parameters:
        - name: promptId
          in: query
          required: true
          description: Canvas id.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Tags of the canvas.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TestCaseTagResponse'
        '400':
          description: Bad request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Missing or invalid credentials, or no access to the canvas's
            project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The project exists in the workspace but the caller's team has no
            access to it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Canvas not found (or a personal draft owned by someone else).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Query parameters failed validation (missing `promptId`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TestCaseTagResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          maxLength: 256
        color:
          type: string
          maxLength: 50
        promptId:
          type: string
          format: uuid
          nullable: true
          description: >-
            Canvas the tag belongs to. Always set for tags created through this
            API.
        agentId:
          type: string
          format: uuid
          nullable: true
          description: >-
            Set instead of `promptId` for agent test case tags; always `null`
            here.
        workspaceId:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
          nullable: true
        deletedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - name
        - color
        - workspaceId
      example:
        id: 4c5d6e7f-8a9b-4c0d-8e1f-2a3b4c5d6e7f
        name: regression
        color: '#F97316'
        promptId: 5f0c1a2e-8b7d-4c3a-9e1f-2d4b6a8c0e12
        agentId: null
        workspaceId: 7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f
        createdAt: '2026-05-04T10:00:00.000Z'
        updatedAt: '2026-05-04T10:00:00.000Z'
        deletedAt: null
    Error: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or UUID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.