Skip to main content

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:
MethodDescription
GETRetrieve records
POSTCreate a new record
PUTUpdate an existing record
DELETEDelete a record

Response Format

All responses return JSON with the following structure:

List Response

{
  "data": [],
  "total": 0,
  "page": 1,
  "pageSize": 25
}

Single Record Response

{
  "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.