Skip to content
Skip to Content
Coder Docs

Get chat workspace time to live

GET
/api/v2/chats/config/workspace-ttl

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
workspace_ttl_ms?integer

WorkspaceTTLMillis 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}