# List Tags Beta

> Lead, campaign and email account tags of the workspace.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`GET` https://api.foxreach.io/api/v1/tags

> **Note:** **Beta.** This endpoint is new and may change.

Requires an API key with the `read` scope.

Tags by name, with their ids. There are three kinds: `lead`, `campaign` and `account` (email accounts). Warmup tags are not part of these endpoints: they are managed under [Warmup Tags](https://www.foxreach.io/docs/api-reference/warmup/list-tags) and answer `404` here. To list just the lead tag names with lead counts, [List Lead Tags](https://www.foxreach.io/docs/api-reference/leads/list-tags) still works.

## Query Parameters

- `type` string query: `lead`, `campaign` or `account`. `warmup` returns `422`.
- `search` string query: Part of the tag name, case-insensitive.
- `counts` boolean query: Add `resourceCount`, how many resources carry each tag on the returned page. Default `false`.
- `page` integer query: Page number, starting at 1.
- `pageSize` integer query: Results per page, 1 to 100. Default 50.

## Response

A paginated list in `data` ordered by name, with `meta.page`, `meta.pageSize`, `meta.total` and `meta.totalPages`.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/tags?type=campaign&counts=true" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK (beta)
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
page = client.tags.list(type="campaign", counts=True)
```

```typescript TypeScript SDK (beta)
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
const page = await client.tags.list({ type: "campaign", counts: true });
```

**Response example**

```json
{
  "data": [
    { "id": "tag_abc123", "name": "Q1", "color": "#6B7280", "type": "campaign", "createdAt": "2026-12-03T09:00:00+00:00", "resourceCount": 4 }
  ],
  "meta": { "page": 1, "pageSize": 50, "total": 1, "totalPages": 1 }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `422` | `type` is not `lead`, `campaign` or `account` |

## Rate Limit

- **300 requests per minute, shared by every `read` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`read`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
