Skip to content

Views ​

Specialized visualizations for analyzing chain behavior over time, plus a gamified puzzle view for projects.

Behavioral Views ​

Endpoints ​

MethodPathDescriptionAuth
GET/chains/:chainId/views/snakeSnake visualizationJWT
GET/chains/:chainId/views/voxelVoxel grid viewJWT
GET/chains/:chainId/views/concurrencyConcurrency timelineJWT

Snake View ​

Renamed: this view was previously called Sneak. Old links and saved preferences that still send the sneak value continue to work — it maps to snake.

Request ​

  • Path params: chainId
  • Query params:
ParameterTypeDescription
fromstringStart date (ISO 8601)
tostringEnd date (ISO 8601)
bucketstringBucket 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_ID below with the id of 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:
ParameterTypeDescription
fromstringStart date (ISO 8601)
tostringEnd date (ISO 8601)
bucketstringBucket 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:
ParameterTypeDescription
fromstringStart date (ISO 8601)
tostringEnd date (ISO 8601)
bucketstringBucket 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 ​

MethodPathDescriptionAuth
GET/chainies/:chainyId/views/puzzleGet puzzle viewJWT
PUT/chainies/:chainyId/views/puzzle/configUpdate puzzle configurationJWT

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_ID below with the id of 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
  }'

Built with purpose. chainabit.com