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

# Get a list of tags

Get a list of all tags in a Nutshell instance.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Nutshell API",
    "description": "The most powerful API in the world",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "app.nutshell.com/rest"
    }
  ],
  "paths": {
    "/tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get a list of tags",
        "description": "Get a list of all tags in a Nutshell instance.",
        "operationId": "422aa2c0d6493b41248e46c6ac93a43b",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Used to query for tags that match a specific string",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[tagType]",
            "in": "query",
            "description": "Used to get tags of a specific type",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "leads",
                "contacts",
                "accounts"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "tags": {
                      "description": "The list of tags",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tag"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Tag": {
        "properties": {
          "id": {
            "description": "The API ID of this entity, formatted {integer}-{entityType}",
            "type": "string",
            "example": "3-contacts"
          },
          "name": {
            "type": "string",
            "example": "Enterprise"
          },
          "href": {
            "type": "string",
            "example": "https://app.nutshell.com/rest/tags/1-tags"
          },
          "modifiedTime": {
            "description": "Unix timestamp",
            "type": "integer",
            "format": "int32",
            "example": 31536000
          },
          "deletedTime": {
            "description": "Unix timestamp",
            "type": "integer",
            "format": "int32",
            "example": 31536000
          },
          "tagType": {
            "description": "The type of entity the tag corresponds to",
            "type": "string",
            "example": "leads"
          },
          "count": {
            "description": "The number of entities with this tag",
            "type": "integer",
            "format": "int32",
            "example": "1"
          },
          "colorType": {
            "description": "The color or the tag, returned as a string",
            "type": "string",
            "example": "COLOR_ORANGE"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "tags": [
    {
      "name": "Tags",
      "description": "Tags"
    }
  ]
}
```