# List tags

> A workspace's tag library, A–Z.

Source: https://docs.mycrmsim.com/docs/tags/list-tags

```http
GET https://backend.mysmsgateway.app/api/v1/ext/tags
```

- Category: myCRMSIM Contacts / Tags
- Auth: Bearer access token
- Scope: `contacts.read`

The library is the list the dashboard's tag pickers and Settings › Tags manage. A contact's tags are kept on the contact itself, so a tag can be on contacts without being in the library (imports, platform sync, automations). Pass `include_in_use=1` to get those too: rows with `source: "contact"` (on contacts only) or `source: "agent"` (an AI agent's tag, with `agent_name`) and `id: null`. Only library rows have an id and can be renamed or deleted.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |
| `search` | query | string | no | Part of a name. Example: `vi` |
| `include_in_use` | query | boolean | no | 1 = also the tags that are on contacts or AI agents but not in the library. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 310,
      "workspace_id": 7,
      "name": "vip",
      "source": "library",
      "created_at": "2026-11-04T02:10:00.000Z",
      "updated_at": "2026-11-04T02:10:00.000Z"
    },
    {
      "id": 311,
      "workspace_id": 7,
      "name": "demo-booked",
      "source": "library",
      "created_at": "2026-11-04T02:11:00.000Z",
      "updated_at": "2026-11-04T02:11:00.000Z"
    },
    {
      "id": null,
      "workspace_id": 7,
      "name": "Sales Agent",
      "source": "agent",
      "agent_name": "Sales Agent",
      "created_at": null,
      "updated_at": null
    }
  ]
}
```

## Response 400

No workspace_id

```json
{
  "success": false,
  "message": "workspace_id is required."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): contacts.read. This integration was granted: …"
}
```

## Response 404

Workspace does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```
