# Get a connect link

Source: https://docs.vlayers.ai/reference/calendar/get-calendar-connect-link

`GET /v1/calendar/connect` · scope `calendar:use`

Returns the link the person opens to connect Google Calendar or an Outlook calendar. They sign in on the provider's own page; VoiceLayer never sees their password. Connecting again, or approving one more permission, uses the same link.

Requires an API key with the `calendar:use` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `app` | query | "google" \| "outlook" | yes | Which calendar to connect: `google` or `outlook`. Example: `"google"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/calendar/connect?app=google" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { url } = await voicelayer.calendar.getConnectLink({ app: 'google' });
console.log(url);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.calendar.get_connect_link(app="google")
print(result.url)
```

## Response `200`

```json
{
  "url": "https://vlayers.ai/dashboard/connections/connect/google-calendar",
  "app": "Google Calendar",
  "summary": "Open this link and sign in to Google Calendar; it takes under a minute and I can use it right after: https://vlayers.ai/dashboard/connections/connect/google-calendar"
}
```
