> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# List Tags

> List all tags with optional filtering and pagination

# List Tags

List all tags with optional filtering and pagination.

## Query Parameters

**parent** `string`

Filter by parent classification fully qualified name, for example `Certification`.

**limit** `integer` (default: 10)

Maximum number of results to return (max: 1000000).

**before** `string`

Cursor for backward pagination.

**after** `string`

Cursor for forward pagination.

**fields** `string`

Comma-separated list of fields to include: `owners`, `children`. See [Supported Fields](#supported-fields) below.

**include** `string` (default: non-deleted)

Include `all`, `deleted`, or `non-deleted` entities.

```python GET /v1/tags theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import Tags

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# List first page
tags = Tags.list(limit=50)
for t in tags.entities:
    print(f"{t.fullyQualifiedName.root}")

# List all with auto-pagination
for t in Tags.list_all():
    print(f"{t.fullyQualifiedName.root}")

# Filter by classification
tags = Tags.list(
    filters={"parent": "Certification"},
    fields=["owners", "children"],
    limit=50
)

for t in tags.entities:
    print(f"{t.fullyQualifiedName.root}")
    if t.style:
        print(f"  Color: {t.style.color}")
```

```java GET /v1/tags theme={null}
import org.openmetadata.sdk.models.ListParams;

// client is an initialized OpenMetadataClient.
// List first page
var params = new ListParams().setLimit(50);
var page = client.tags().list(params);
for (var item : page.getData()) {
    System.out.println(item.getFullyQualifiedName());
}

// Filter by classification with fields
var filtered = new ListParams()
    .addFilter("parent", "Certification")
    .setFields("owners,children")
    .setLimit(50);
var filteredPage = client.tags().list(filtered);
for (var item : filteredPage.getData()) {
    System.out.println(item.getFullyQualifiedName());
}
```

```bash GET /v1/tags theme={null}
# List all
curl "{base_url}/api/v1/tags?limit=50" \
  -H "Authorization: Bearer {access_token}"

# Filter by classification
curl "{base_url}/api/v1/tags?parent=Certification&fields=owners,children&limit=50" \
  -H "Authorization: Bearer {access_token}"
```

```json Response theme={null}
{
  "data": [
    {
      "id": "68ec158c-5f5e-4277-8a19-5e9e0cd5294f",
      "name": "Bronze",
      "fullyQualifiedName": "Certification.Bronze",
      "description": "Bronze certified Data Asset.",
      "style": {
        "color": "#C08320"
      },
      "version": 0.1,
      "updatedAt": 1769982619666,
      "updatedBy": "admin",
      "classification": {
        "id": "06d90883-6be9-4f7e-9475-753f10a95e94",
        "type": "classification",
        "name": "Certification",
        "fullyQualifiedName": "Certification",
        "deleted": false
      },
      "deleted": false,
      "owners": [],
      "provider": "system",
      "mutuallyExclusive": false
    }
  ],
  "paging": {
    "after": "...",
    "total": 3
  }
}
```

***

## Returns

Returns a paginated list of tag objects. By default, only basic fields are included. Use the `fields` parameter to request additional data.

## Response

**data** `array`

Array of tag objects.

**properties**

**id** `string`

Unique identifier for the tag (UUID format).

**name** `string`

Tag name.

**fullyQualifiedName** `string`

Fully qualified name of the tag.

**style** `object`

Visual styling (color, icon).

**classification** `object`

Reference to the parent classification.

**provider** `string`

Provider: `user` or `system`.

**owners** `array`

List of owners. Only included when `fields` contains `owners`.

**children** `array`

Child tag references. Only included when `fields` contains `children`.

**paging** `object`

Pagination information.

**properties**

**total** `integer`

Total count of tags matching the query.

**after** `string`

Cursor for the next page of results. Null if this is the last page.

**before** `string`

Cursor for the previous page of results. Null if this is the first page.

***

## Supported Fields

| Field | Description |
| - | - |
| `owners` | Owner references (users and teams) |
| `children` | Child tag references |

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to list tags |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.