Overview
- Category
- Date & Time
- API mode
not_available- 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/interval-timer
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/interval-timer/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.
work_seconds· number · required- Enter the work interval used by this tool.
rest_seconds· number · required- Enter the rest interval used by this tool.
rounds_per_set· number · required- Enter the rounds per set used by this tool.
sets· number · required- Enter the number of sets used by this tool.
set_break_seconds· number · required- Enter the break between sets used by this tool.
sound· boolean · optional- Enter the play interval sound used by this tool.
{
"type": "object",
"properties": {
"work_seconds": {
"type": "number",
"description": "Enter the work interval used by this tool.",
"minimum": 1,
"maximum": 3600
},
"rest_seconds": {
"type": "number",
"description": "Enter the rest interval used by this tool.",
"minimum": 0,
"maximum": 3600
},
"rounds_per_set": {
"type": "number",
"description": "Enter the rounds per set used by this tool.",
"minimum": 1,
"maximum": 100
},
"sets": {
"type": "number",
"description": "Enter the number of sets used by this tool.",
"minimum": 1,
"maximum": 50
},
"set_break_seconds": {
"type": "number",
"description": "Enter the break between sets used by this tool.",
"minimum": 0,
"maximum": 3600
},
"sound": {
"type": "boolean",
"description": "Enter the play interval sound used by this tool."
}
},
"required": [
"work_seconds",
"rest_seconds",
"rounds_per_set",
"sets",
"set_break_seconds"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
total_duration_seconds· number- Programmed duration produced by the tool.
total_duration· string- Programmed duration display produced by the tool.
work_time_seconds· number- Total work time produced by the tool.
rest_time_seconds· number- Total rest time produced by the tool.
interval_count· number- Total work intervals produced by the tool.
{
"type": "object",
"properties": {
"total_duration_seconds": {
"type": "number",
"description": "Programmed duration produced by the tool."
},
"total_duration": {
"type": "string",
"description": "Programmed duration display produced by the tool."
},
"work_time_seconds": {
"type": "number",
"description": "Total work time produced by the tool."
},
"rest_time_seconds": {
"type": "number",
"description": "Total rest time produced by the tool."
},
"interval_count": {
"type": "number",
"description": "Total work intervals produced by the tool."
}
},
"additionalProperties": false
}
Interval Timer example
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/interval-timer/execute" \
-H "Content-Type: application/json" \
-d '{
"work_seconds": 45,
"rest_seconds": 15,
"rounds_per_set": 8,
"sets": 3,
"set_break_seconds": 120,
"sound": true
}'
{
"ok": true,
"data": {
"slug": "interval-timer",
"result": {
"values": {
"total_duration_seconds": 1635,
"total_duration": "00:27:15",
"work_time_seconds": 1080,
"rest_time_seconds": 555,
"interval_count": 24
},
"display": {
"display": "1635"
},
"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.