---
agentTools:
  projectIndex: https://searchie.readme.io/llms.txt
---

# Get all tags for files

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Searchie API Documentation",
    "description": "Searchie API Documentation",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://app.searchie.io/api/v2",
      "description": "API Server"
    }
  ],
  "paths": {
    "/files/tags": {
      "get": {
        "tags": [
          "Files"
        ],
        "summary": "Get all tags for files",
        "operationId": "399463e9aa8767336984cd08bd7e20a4",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Search query for tags",
            "schema": {
              "type": "string",
              "example": "your_search_query"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Limit the number of results per page",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sort the results by specific fields (e.g., created_at,updated_at,name,files_count)",
            "schema": {
              "type": "string",
              "example": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileTagResource"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "apiAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "FileTagResource": {
        "title": "File Tag Resource",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/TagResource"
          },
          {
            "properties": {
              "files_count": {
                "type": "integer"
              }
            },
            "type": "object"
          }
        ]
      },
      "TagResource": {
        "title": "Tag Resource",
        "properties": {
          "id": {
            "type": "integer"
          },
          "user_id": {
            "type": "integer"
          },
          "team_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "order_column": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiAuth": {
        "type": "apiKey",
        "description": "Login with email and password to get the authentication token",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Files"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 130,
      "2": 251,
      "3": 234,
      "4": 150,
      "5": 84,
      "6": 125,
      "7": 0,
      "8": 113,
      "9": 220,
      "10": 23,
      "11": 106
    }
  }
}
```