How I find api urls in local setup #22072
Replies: 1 comment 3 replies
-
Hi @T0useef! I'm Dosu and I’m helping the cal.com team. You can access your local Cal.com API at URLs like http://localhost:3000/api/v1/ or http://localhost:3000/api/v2/, following standard Next.js conventions. For user creation, the v1 endpoint is likely http://localhost:3000/api/v1/users, which supports POST requests for creating users as defined in the codebase (source). Authentication is handled via API keys. You can generate and manage these keys in your local Cal.com web UI at /settings/developer/api-keys (source). When making API requests, include your API key in the Authorization header as Bearer <your_api_key>. If you run into authentication issues while testing locally, make sure your localhost URL is added to the Redirect URIs in the platform settings (source). There isn’t an OpenAPI/Swagger spec or auto-generated API docs in the repo, so you’ll need to reference the codebase for details on endpoint payloads and requirements. If you need to see exactly what fields are required for user creation, check the DTO or schema definitions in the relevant API route files. 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.
-
I’ve successfully set up Cal.com locally on my machine and connected it with a database — everything is working perfectly.
I also have a separate website running locally, and I want to automatically create a new user in Cal.com whenever a user registers on my website.
Since I'm using the self-hosted version of Cal.com, I need to access the local API endpoints. However, I couldn’t find any API URL or documentation related to the locally installed instance.
Could you please guide me on how to access the API for my self-hosted Cal.com instance or where I can find the local API base URL and authentication details?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions