> For the complete documentation index, see [llms.txt](https://calcom.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calcom.gitbook.io/docs/enterprise-features/api/quick-start/testing-api-locally.md).

# Testing API locally

To test API locally, you need a test License Key.

1. Head over to console.cal.dev and create a free account.&#x20;
2. Create a testing (license) key.
3. When asked for payment here in test mode, you can enter the Stripe testing card `4242 4242 4242 4242` <br>

   <figure><img src="https://1247430499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnsvL4GbkACtu7LWnJSR%2Fuploads%2F39CCZ1hNLHEHH11lkJ0Y%2Fimage.png?alt=media&amp;token=41932d7a-f985-4ca6-ab83-cbdadda6d247" alt=""><figcaption></figcaption></figure>
4. Copy over the test license key and paste it in as your `CALCOM_LICENSE_KEY` env variable's value &#x20;
5. Now, head over to your localhost webapp (not localhost API) and log in to an account.
6. Go to `settings/developer/api-keys` and create a new API key.
7. Give it a name and set the expiration settings, click Save.<br>

   <figure><img src="https://1247430499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnsvL4GbkACtu7LWnJSR%2Fuploads%2FSwF8i8Q6k90FFlAW8uWf%2Fimage.png?alt=media&amp;token=90a035ba-eb3a-40e9-ab45-efb69e95c5bf" alt=""><figcaption></figcaption></figure>
8. You should see the generated API key, make sure to copy it and store in a safe location as you will **NOT** be able to recover an API key once lost, only create new ones

   <figure><img src="https://1247430499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnsvL4GbkACtu7LWnJSR%2Fuploads%2FwHoMnZ9Y4CxICtzSKKG8%2Fimage.png?alt=media&amp;token=cc23d098-b9fd-4f60-aa0e-fbd39355dfef" alt=""><figcaption></figcaption></figure>
9. Now, run you're all set to run API server and start making test API calls.
