Skip to content
ToolsOnDuty - free online tools
ToolsOnDuty / docs
Browse documentation

Reference / Productivity

Productivity API

2 endpoints for productivity workflows. Every call requires bearer authentication and uses the standard ToolsOnDuty response envelope.

Try it

Runs a real request from your browser to your own ToolsOnDuty account. Your key is only kept in this page and is never stored.

POST/v1/productivity/meeting-cost1 credit / call

Meeting cost calculator

Calculate combined attendee hours, total cost and cost per minute for a meeting.

ParameterTypeRequiredDescription
attendeesnumberYesNumber of attendees.
averageHourlyCostnumberYesAverage hourly cost per attendee.
durationMinutesnumberYesMeeting duration in minutes.

Request

curl -X POST https://toolsonduty.com/api/v1/productivity/meeting-cost \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"attendees":5,"averageHourlyCost":40,"durationMinutes":60}'

Response

{
  "ok": true,
  "data": {
    "attendeeHours": 5,
    "totalCost": 200
  }
}
POST/v1/productivity/timesheet1 credit / call

Timesheet calculator

Calculate worked minutes and decimal hours from clock-in, clock-out and break entries.

ParameterTypeRequiredDescription
entriesstringYesJSON array of {start, end, breakMinutes} rows using HH:MM.

Request

curl -X POST https://toolsonduty.com/api/v1/productivity/timesheet \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"entries":"[{\"start\":\"09:00\",\"end\":\"17:00\",\"breakMinutes\":30}]"}'

Response

{
  "ok": true,
  "data": {
    "totalMinutes": 450,
    "totalHours": 7.5
  }
}