API Routes Returning 404 Errors - Cannot Access Any Endpoints #22669
Replies: 1 comment 2 replies
-
Hi @BeclaAR! I'm Dosu and I’m helping the cal.com team. The most common cause of universal 404 errors in Cal.com API v2 is misconfiguration of critical environment variables, especially the license key. Make sure your CALCOM_LICENSE_KEY environment variable exactly matches the value in the deployments table of your database. Both must be set for the API to function—if they don’t match, all endpoints will return 404s, and features like API key generation will fail, even if the UI shows a valid license. See this discussion for details. Check your .env file for these key variables:
After updating your environment variables, restart the API service. You can verify available endpoints and routing by visiting For API key generation: it depends on the license key being valid and recognized by both the environment and the database. If you still can’t generate API keys after fixing the license key, double-check that your user has the necessary permissions and that there are no feature flags or organization settings disabling API access. The API key creation logic is handled by the backend and requires a valid license context—misconfiguration here will block key creation even if the UI appears correct (source). If you’re using subdomains or custom domains, make sure to set Recent changes to API v2 routing and dependency injection have been merged and tested, so if you’re on the latest version and your environment is correct, the API should be accessible (recent PR). If you’re still seeing 404s after these steps, check your logs for any startup errors or warnings about missing environment variables, and confirm that your build process is using the correct .env file. You can also inspect the Swagger docs at Let me know if you need more specific debugging steps or want to share your current environment variable setup for review. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Issue Description
I am experiencing persistent 404 errors when trying to access various API routes in the Cal.com platform API (v2), despite the API service starting normally. This issue affects all routes tested, suggesting a configuration or routing problem rather than specific endpoint failures.
Technical Environment
Error Details
Routes Tested (All Returning 404):
GET /
GET /v2
GET /api//v2
GET /api/users
GET /v2/users
Sample Error Logs:
Additional Issue: API Key Generation Problem
Critical Issue: After purchasing a license key, I am unable to create API keys through the Cal.com interface. This prevents proper API authentication and testing.
Expected Behavior
/api/users
and/v2/users
should be accessibleTroubleshooting Steps Taken
Questions for Support
Request for Assistance
Could you please provide guidance on:
Any help would be greatly appreciated. Please let me know if additional information about the setup is needed.
Best regards, Becla
Beta Was this translation helpful? Give feedback.
All reactions