Skip to content
Skip to Content
Coder Docs

Get chat auto archive days

GET
/api/v2/chats/config/auto-archive-days

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
auto_archive_days?integer

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/chats/config/auto-archive-days" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "auto_archive_days": 0}