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

Parameters: approve_request
NameTypeDescription
request_id string required string Request id from list_pending_requests.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/5128840/approve \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("timetastic", "approve_request", {"request_id":"5128840"})
Node.js
const result = await cotlet.call('timetastic', 'approve_request', {"request_id":"5128840"});
CLI
cotlet call timetastic approve_request --data '{"request_id":"5128840"}'

Example response

JSON

{
  "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"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.