---
title: "Collections.List"
description: "List the available collections in a dataset."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Collections.List

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (collectionClient) List(
    ctx context.Context,
    datasetID uuid.UUID,
) ([]*datasets.Collection, error)
```

List the available collections in a dataset.

## Parameters

**datasetID**

type: uuid.UUID

The id of the dataset

## Returns

A list of collection objects.

## Errors

**not_found**

type: No such dataset

The specified dataset does not exist.

<h2 id="request-example">Usage example</h2>

```go
collections, err := client.Collections.List(ctx,
    datasetID,
)
```

Source: https://tilebox.com/docs/api-reference/go/datasets/Collections.List/index.mdx
