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

# API Overview

> Overview of the CubeStack REST API.

# API Overview

The CubeStack API is a RESTful API that provides full access to your data. Every cube automatically gets API endpoints for CRUD operations.

## Base URL

```
https://api.cubestack.app/api/v1
```

## Request Format

All requests use standard HTTP methods:

| Method   | Description               |
| -------- | ------------------------- |
| `GET`    | Retrieve records          |
| `POST`   | Create a new record       |
| `PUT`    | Update an existing record |
| `DELETE` | Delete a record           |

## Response Format

All responses return JSON with the following structure:

### List Response

```json theme={null}
{
  "data": [],
  "total": 0,
  "page": 1,
  "pageSize": 25
}
```

### Single Record Response

```json theme={null}
{
  "id": 1,
  "field_name": "value",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## Content Type

All request bodies must be sent as `application/json`:

```
Content-Type: application/json
```

## Versioning

The API is versioned via the URL path (`/api/v1`). Breaking changes will be introduced in new versions.
