Set your connector sleep time
PUT
Sets how many minutes (5 to 10,080) the connector waits with nothing to do before its rooms stop. A sleeping connector costs nothing; the next message, schedule run or tool call wakes it a few seconds later. The wait starts now. To keep it running all the time, use the always-on route.
Requires an API key with the workspace:write scope.
apiKeyheader
AuthorizationBearer <token>A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.
name*stringThe connector name: the last part of ws/<workspace>/<name>.
application/json- body
sleepAfterIdleMinutes*integerMinutes of nothing to do before it sleeps: 5 to 10,080.
Range
5 <= value <= 10080The setting after the change
application/json- response
kind*stringValue in
"connector""install"unitId*stringFormat
uuidname*stringsettings*alwaysOn*booleansizeClass*stringValue in
"small""medium""large"warmCount*integerRange
1 <= valuehourlyUsd*numberRange
0 <= valuealwaysOnMonthlyUsd*numberRange
0 <= valuelastActiveAt*|Format
date-timepollsEverySeconds*|Range
1 <= valuestaysAwakeBySchedule*booleancurl -X PUT "https://api.vlayers.ai/v1/workspace-connectors/$CONNECTOR_NAME/hosting" \ -H "Authorization: Bearer $VOICELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "sleepAfterIdleMinutes": 30 }'Example Response
{ "kind": "connector", "unitId": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67", "name": "telegram", "settings": { "sleepAfterIdleMinutes": 120 }, "alwaysOn": false, "sizeClass": "small", "warmCount": 1, "hourlyUsd": 0.03, "alwaysOnMonthlyUsd": 21.9, "lastActiveAt": "2026-10-20T15:04:05.000Z", "pollsEverySeconds": null, "staysAwakeBySchedule": false}