---
title: "Get chat advisor config"
method: GET
path: "/api/v2/chats/config/advisor"
tags: ["Chats"]
---

# Get chat advisor config

`GET /api/v2/chats/config/advisor`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v2/chats/config/advisor`
- Auth: API key in header `Coder-Session-Token`

## Response `200`

OK

- CodersdkAdvisorConfig
  - `enabled` boolean: Enabled is always true and cannot be changed.
  - `max_output_tokens` integer: MaxOutputTokens caps the advisor model response tokens. 0 means use the runtime default.
  - `max_uses_per_run` integer: MaxUsesPerRun caps how many times the advisor can be invoked per chat turn. 0 means unlimited.

## Changes

- **2026-10-29** `7d576694dd12`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/chats/config/advisor/get.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) - [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/coder/apis/coder-api/revisions/4669d93796ab?raw)
