Approve a leave request
Approve one pending request from the inbox.
POST https://cotlet.dev/api/v1/timetastic/requests/{request_id}/approve
write Confirm
Returns the request with its new status and who approved it. It works for the requests your account may approve; an approver handles their own people, and an admin can approve any employee's leave. Timetastic emails the person right away. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Request id from list_pending_requests. |
Request
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/5128840/approve \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("timetastic", "approve_request", {"request_id":"5128840"}) const result = await cotlet.call('timetastic', 'approve_request', {"request_id":"5128840"}); cotlet call timetastic approve_request --data '{"request_id":"5128840"}' Example response
{
"request_id": "5128840",
"employee": "Ana Torres",
"leave_type": "Holiday",
"from": "2026-11-23",
"to": "2026-11-27",
"days": 5,
"status": "Approved",
"approved_by": "Priya Nair"
}