AGENT SKILL

heap

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

适用职业开发工程师
使用场景后端与接口
License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
heap
metadata
{ "clawdbot": { "emoji": "?", "requires": { "env": [ "HEAP_APP_ID", "HEAP_API_KEY" ] } } }
description
Analyze user behavior via Heap API. Query events, users, and funnels.

02 资源文件 1

03 SKILL.md 正文

Heap

Product analytics.

Environment

export HEAP_APP_ID="xxxxxxxxxx"
export HEAP_API_KEY="xxxxxxxxxx"

Track Event (Server-side)

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

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

curl "https://heapanalytics.com/api/partner/v1/events?app_id=$HEAP_APP_ID" \
  -H "Authorization: Bearer $HEAP_API_KEY"

Links

04 同仓库更多 Skills