DocsAPIBrain API Reference

Brain API Reference

REST and WebSocket API for programmatic access to HelixMind brains.

Brain API Reference

The HelixMind Brain API provides programmatic access to your spiral brains. Use it to create, read, update, and search brain nodes from external applications, CI/CD pipelines, or custom integrations.

Authentication

All API requests require a HelixMind API key. Create one in Dashboard > API Keys.

Authorization: Bearer hm_your_api_key_here

API keys use the hm_ prefix and can be scoped to specific operations.

Base URL

https://helix-mind.ai/api/brain/v1

Endpoints

Brains

MethodPathDescription
GET/brainsList all brains for the authenticated user
POST/brainsCreate a new brain
GET/brains/:idGet brain details
DELETE/brains/:idDelete a brain

Nodes

MethodPathDescription
GET/brains/:id/nodesList all nodes in a brain
POST/brains/:id/nodesCreate a new node
GET/brains/:id/nodes/:nidGet a specific node
PATCH/brains/:id/nodes/:nidUpdate a node
DELETE/brains/:id/nodes/:nidDelete a node
MethodPathDescription
POST/brains/:id/searchSemantic search across brain nodes

Import / Export

MethodPathDescription
GET/brains/:id/exportExport brain as JSON
POST/brains/:id/importImport nodes into a brain

Stats

MethodPathDescription
GET/brains/:id/statsGet brain statistics (node count, levels, size)

Sync API

The Sync API allows the CLI to push and pull incremental changes.

MethodPathDescription
POST/sync/pushPush local changes to the cloud
GET/sync/pull/:brainIdPull remote changes
GET/sync/status/:brainIdCheck sync status

WebSocket Connection

For real-time brain visualization and live updates, connect via WebSocket:

wss://helix-mind.ai/api/relay/cli?apiKey=hm_your_key

The WebSocket relay enables the CLI to stream session events, findings, and brain updates to the web dashboard in real time.

Rate Limits

PlanRequests/min
Free+30
Pro120
Team300
EnterpriseCustom

Error Responses

All errors follow a consistent format:

{
  "error": "Description of the error",
  "code": "ERROR_CODE"
}

Common HTTP status codes: 401 (unauthorized), 403 (forbidden), 404 (not found), 429 (rate limited), 500 (server error).

HelixMind โ€” AI Coding CLI with Spiral Memory