Custom Webhooks
Updated 2026-09-15
Custom Webhooks
You can hit the Time Hive ingestion API from any programming language or custom script.
cURL Example
curl -X POST https://api.timehive.io/ingest \
-H "Authorization: Bearer YOUR_INGEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": "processed", "count": 1}'
Node.js Example (fetch)
const logEvent = async () => {
const response = await fetch('https://api.timehive.io/ingest', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_INGEST_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
status: 'processed',
count: 1 // Increment this if you are logging a batch of items
})
});
const data = await response.json();
console.log(data);
};
Read the API Reference for detailed information on available payload parameters, including how to pass your task_id dynamically if needed.
If the integration has no Default Task, add "task_id" with the full Task ID (UUID) of the task in the integration's project, for example {"task_id": "271a869c-316f-4568-9f1c-96fa01b297d8", "status": "processed", "count": 1}.