Views
Specialized visualizations for analyzing chain behavior over time, plus a gamified puzzle view for projects.
Behavioral Views
Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /chains/:chainId/views/snake | Snake visualization | JWT |
| GET | /chains/:chainId/views/voxel | Voxel grid view | JWT |
| GET | /chains/:chainId/views/concurrency | Concurrency timeline | JWT |
Snake View
Renamed: this view was previously called Sneak. Old links and saved preferences that still send the
sneakvalue continue to work — it maps tosnake.
Request
- Path params:
chainId - Query params:
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (ISO 8601) |
to | string | End date (ISO 8601) |
bucket | string | Bucket size for voxel view: day, week, month |
Response
json
{
"data": {
"segments": [
{ "date": "2026-03-01", "value": 1, "completed": true },
{ "date": "2026-03-02", "value": 0, "completed": false },
{ "date": "2026-03-03", "value": 1, "completed": true }
],
"totalCompleted": 12,
"totalDays": 17
}
}Code Examples
Replace
$CHAIN_IDbelow with theidof the chain you want to inspect — from Create Chain or List Chains.
curl "https://api.chainabit.com/api/v1/chains/$CHAIN_ID/views/snake?from=2026-03-01&to=2026-03-17" \
-H "Authorization: Bearer $TOKEN"Voxel Grid View
Request
- Path params:
chainId - Query params:
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (ISO 8601) |
to | string | End date (ISO 8601) |
bucket | string | Bucket size for voxel view: day, week, month |
Response
json
{
"data": {
"buckets": [
{ "period": "2026-W01", "completions": 5, "total": 7, "intensity": 0.71 },
{ "period": "2026-W02", "completions": 7, "total": 7, "intensity": 1.0 }
]
}
}Code Examples
curl "https://api.chainabit.com/api/v1/chains/$CHAIN_ID/views/voxel?from=2026-01-01&to=2026-03-17&bucket=week" \
-H "Authorization: Bearer $TOKEN"Concurrency Timeline
Request
- Path params:
chainId - Query params:
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (ISO 8601) |
to | string | End date (ISO 8601) |
bucket | string | Bucket size for voxel view: day, week, month |
Response
json
{
"data": {
"timeline": [
{
"date": "2026-03-17",
"events": [
{ "bitId": "cm5bit001", "completedAt": "2026-03-17T09:00:00.000Z" },
{ "bitId": "cm5bit002", "completedAt": "2026-03-17T14:30:00.000Z" }
]
}
]
}
}Code Examples
curl "https://api.chainabit.com/api/v1/chains/$CHAIN_ID/views/concurrency?from=2026-03-01&to=2026-03-17" \
-H "Authorization: Bearer $TOKEN"Puzzle View
A gamified puzzle visualization for projects that shows progress as pieces coming together.
Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /chainies/:chainyId/views/puzzle | Get puzzle view | JWT |
| PUT | /chainies/:chainyId/views/puzzle/config | Update puzzle configuration | JWT |
Get Puzzle View
Request
- Path params:
chainyId
Response
json
{
"data": {
"chainyId": "cm5abc123",
"totalPieces": 20,
"completedPieces": 14,
"completionPercentage": 0.70,
"pieces": [
{ "id": "piece-1", "chainId": "cm5chain01", "completed": true },
{ "id": "piece-2", "chainId": "cm5chain02", "completed": false }
]
}
}Code Examples
Replace
$CHAINY_IDbelow with theidof the project you want to inspect — from Create Project or List Projects.
curl "https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/views/puzzle?from=2026-03-01&to=2026-03-17" \
-H "Authorization: Bearer $TOKEN"Update Puzzle Config
Request
- Path params:
chainyId - Body:
gridSize,theme,showLabels— see example below.
Response
json
{
"data": {
"chainyId": "cm5abc123",
"gridSize": 5,
"theme": "space",
"showLabels": true,
"updatedAt": "2026-03-17T12:00:00.000Z"
}
}Code Examples
curl -X PUT https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/views/puzzle/config \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"gridSize": 5,
"theme": "space",
"showLabels": true
}'