---
title: "GET /.api/client-config"
method: GET
path: "/.api/client-config"
---

# GET /.api/client-config

`GET /.api/client-config`

## Response `200`

The request has succeeded.

- ClientConfig — This is the JSON object which all clients request after authentication to determine how they should behave, e.g. if a site admin has restricted chat/autocomplete/other functionality, if experimental features are available, etc. The configuration is always specific to a single authenticated user. Adding new fields here is fine, but you cannot make backwards-incompatible changes (removing fields or change the meaning of fields in backwards-incompatible ways.) If you need to do that, then read up on https://github.com/sourcegraph/sourcegraph/pull/63591#discussion_r1663211601 After adding a field here, you can implement it in cmd/frontend/internal/clientconfig/clientconfig.go GetForActor method.
  - `codyEnabled` boolean, required — Whether the site admin allows this user to make use of Cody at all.
  - `chatEnabled` boolean, required — Whether the site admin allows this user to make use of the Cody chat feature.
  - `autoCompleteEnabled` boolean, required — Whether the site admin allows this user to make use of the Cody autocomplete feature.
  - `customCommandsEnabled` boolean, required — Whether the site admin allows the user to make use of the **custom** Cody commands feature.
  - `attributionEnabled` boolean, required — Whether the site admin allows this user to make use of the Cody attribution feature.
  - `smartContextWindowEnabled` boolean, required — Whether the 'smart context window' feature should be enabled, and whether the Sourcegraph instance supports various new GraphQL APIs needed to make it work.
  - `modelsAPIEnabled` boolean, required — Whether the new Sourcegraph backend LLM models API endpoint should be used to query which models are available.
  - `latestSupportedCompletionsStreamAPIVersion` integer — The latest `api-version=N` query parameter that is supported by the `POST /.api/completions/stream` endpoint. This field was added after `api-version=2` so you will never get a response with `api-version=1` or lower even when `api-version=1` is supported on the instance.

---

[API](https://skmtc.dev/sourcegraph/apis/sourcegraph-internal-api.md) · [All operations](https://skmtc.dev/sourcegraph/apis/sourcegraph-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcegraph/sourcegraph-internal-api/revisions/620e12160c8f/schema)
