# Keep your connector always on

Source: https://docs.vlayers.ai/reference/hosting/turn-workspace-connector-always-on

`POST /v1/workspace-connectors/{name}/hosting/always-on` · scope `workspace:write`

Turns sleep off: the connector keeps its room every hour and is billed at the room's hourly price for each (about `alwaysOnMonthlyUsd` a month). Refused with `always_on_full` when the plan's always-on rooms, or the server's share of them, are used up; the refusal is recorded on the connector. Asking for a connector already always on changes nothing.

Requires an API key with the `workspace:write` 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 -X POST "https://api.vlayers.ai/v1/workspace-connectors/$CONNECTOR_NAME/hosting/always-on" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

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

const voicelayer = new VoiceLayer();

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

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.turn_workspace_connector_always_on("<connector-name>")
print(result.always_on)
```

## Response `200`

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