Skip to main content

Authentication

CubeStack supports two access modes: public access and API key authentication.

Public Access

If a cube has public access enabled, you can fetch records without authentication. Public access only exposes fields explicitly marked as public.
curl "https://api.cubestack.app/api/v1/{project-slug}/{cube-slug}"

API Key Authentication

For full access to your data, use an API key. Pass it in the X-Api-Key header:
curl "https://api.cubestack.app/api/v1/{project-slug}/{cube-slug}" \
  -H "X-Api-Key: your-api-key"

Getting Your API Key

  1. Navigate to your project in the admin panel
  2. Go to Settings > API Keys
  3. Click Generate New Key
  4. Copy and store the key securely — it won’t be shown again
Keep your API keys secret. Never expose them in client-side code or public repositories.

Access Levels

Access ModeReadWriteColumns Available
Public (no key)YesNoPublic fields only
API KeyYesYesAll fields

Next Steps

First Request

Make your first authenticated API request