# When your connector sleeps

Source: https://docs.vlayers.ai/reference/hosting/get-workspace-connector-hosting

`GET /v1/workspace-connectors/{name}/hosting` · scope `workspace:read`

Shows how long the connector waits with nothing to do before it sleeps (`settings.sleepAfterIdleMinutes`, or `null` when it is always on), what keeping it running all the time would cost a month (`alwaysOnMonthlyUsd`: the room's hourly price times 730), and whether a schedule it declares fires more often than that wait, which keeps it awake.

Requires an API key with the `workspace:read` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `name` | path | string | yes | The connector name: the last part of `ws/<workspace>/<name>`. Example: `"telegram"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/workspace-connectors/$CONNECTOR_NAME/hosting" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

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

const voicelayer = new VoiceLayer();

const { alwaysOnMonthlyUsd } = await voicelayer.hosting.getWorkspaceConnector('<connector-name>');
console.log(alwaysOnMonthlyUsd);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.get_workspace_connector("<connector-name>")
print(result.always_on_monthly_usd)
```

## Response `200`

```json
{
  "kind": "connector",
  "unitId": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",
  "name": "telegram",
  "settings": {
    "sleepAfterIdleMinutes": 30
  },
  "alwaysOn": false,
  "sizeClass": "small",
  "warmCount": 1,
  "hourlyUsd": 0.03,
  "alwaysOnMonthlyUsd": 21.9,
  "lastActiveAt": "2026-10-20T15:04:05.000Z",
  "pollsEverySeconds": null,
  "staysAwakeBySchedule": false
}
```
