Open govindrai opened 3 weeks ago
I have the same issue here:
curl --location 'https://api.cal.com/v2/slots/available?startTime=2024-09-01T03%3A00%3A00.000Z&endTime=2024-10-01T02%3A59%3A59.999Z' \
--header 'Authorization: cal_<my_token>'
Returns:
{
"status": "error",
"timestamp": "2024-09-24T00:20:25.518Z",
"path": "/v2/slots/available?startTime=2024-09-01T03%3A00%3A00.000Z&endTime=2024-10-01T02%3A59%3A59.999Z&eventTypeSlug=%2230min%22",
"error": {
"code": "TRPCError",
"message": "NOT_FOUND"
}
}
You have to add "eventTypeId" or "username/eventslug" as parameter as well
Found a bug? Please fill out the sections below. 👍
Issue Summary
When trying to fetch availability slots using the v2 API, I get the following error:
Steps to Reproduce
Run this on Node.js 21
I expect to either get a 400 (Bad Request) or availability slots.