Overview
- Category
- Business Tools
- API mode
execute- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/time-card-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/time-card-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
entries· string · required- One HH:MM-HH:MM shift per line.
break_minutes· integer · required- Unpaid minutes deducted from every shift.
{
"type": "object",
"properties": {
"entries": {
"type": "string",
"description": "One HH:MM-HH:MM shift per line."
},
"break_minutes": {
"type": "integer",
"minimum": 0,
"description": "Unpaid minutes deducted from every shift."
}
},
"required": [
"entries",
"break_minutes"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
total_hours· number- No field description is available.
total_minutes· number- No field description is available.
formatted_total· string- No field description is available.
shift_count· number- No field description is available.
daily· array- Per-shift breakdown.
{
"type": "object",
"properties": {
"total_hours": {
"type": "number"
},
"total_minutes": {
"type": "number"
},
"formatted_total": {
"type": "string"
},
"shift_count": {
"type": "number"
},
"daily": {
"type": "array",
"items": [],
"description": "Per-shift breakdown."
}
},
"additionalProperties": false
}
Two shifts with a 30-minute break each
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/time-card-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"entries": "09:00-17:00\n09:00-13:00",
"break_minutes": 30
}'
{
"ok": true,
"data": {
"slug": "time-card-calculator",
"result": {
"values": {
"total_hours": 11,
"total_minutes": 660,
"formatted_total": "11:00",
"shift_count": 2,
"daily": [
{
"line": 1,
"start": "09:00",
"end": "17:00",
"overnight": false,
"shift_minutes": 480,
"break_minutes": 30,
"paid_minutes": 450,
"hours": 7.5
},
{
"line": 2,
"start": "09:00",
"end": "13:00",
"overnight": false,
"shift_minutes": 240,
"break_minutes": 30,
"paid_minutes": 210,
"hours": 3.5
}
]
},
"display": {
"display": "11"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.