---
title: "List tags"
description: "Returns every tag in the workspace."
---

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

Path: Zacx Public API › Tags

`GET /tags`

Returns every tag in the workspace.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```curl
curl --request GET \
  --url https://api.zacx.io/v1/tags \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.zacx.io/v1/tags';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.zacx.io/v1/tags"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The tag names. `data` is empty when none exist.

#### Example

```json
{
  "status": "success",
  "data": [
    "test-tag",
    "test-tag-1"
  ]
}
```

- `listTags.response.200.status` (string, required)
- `listTags.response.200.data` (array<string>, required)
- `listTags.response.200.message` (string, optional) — Present only when the workspace has no tags.


Source: https://zacx.io/api/workspace/tags/index.md
