Hi, all! <https://cal.com/api/trpc/viewer.public.s...
# developers
t
Hi, all! https://cal.com/api/trpc/viewer.public.session,viewer.public.slots.getSchedule?b[…]values%22%3A%7B%22duration%22%3A%5B%22undefined%22%5D%7D%7D%7D%7D This url returns available 15mins time slots of this month I can't find documentation about this api. How can I get available time slots using cal.com api according to Timezone, Event Type, Start Time, and End Time?
a
Copy code
{
  "0": {
    "json": null,
    "meta": {
      "values": [
        "undefined"
      ]
    }
  },
  "1": {
    "json": {
      "eventTypeId": 153280,
      "eventTypeSlug": "15min",
      "usernameList": [
        "travis-hamilton-kkvp0x"
      ],
      "startTime": "2022-12-01T05:00:00.000Z",
      "endTime": "2023-01-01T04:59:59.999Z",
      "timeZone": "America/New_York",
      "duration": null
    },
    "meta": {
      "values": {
        "duration": [
          "undefined"
        ]
      }
    }
  }
}
there would be your query parameter
message has been deleted
looking at the code, it looks like there multiple rouers behind the scenes https://github.com/calcom/cal.com/blob/main/packages/trpc/server/routers/viewer/slots.tsx this is the one you are calling 🙂