# Listar etiquetas

GET `https://api.bydomu.com/v1/tags`

Etiquetas de la organización en orden alfabético, con cuántos contactos, negocios, conversaciones y propiedades usan cada una.

Permiso que pide

`tags:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Respuesta 200

`Tag[]` · 5 campos

**`data[]` id · name · color · organizationId · _count**

`id` string

`name` string

`color` string

`organizationId` string

**`_count` contacts · deals · conversations · properties**

`contacts` integer

`deals` integer

`conversations` integer

`properties` integer

## Errores posibles

con la forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/tags" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.tags.list();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/tags",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Respuesta · 200 · ejemplo**

```json
{
  "data": [
    {
      "id": "clx1tag001",
      "name": "VIP",
      "color": "#F59E0B",
      "organizationId": "clx1org001",
      "_count": {
        "contacts": 18,
        "deals": 4,
        "conversations": 2,
        "properties": 0
      }
    }
  ]
}
```
