# Check calendar setup

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

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

Says whether a calendar is connected and working, and whether anything needs the person to sign in again or approve one more permission. Start here when something calendar-related fails. Each connection carries a plain `needs` sentence with the link to open when it needs the person.

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

## Request

cURL:

```bash
curl https://api.vlayers.ai/v1/calendar/status \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

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

const voicelayer = new VoiceLayer();

const { summary } = await voicelayer.calendar.getStatus();
console.log(summary);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.calendar.get_status()
print(result.summary)
```

## Response `200`

```json
{
  "connections": [
    {
      "id": "0192f5c0-1a2b-7c3d-8e4f-5a6b7c8d9e01",
      "app": "Google Calendar",
      "account": "owner@example.com",
      "working": true,
      "needs": null,
      "canMakeAgentCalendar": true
    }
  ],
  "summary": "Google Calendar (owner@example.com): working."
}
```
