Logo
Api

Heartbeats

Submit a single coding activity heartbeat to track your work

POST
/api/external/heartbeats
AuthorizationBearer <token>

In: header

timestampstring | number
projectstring
Lengthlength <= 255
languagestring
Lengthlength <= 50
editorstring
Lengthlength <= 50
osstring
Lengthlength <= 50
branch?string
Lengthlength <= 255
filestring
Lengthlength <= 255

Response Body

curl -X POST "https://ziit.app/api/external/heartbeats" \
  -H "Content-Type: application/json" \
  -d '{
    "timestamp": "2023-10-15T14:30:00Z",
    "project": "my-awesome-project",
    "language": "javascript",
    "editor": "vscode",
    "os": "macos",
    "file": "App.js"
  }'
{
  "success": true,
  "id": "string"
}
Empty
Empty