-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Description
Found a bug? Please fill out the sections below. 👍
Issue Summary
Unable to get the availabity slots from the api. return 400 status code
Steps to Reproduce
- Open the cal.com document
- Find the slots endpoint "v2/slots"
- Add the fields [username, start, end, eventTypeId & eventTypeSlug]
- Send a request and wait to see the result
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
From the error message, it seems it's an error related to the DTO or the validation on the query params. since it says that the fields should not exist .
Actual Results
{
"status": "error",
"timestamp": "2025-07-31T12:42:07.061Z",
"path": "/v2/slots?start=2025-07-31&end=2025-10-01&username=mohamadshama-cm5l0wpq900jdqg1ln93extg3-nafsihealth-com&eventTypeSlug=60min_cc&eventTypeId=1661430",
"error": {
"code": "BadRequestException",
"message": "username property is wrong,property username should not exist , eventTypeSlug property is wrong,property eventTypeSlug should not exist ",
"details": {
"message": "username property is wrong,property username should not exist , eventTypeSlug property is wrong,property eventTypeSlug should not exist ",
"error": "Bad Request",
"statusCode": 400
}
}
}
Expected Results
- Should return an array of slots grouped by date
Technical details
it's from the documentation
Evidence
- How was this tested? I did it from the documentation