Logo
Api

Heartbeat

Accepts one heartbeat payload authenticated via Bearer API key.

POST
/api/external/heartbeats
AuthorizationBearer <token>

In: header

timestampstring | number

ISO 8601 timestamp; numeric epoch also accepted.

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
Empty