List calendars

Your calendars with name, color and whether they are writable.

GET https://cotlet.dev/api/v1/nextcloud/calendars

read

Lists the calendars of your account, including calendars others shared with you. Use the calendar value in list_events and create_calendar_event. Shared calendars can be read-only, and the writable flag says which.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "calendars": [
    {
      "calendar": "work",
      "name": "Work",
      "color": "#0082C9",
      "writable": true
    },
    {
      "calendar": "holidays",
      "name": "Team holidays",
      "color": "#2E7D32",
      "writable": false
    }
  ]
}

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.