Get my calendar budget

Read what is left of your absence budget, per type.

GET https://cotlet.dev/api/v1/officient/calendar-budget

read

Returns the figures shown under My calendar budget in the Calendar, one line per absence type your company uses. Call it before request_absence to see whether the type has enough left.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/officient/calendar-budget \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("officient", "get_calendar_budget")
Node.js
const result = await cotlet.call('officient', 'get_calendar_budget');
CLI
cotlet call officient get_calendar_budget

Example response

JSON

{
  "budgets": [
    {
      "type": "Holiday",
      "remaining": 14.5
    },
    {
      "type": "Overtime",
      "remaining": 6
    }
  ]
}

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.