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

# Cubes

> API endpoints for managing cubes.

# Cubes Endpoints

Endpoints for listing and managing cubes within a project.

## List Cubes

Retrieve all cubes in a project.

```bash theme={null}
GET /api/v1/{project}/cubes
```

<ParamField header="X-Api-Key" type="string" required>
  Your API key
</ParamField>

### Response

```json theme={null}
{
  "data": [
    {
      "slug": "blog-posts",
      "name": "Blog Posts",
      "columns": [],
      "record_count": 42
    }
  ]
}
```

## Get Cube Schema

Retrieve the schema (columns and settings) for a specific cube.

```bash theme={null}
GET /api/v1/{project}/cubes/{cube_slug}
```

### Response

```json theme={null}
{
  "slug": "blog-posts",
  "name": "Blog Posts",
  "columns": [
    {
      "name": "title",
      "type": "text",
      "required": true,
      "public": true
    },
    {
      "name": "content",
      "type": "richtext",
      "required": false,
      "public": true
    }
  ]
}
```
