> ## 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 Domains

> List all domains with optional filtering and pagination

# List Domains

List all domains with optional filtering and pagination.

## Query Parameters

**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`, `experts`. See [Supported Fields](#supported-fields) below.

**owners** `string`

Filter domains owned by any of the comma-separated user or team identifiers, names, or fully qualified names (FQNs).

**domainType** `string`

Filter by one or more comma-separated domain types: `Aggregate`, `Consumer-aligned`, or `Source-aligned`.

**tags** `string`

Filter by comma-separated classification tag FQNs.

**glossaryTerms** `string`

Filter by comma-separated glossary term FQNs.

`include` is not a supported query parameter for this endpoint in OpenMetadata 2.1.

These filters run against the primary metadata store. Domain list results no longer depend on search-index freshness.

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

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

# List first page
domains = Domains.list(limit=50)
for d in domains.entities:
    print(f"{d.fullyQualifiedName.root} ({d.domainType})")

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

# With fields
domains = Domains.list(
    fields=["owners", "children", "experts"],
    limit=50
)

for d in domains.entities:
    print(f"{d.fullyQualifiedName.root}")
    if d.owners:
        print(f"  Owners: {[o.name for o in d.owners.root]}")
```

```java GET /v1/domains 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.domains().list(params);
for (var item : page.getData()) {
    System.out.println(item.getFullyQualifiedName());
}

// With fields
var filtered = new ListParams()
    .setFields("owners,children,experts")
    .setLimit(50);
var filteredPage = client.domains().list(filtered);
for (var item : filteredPage.getData()) {
    System.out.println(item.getFullyQualifiedName());
}
```

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

# With fields
curl "{base_url}/api/v1/domains?fields=owners,children,experts&limit=50" \
  -H "Authorization: Bearer {access_token}"

# Filter by owner and domain type
curl "{base_url}/api/v1/domains?owners=data-platform&domainType=Source-aligned,Aggregate" \
  -H "Authorization: Bearer {access_token}"
```

```json Response theme={null}
{
  "data": [
    {
      "id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
      "domainType": "Aggregate",
      "name": "TestDomain",
      "fullyQualifiedName": "TestDomain",
      "description": "Lorem ipsum...",
      "version": 0.1,
      "updatedAt": 1769984330261,
      "updatedBy": "admin",
      "href": "http://localhost:8585/api/v1/domains/a0729e98-e946-4e25-acde-10e8a2294ba1",
      "deleted": false,
      "owners": [],
      "children": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}
```

***

## Returns

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

## Response

**data** `array`

Array of domain objects.

**properties**

**id** `string`

Unique identifier for the domain (UUID format).

**name** `string`

Domain name.

**fullyQualifiedName** `string`

Fully qualified name of the domain.

**domainType** `string`

Type of domain: `Source-aligned`, `Consumer-aligned`, or `Aggregate`.

**owners** `array`

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

**children** `array`

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

**experts** `array`

Subject matter experts. Only included when `fields` contains `experts`.

**paging** `object`

Pagination information.

**properties**

**total** `integer`

Total count of domains 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

The following fields can be requested via the `fields` query parameter:

| Field | Description |
| - | - |
| `owners` | Owner references (users and teams) |
| `children` | Child domain references |
| `experts` | Subject matter expert references |

***

## Error Handling

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


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