# Heap

> Analyze user behavior via Heap API. Query events, users, and funnels.

- Skill: `dvcrn/heap` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dvcrn/heap`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/heap/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/heap

---


# Heap
Product analytics.
## Environment
```bash
export HEAP_APP_ID="xxxxxxxxxx"
export HEAP_API_KEY="xxxxxxxxxx"
```
## Track Event (Server-side)
```bash
curl -X POST "https://heapanalytics.com/api/track" \
  -H "Content-Type: application/json" \
  -d '{"app_id": "'$HEAP_APP_ID'", "identity": "user@example.com", "event": "Purchase", "properties": {"amount": 99}}'
```
## Add User Properties
```bash
curl -X POST "https://heapanalytics.com/api/add_user_properties" \
  -H "Content-Type: application/json" \
  -d '{"app_id": "'$HEAP_APP_ID'", "identity": "user@example.com", "properties": {"plan": "premium"}}'
```
## Query API
```bash
curl "https://heapanalytics.com/api/partner/v1/events?app_id=$HEAP_APP_ID" \
  -H "Authorization: Bearer $HEAP_API_KEY"
```
## Links
- Dashboard: https://heapanalytics.com
- Docs: https://developers.heap.io

