Loading...
Track your habits and quits
No habits yet. Create your first habit!
No quits yet. Create your first quit!
⚠️ Save this key now! It will only be shown once.
Include your API key in the request headers:
X-API-Key: hqt_your_api_key_here
Or use Authorization header:
Authorization: Bearer hqt_your_api_key_here
GET /api/activities
Returns all your habits and quits
POST /api/activities
{
"name": "Drink Water",
"type": "habit",
"color": "#6366f1",
"icon": "💧"
}
POST /api/events
{
"activity_id": "activity-uuid",
"note": "Optional note",
"timestamp": "2024-01-01T12:00:00Z"
}
GET /api/events?activity_id=uuid
Query parameters: activity_id, limit, offset, today
DELETE /api/events/:id
curl -H "X-API-Key: hqt_your_key" \
https://yoursite.com/api/activities
fetch('https://yoursite.com/api/activities', {
headers: {
'X-API-Key': 'hqt_your_key',
'Content-Type': 'application/json'
}
})
.then(res => res.json())
.then(data => console.log(data))