# How to create an OAuth app in Calendly

## Before you start, you’ll need:

- A LastPass account ([you can create one here](https://lastpass.com/create-account.php)) so the Developer Support team can securely share your application’s OAuth credentials (see Client ID and Client Secret below.)

- A Calendly account ([you can sign up here](https://calendly.com/signup)) so you can test your integration. Note that Calendly accounts on the free Basic subscription have limited access to the API.

- The name of your application (cannot include the word “Calendly”)

- Your OAuth redirect URI: __https://unify.apideck.com/vault/callback__

- A Client ID and Client Secret. When you register to authenticate with OAuth 2.0, we return you a Client ID and Client Secret for your application to authenticate with the Calendly API.

## Register and authenticate your OAuth application

- [Register your application here](https://docs.google.com/forms/d/e/1FAIpQLSc9ltoPU9I_yyQt1gWLm6fa0xMhpPWm-mL_vfPfeilC_s1vTA/viewform). After you register your application, you’ll receive its Client ID and Client Secret within one business day from Developer Support.

- Log in to your LastPass account and [generate sharing keys](https://support.lastpass.com/help/how-do-i-generate-sharing-keys-for-lastpass)

## Do your first API call

- Connect your Calendly account through [Vault](https://platform.apideck.com/vault) with a test session.

- To test the access token, make a call to the [`Get current user`](https://developer.calendly.com/api-docs/005832c83aeae-get-current-user) endpoint using the [Proxy API](https://developers.apideck.com/apis/proxy/reference).

```
curl --location --request GET 'https://unify.apideck.com/proxy' \
--header 'x-apideck-consumer-id: test-consumer' \
--header 'x-apideck-app-id: {APIDECK_APP_ID}' \
--header 'x-apideck-service-id: calendly' \
--header 'x-apideck-downstream-url: https://api.calendly.com/users/me' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {APIDECK_API_KEY}'
```

## Start building with the Calendly API

Learn what else you can [build with the Calendly API](https://developer.calendly.com/api-docs/4b402d5ab3edd-calendly-developer).

Interested in a personalized demo? [Let us know](https://www.apideck.com/demo-request?from=guide).
