# label_list

List Labels

## Beschreibung

Lists labels in the account, alphabetically. Labels are
workspace-scoped — pass `workspace_id` to narrow to one workspace. The same
name may exist in several workspaces; clients should disambiguate
via the returned `workspace` block or the label's prefix id.

## Zugriff

Zugriffsprofil: `gated`. Module: `projects_tasks`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja | Account prefix ID (acct_…). |
| `workspace_id` | string | Nein | Optional workspace prefix ID or key. Narrows results to one workspace. |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string",
      "description": "Account prefix ID (acct_…)."
    },
    "workspace_id": {
      "type": "string",
      "description": "Optional workspace prefix ID or key. Narrows results to one workspace."
    }
  },
  "required": [
    "account_id"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "labels": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "workspace": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "key",
              "name"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "color",
          "workspace"
        ]
      }
    }
  },
  "required": [
    "labels"
  ],
  "type": "object"
}
```
