Get chat workspace time to live
GET
CoderSessionTokenheader
Coder-Session-Token<token>OK
application/json- response
workspace_ttl_ms?integerWorkspaceTTLMillis is the workspace TTL in milliseconds. Zero means disabled; the template's own autostop setting applies.
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/chats/config/workspace-ttl" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "workspace_ttl_ms": 0}