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

> List all classifications with optional filtering and pagination

# List Classifications

List all classifications with optional filtering and pagination.

## Query Parameters

<ParamField query="limit" type="integer" default="10">
  Maximum number of results to return (max: 1000000).
</ParamField>

<ParamField query="before" type="string">
  Cursor for backward pagination.
</ParamField>

<ParamField query="after" type="string">
  Cursor for forward pagination.
</ParamField>

<ParamField query="fields" type="string">
  Comma-separated list of fields to include: `owners`. See [Supported Fields](#supported-fields) below.
</ParamField>

<ParamField query="include" type="string" default="non-deleted">
  Include `all`, `deleted`, or `non-deleted` entities.
</ParamField>

<RequestExample dropdown>
  ```python GET /v1/classifications theme={null}
  from metadata.sdk import configure
  from metadata.sdk.entities import Classifications

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

  # List first page
  classifications = Classifications.list(limit=50)
  for c in classifications.data:
      print(f"{c.fullyQualifiedName} (mutuallyExclusive: {c.mutuallyExclusive})")

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

  # With fields
  classifications = Classifications.list(
      fields=["owners"],
      limit=50
  )
  ```

  ```java GET /v1/classifications theme={null}
  import static org.openmetadata.sdk.fluent.Classifications.*;

  // List first page
  var result = Classifications.list()
      .limit(50)
      .execute();

  for (var c : result.getData()) {
      System.out.println(c.getFullyQualifiedName());
  }

  // With fields
  var result = Classifications.list()
      .fields("owners")
      .limit(50)
      .execute();
  ```

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

  # With fields
  curl "{base_url}/api/v1/classifications?fields=owners&limit=50" \
    -H "Authorization: Bearer {access_token}"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": [
      {
        "id": "06d90883-6be9-4f7e-9475-753f10a95e94",
        "name": "Certification",
        "fullyQualifiedName": "Certification",
        "description": "Certifying Data Asset will provide the users with a clear idea of...",
        "version": 0.1,
        "updatedAt": 1769982619610,
        "updatedBy": "admin",
        "deleted": false,
        "owners": [],
        "provider": "system",
        "mutuallyExclusive": true
      }
    ],
    "paging": {
      "after": "...",
      "total": 5
    }
  }
  ```
</ResponseExample>

***

## Returns

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

## Response

<ResponseField name="data" type="array">
  Array of classification objects.

  <Expandable title="properties">
    <ResponseField name="id" type="string">
      Unique identifier for the classification (UUID format).
    </ResponseField>

    <ResponseField name="name" type="string">
      Classification name.
    </ResponseField>

    <ResponseField name="fullyQualifiedName" type="string">
      Fully qualified name of the classification.
    </ResponseField>

    <ResponseField name="mutuallyExclusive" type="boolean">
      Whether tags are mutually exclusive.
    </ResponseField>

    <ResponseField name="provider" type="string">
      Provider: `user` or `system`.
    </ResponseField>

    <ResponseField name="owners" type="array" optional>
      List of owners. Only included when `fields` contains `owners`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="paging" type="object">
  Pagination information.

  <Expandable title="properties">
    <ResponseField name="total" type="integer">
      Total count of classifications matching the query.
    </ResponseField>

    <ResponseField name="after" type="string" optional>
      Cursor for the next page of results. Null if this is the last page.
    </ResponseField>

    <ResponseField name="before" type="string" optional>
      Cursor for the previous page of results. Null if this is the first page.
    </ResponseField>
  </Expandable>
</ResponseField>

***

## Supported Fields

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

***

## Error Handling

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