---
docId: doc_d07c02be6fbd45f1828de42df51508dd
title: List tags
description: Returns the list of tags in a workspace.
api:
  group: etiquetas
  auth: bearer
  operations:
    - operationId: listTags
      method: GET
      path: /v1/tags
      postmanName: List tags
---

<script>
  import { Ways } from '$lib/components';
</script>

# List tags

Find a workspace tag and take its `id` to assign it or change its settings. The list includes its criteria, automatic application and owners.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/tags \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tags.list();
```

</Ways.Way>
</Ways>

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|-----------|
| `workspace` | string | Workspace ID. Required when your credential covers several workspaces ([list workspaces](/api-reference/workspaces)); without it the answer is `400` | If the credential has several |

## Response

```json
{
  "status": "success",
  "data": [
    {
      "id": "tag_abc123",
      "name": "MARCH RENEWAL",
      "status": "active",
      "automatic": false,
      "criteria": "March renewal: apply this tag to contacts whose subscriptions expire in March.",
      "owners": [
        "support@acme.com"
      ],
      "creationDate": "2026-03-05T21:44:40Z",
      "lastUpdate": "2026-03-05T21:44:40Z"
    },
    {
      "id": "tag_def456",
      "name": "VIP",
      "status": "active",
      "automatic": true,
      "criteria": "Apply this tag to customers with a high purchase volume.",
      "owners": [],
      "creationDate": "2026-02-20T15:00:00Z",
      "lastUpdate": "2026-03-01T10:30:00Z"
    }
  ]
}
```

## Response fields

`data` is the list of the workspace's tags. Each tag has:

| Field | Description |
|-------|-------------|
| `id` | Internal tag ID |
| `name` | Tag name |
| `status` | Tag state: `active` |
| `automatic` | Whether the AI applies the tag automatically to conversations |
| `criteria` | Criteria or description for when to apply the tag |
| `owners` | List of responsible-user emails |
| `creationDate` | Creation date in ISO 8601 format |
| `lastUpdate` | Last update date in ISO 8601 format |

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | Your credential covers several workspaces and you did not send `?workspace=`, or you sent one it does not cover. `details.available` lists the ones you can use |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | The credential does not have the Contacts module (`Missing contacts permission`) |
| `500` | `INTERNAL_ERROR` | The tags could not be read. Try again |

```json
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Must specify a valid workspace (multi-workspace credential)",
    "available": ["ws_123", "ws_456"]
  }
}
```

The general error format is in [Errors](/api-reference/errors).
