Integrate TaskPulse in Minutes
Copy-paste code snippets to add monitoring to your scheduled tasks, automation workflows, and applications.
Get up and running in 3 simple steps
Create a Monitor
Sign up and create a heartbeat or signal monitor from your dashboard.
Copy Your UUID
Each monitor has a unique UUID. Copy it from the monitor details page.
Add the Ping
Add an HTTP POST request at the end of your task using the snippets below.
Understanding Monitor Types
Choose the right type for your use case
"Did my task run?"
Best for:
- Cron jobs & scheduled tasks
- Database backups
- Report generation
- Data sync jobs
Ping on success → Get alerted if ping is missed
POST /ping/{uuid}"What happened in my app?"
Best for:
- Payment events
- User signups & actions
- Order completions
- Error & exception tracking
Send anytime → Auto-extracts level from payload
POST /signal/{uuid}Heartbeat Monitoring
For cron jobs and scheduled tasks
Remember: Only send a ping when your task completes successfully. If your task fails, don't send a ping — TaskPulse will alert you when the expected ping is missed.
Turn simple pings into data-rich events by including a JSON payload with your heartbeat. Track metrics like items processed, revenue, or error counts alongside uptime monitoring. Payloads are FREE — they don't count against your monthly event quota. Max size: 4KB.
# Simple heartbeat ping
curl -X POST https://api.taskpulse.co/ping/YOUR_MONITOR_UUID
# Heartbeat with execution duration (in milliseconds)
curl -X POST https://api.taskpulse.co/ping/YOUR_MONITOR_UUID/1500
# Smart Heartbeat with JSON payload (track metrics alongside uptime)
curl -X POST https://api.taskpulse.co/ping/YOUR_MONITOR_UUID \
-H "Content-Type: application/json" \
-d '{"duration_ms": 1500, "items_processed": 150, "revenue": 4999.99}'
# Example in a cron job script
#!/bin/bash
START_TIME=$(date +%s%3N)
# Your task logic here
/path/to/your/script.sh
END_TIME=$(date +%s%3N)
DURATION=$((END_TIME - START_TIME))
# Send simple ping with duration
curl -X POST "https://api.taskpulse.co/ping/YOUR_MONITOR_UUID/${DURATION}"
# Or send smart ping with metrics
curl -X POST "https://api.taskpulse.co/ping/YOUR_MONITOR_UUID" \
-H "Content-Type: application/json" \
-d "{"duration_ms": ${DURATION}, "items_processed": 100}"Signal Events
For tracking business events and metrics
Signal events accept any JSON payload up to 4KB. TaskPulse automatically extracts the severity level from fields like status,level, or severity.
# Send a signal event with JSON payload
curl -X POST https://api.taskpulse.co/signal/YOUR_MONITOR_UUID \
-H "Content-Type: application/json" \
-d '{"status": "success", "processed": 150, "duration_ms": 1234}'
# Signal with error level
curl -X POST https://api.taskpulse.co/signal/YOUR_MONITOR_UUID \
-H "Content-Type: application/json" \
-d '{"status": "error", "message": "Database connection failed", "code": 500}'
# Signal with custom data
curl -X POST https://api.taskpulse.co/signal/YOUR_MONITOR_UUID \
-H "Content-Type: application/json" \
-d '{
"event": "order_processed",
"order_id": "ORD-12345",
"amount": 99.99,
"customer": "john@example.com"
}'Low-Code / No-Code Platforms
Integration guides for automation tools
Notification Integrations
Connect TaskPulse to Slack, Discord, and more
Slack and Discord integrations require a Pro plan. Custom Webhooks are available on Business plan only.
Best Practices
• Place the ping at the END of your task, after all logic completes
• Include execution duration for performance tracking
• Set monitor interval slightly longer than your schedule
• Use signal events for important business metrics
• Test your integration before going to production
• Don't send a heartbeat ping if your task fails — let TaskPulse alert you
• Don't put heartbeat pings in error/catch blocks — use Signal monitors with status: "error" to track failures instead
• Don't set interval shorter than your actual schedule
• Don't ignore TaskPulse connection errors in production
• Don't share monitor UUIDs publicly
Ready to start monitoring?
Create your free account and set up your first monitor in under a minute.
Get Started Free