# Console

The [Tilebox Console](https://console.tilebox.com) is a web interface that enables you to explore your datasets and workflows, manage your account and API keys, add collaborators to your team and monitor your usage.

## Datasets

The datasets explorer lets you explore available datasets for your team. You can select a dataset, view its collections, and load data for a collection within a specified time range.

![Tilebox Console](/docs/assets/console/datasets-explorer-light.png)

![Tilebox Console](/docs/assets/console/datasets-explorer-dark.png)

When you click a specific event time in the data point list view, a detailed view of that data point will appear.

![Tilebox Console](/docs/assets/console/datapoint-light.png)

![Tilebox Console](/docs/assets/console/datapoint-dark.png)

### Export as Code

After selecting a dataset, collection, and time range, you can export the current selection as a Python code snippet. This will copy a code snippet like the one below to your clipboard.

**Python**

```python title="Python"
from tilebox.datasets import Client

client = Client()
datasets = client.datasets()
sentinel2_msi = datasets.open_data.copernicus.sentinel2_msi
data = sentinel2_msi.collection("S2A_S2MSI1C").query(
    temporal_extent=("2024-07-12", "2024-07-26"),
    show_progress=True,
)
```

**Go**

```go title="Go"
ctx := context.Background()
client := datasets.NewClient()

dataset, err := client.Datasets.Get(ctx, "open_data.copernicus.sentinel2_msi")
if err != nil {
    log.Fatalf("Failed to get dataset: %v", err)
}

collection, err := client.Collections.Get(ctx, dataset.ID, "S2A_S2MSI1C")
if err != nil {
    log.Fatalf("Failed to get collection: %v", err)
}

startDate := time.Date(2024, 7, 12, 0, 0, 0, 0, time.UTC) 
endDate := time.Date(2024, 7, 26, 0, 0, 0, 0, time.UTC) 
timeInterval := query.NewTimeInterval(startDate, endDate)

var datapoints []*v1.Sentinel2Msi
err = client.Datapoints.QueryInto(ctx,
    dataset.ID,
    &datapoints,
    datasets.WithCollectionIDs(collection.ID),
    datasets.WithTemporalExtent(timeInterval),
)
if err != nil {
    log.Fatalf("Failed to query datapoints: %v", err)
}
```

Paste the snippet into a [notebook](/docs/sdks/python/sample-notebooks) to interactively explore the
[`xarray.Dataset`](/docs/sdks/python/xarray) that is returned.

## Workflows

The workflows section of the console allows you to view jobs, create clusters and create near real-time automations.

![Tilebox Console](/docs/assets/console/automation-light.png)

![Tilebox Console](/docs/assets/console/automation-dark.png)

## Account

### API Keys

The API Keys page enables you to manage your API keys. You can create new API keys, revoke existing ones, and view currently active API keys.

![Tilebox Console](/docs/assets/console/api-keys-light.png)

![Tilebox Console](/docs/assets/console/api-keys-dark.png)

### Usage

The Usage page allows you to view your current usage of the Tilebox API.

![Tilebox Console](/docs/assets/console/usage-light.png)

![Tilebox Console](/docs/assets/console/usage-dark.png)
