#Tool failed: get_available_slots1:16ToolwebhookResult203 msWebhook call resultTool exec
1 messages · Page 1 of 1 (latest)
The error code 404 indicates that the requested resource was not found at the specified URL. Here are some possible causes and steps to fix the issue:
Causes:
- Incorrect URL: The URL used in the API call might be incorrect or improperly formatted.
- Invalid
eventTypeId: TheeventTypeIdprovided (1351800) might not exist or be invalid. - Authentication Issues: The API call might lack proper authentication, such as a valid bearer token.
- Endpoint Configuration: The endpoint
/v2/slotsmight not be configured correctly or might not support the parameters provided.
Steps to Fix:
- Verify the URL: Double-check the URL structure and ensure it matches the API documentation for Cal.com.
- Check
eventTypeId: Confirm that theeventTypeIdis correct and corresponds to an existing event type in your Cal.com account. - Authentication: Ensure that the API call includes a valid bearer token in the headers. Without proper authentication, the request will fail.
- Test Manually: Use a tool like Postman or cURL to manually test the API call with the same parameters to identify the issue.
- Review API Documentation: Refer to Cal.com's API documentation to ensure the endpoint
/v2/slotsis being used correctly and supports the provided parameters. - Contact Cal.com Support: If the issue persists, reach out to Cal.com's support team for assistance in troubleshooting the API call.
By addressing these points, you should be able to identify and resolve the issue with the get_available_slots tool.
Postman result:
{
"status": "error",
"timestamp": "2025-06-16T08:41:05.387Z",
"path": "/v2/slots",
"error": {
"code": "BadRequestException",
"message": "usernames property is wrong,each value in usernames must be a string, The array must contain at least 2 elements., usernames must be an array , organizationSlug property is wrong,organizationSlug must be a string , start property is wrong,start must be a valid ISO 8601 date string , end property is wrong,end must be a valid ISO 8601 date string ",
"details": {
"message": "usernames property is wrong,each value in usernames must be a string, The array must contain at least 2 elements., usernames must be an array , organizationSlug property is wrong,organizationSlug must be a string , start property is wrong,start must be a valid ISO 8601 date string , end property is wrong,end must be a valid ISO 8601 date string ",
"error": "Bad Request",
"statusCode": 400
}
}
}
The error indicates that the API call to Cal.com failed due to incorrect or missing parameters in the request. Here's a breakdown of the issues and how to fix them:
Causes:
-
usernamesProperty:- The
usernamesfield must be an array containing at least two string elements. - Ensure all values in the array are valid strings.
- The
-
organizationSlugProperty:- The
organizationSlugmust be a valid string. - Verify that this field is correctly set in your request.
- The
-
startandendProperties:- Both
startandendmust be valid ISO 8601 date strings. - Ensure the date format is correct (e.g.,
YYYY-MM-DDTHH:mm:ssZ).
- Both
Fixes:
-
Validate Input Parameters:
- Check the
usernames,organizationSlug,start, andendfields in your API request. - Example of a corrected payload:
{ "usernames": ["user1", "user2"], "organizationSlug": "your-organization", "start": "2025-06-16T00:00:00Z", "end": "2025-06-16T23:59:59Z" }
- Check the
-
Test with Postman:
- Update the request with the corrected parameters and test it again using Postman.
- Ensure the API endpoint URL is correct:
https://api.cal.com/v2/slots.
-
Check Documentation:
- Refer to Cal.com’s API documentation to confirm the required fields and their formats.
-
Debugging:
- If the issue persists, manually test each parameter to ensure it meets the API requirements.
- Reach out to Cal.com’s support team for further assistance if needed.
By addressing these issues, your API call should work correctly.
guide me on how to test https://api.cal.com/v2/slots in Postman
Tool failed: get_available_slots
0:20
Tool
webhook
Result
231 ms
Webhook call result
Tool execution time
231 ms
Error code:404. Details: 404, message='Not Found', url='https://api.cal.com/v2/slots?end=2025-06-16T23:59:59Z&start=2025-06-16T00:00:00Z&eventTypeId=1351800'
The error code 404 indicates that the requested resource was not found at the specified URL. This could be due to several reasons:
Possible Causes:
- Incorrect URL: The endpoint URL might be incorrect or missing required parameters.
- Invalid Parameters: The query parameters (
start,end,eventTypeId) might be improperly formatted or invalid. - Authentication Issues: The API might require authentication or specific headers that are missing.
- Resource Not Available: The
eventTypeIdprovided might not exist or is inaccessible.
Steps to Test the API in Postman:
-
Set Up the Request:
- Open Postman and create a new request.
- Set the method to
GET. - Enter the URL:
https://api.cal.com/v2/slots.
-
Add Query Parameters:
- Click on the "Params" tab in Postman.
- Add the following parameters:
start: A valid ISO 8601 date string (e.g.,2025-06-16T00:00:00Z).end: A valid ISO 8601 date string (e.g.,2025-06-16T23:59:59Z).eventTypeId: The ID of the event type (e.g.,1351800).
-
Add Headers:
- If the API requires authentication, add the necessary headers (e.g.,
Authorization: Bearer <your_token>).
- If the API requires authentication, add the necessary headers (e.g.,
-
Send the Request:
- Click "Send" to execute the request.
- Check the response for any errors or data.
Troubleshooting:
- Verify URL and Parameters: Ensure the URL and query parameters are correct and match the API documentation.
- Check Authentication: If authentication is required, ensure the token or credentials are valid.
- Inspect Error Messages: If you receive a
400 Bad Requesterror, review the error details to correct any invalid properties (e.g.,usernames,organizationSlug,start,end).
If the issue persists, consider reaching out to Cal.com's support team for further assistance.
what is eventTypeId