Skip to content

Unable to get the availability slots. #22841

@mohammad-qb

Description

@mohammad-qb

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

  1. Open the cal.com document
  2. Find the slots endpoint "v2/slots"
  3. Add the fields [username, start, end, eventTypeId & eventTypeSlug]
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiarea: API, enterprise API, access token, OAuth🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions