How can I start/stop/add time to a task via API?

Hello! I’m working on a CLI tool to help reduce friction in providing data, and part of that will include starting and stopping time tracking, and the ability to add a block (say 1h) to a task via API. The goal would be to have the engineer, who is already in a terminal, simply run monday time add 30m <id>, or monday time start <id>. Eventually this could roll up into an Alfred workflow, or a few hotkeys. Is time tracking accessible via API? If so, how can I accomplish this?