Complete reference for all PinkyBot REST API endpoints
or https://pinkybot.io
Check server status, uptime, and available models
{
"status": "online",
"mode": "LIVE",
"model": "xai/grok-4-latest",
"codeModel": "anthropic/claude-sonnet-4-5",
"hasXaiKey": true,
"hasAnthropicKey": true,
"uptime": 3600.5,
"timestamp": "2026-02-06T07:00:00.000Z",
"wsClients": 0
}
Get all tasks (pending, running, completed)
[{
"id": "create-readme-install-guide",
"name": "Create README.md install guide for new PinkyBot users",
"assigned": "2026-02-06",
"status": "completed",
"updated": "2026-02-06",
"priority": "P2",
"notes": "6.7KB with installation guide, features, pricing, troubleshooting",
"sort_order": 0
}]
Create, update, or delete tasks
{
"action": "create",
"name": "My task",
"status": "pending",
"priority": "P1",
"notes": "Task description"
}
{
"action": "update_status",
"taskName": "My task",
"newStatus": "running"
}
{
"action": "delete",
"name": "My task"
}
Get heartbeat activity log (last 100 entries)
{
"heartbeats": [{
"timestamp": 1707190800000,
"activity": "Heartbeat #129: Completed 2 P2 tasks...",
"lagMs": 0,
"tokens": 2100,
"exec": 12
}],
"heartbeatCount": 129,
"lastUpdated": "2026-02-06T07:00:00.000Z"
}
Get live CPU, memory, disk usage
For self-hosted PinkyBot, no API key is required — the server is local and assumes trusted access.
For cloud-hosted instances, API keys are managed in Settings > API Configuration.
Local deployment: Unlimited
Cloud deployment: Pro tier gets 10,000 req/hour, Enterprise gets 100,000 req/hour
All responses return HTTP status codes:
200 — Success400 — Bad request (invalid parameters)404 — Not found500 — Server errorcurl /api/health
curl /api/tasks | jq '.[] | select(.status=="pending")'
curl -X POST /api/tasks \
-H 'Content-Type: application/json' \
-d '{
"action": "create",
"name": "Write documentation",
"priority": "P1",
"notes": "Create user guide"
}'
curl -X POST /api/tasks \
-H 'Content-Type: application/json' \
-d '{
"action": "update_status",
"taskName": "Write documentation",
"newStatus": "running"
}'
curl /api/activity | jq '.heartbeats | last'
For API questions, feature requests, or bug reports:
PinkyBot API © 2026 | Built by Ken & Pinky 🐭