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

# List Tags

> Every tag, flat, with the field it belongs to

The same tags [List Tag Groups](https://docs.clustr-ai.com/api-reference/list-tag-groups.md) returns nested,
as one flat list. Use this when you have a tag id and want to know what it is,
rather than walking the fields.

Each row carries `group_name` and `subject_type`, which is what tells you
whether a tag can go on an account, a person or a warm intro.

```bash cURL theme={null}
curl "https://api.clustr-ai.com/api/public/tags?subject_type=account" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "tags": [
      {
        "clustr_tag_id": "tag_vperrjgm402jznxjqd0m77gkkz",
        "clustr_group_id": "tgrp_hegrh3re61n4809fk94503pcat",
        "id": "7f3e1a22-0c5d-4c1e-9f8a-2b4d6e8f0a12",
        "group_id": "5a1c3f88-92d4-4b0e-8e7a-1f2b3c4d5e60",
        "group_name": "Segment",
        "subject_type": "account",
        "name": "Enterprise",
        "color": "#3B82F6",
        "position": 0,
        "closes": false
      }
    ]
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "Invalid subject_type", "code": "BAD_REQUEST" }
}
```


## OpenAPI

````yaml GET /tags
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /tags:
    get:
      tags:
        - Tags
      summary: List Tags
      description: >-
        Lists every tag as a flat list, each carrying its `group_name` and
        `subject_type`. These are the same tags List Tag Groups returns nested
        by field, convenient for looking a tag up by id.
      operationId: listTags
      parameters:
        - name: subject_type
          description: '`account`, `person` or `path`. Omit for all three.'
          in: query
          schema:
            type: string
            enum:
              - account
              - person
              - path
      responses:
        '200':
          description: The tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      tags:
                        type: array
                        description: The tags, grouped in display order.
                        items:
                          $ref: '#/components/schemas/Tag'
        '400':
          description: Invalid subject_type
        '401':
          description: Invalid or missing API key
components:
  schemas:
    Tag:
      type: object
      description: One term inside a tag field.
      required:
        - id
        - group_id
        - name
        - color
      properties:
        clustr_tag_id:
          type: string
          description: >-
            The tag's Clustr ID, for example `tag_275zx5fj2f0nka3hnyk651zr1e`.
            Use it to refer to this tag.

            Every tag write and the `tag` search filter take it.
          example: tag_275zx5fj2f0nka3hnyk651zr1e
        clustr_group_id:
          type: string
          description: >-
            The Clustr ID of the tag field it lives in, for example
            `tgrp_s4t5tk9wn7mx8n3hry88wv0rqa`. A tag

            cannot move between fields.
          example: tgrp_s4t5tk9wn7mx8n3hry88wv0rqa
        id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_tag_id`.
        group_id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_group_id`.
        group_name:
          type: string
          description: That field's name, so a flat list says which field a tag is in.
        subject_type:
          type: string
          enum:
            - account
            - person
            - path
          description: 'The field''s subject type: `account`, `person` or `path`.'
        name:
          type: string
          maxLength: 50
        color:
          type: string
          maxLength: 20
          example: '#3B82F6'
        position:
          type: integer
        closes:
          type: boolean
          description: >-
            For opportunity (`path`) tags: `true` means the conversation on this
            path is over. A path carrying it sorts last, shows a neutral pill
            and stays visible.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

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