---
title: "获取空间网络搜索配置"
method: GET
path: "/tenants/kv/web-search-config"
tags: ["空间管理"]
---

# 获取空间网络搜索配置

`GET /tenants/kv/web-search-config`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/tenants/kv/web-search-config`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

获取空间的网络搜索配置

## Response `200`

网络搜索配置

- object
  - `data` GithubComTencentWeKnoraInternalTypesWebSearchConfig
    - `api_key` string: Deprecated: Use WebSearchProviderEntity.Parameters.APIKey instead.
    - `blacklist` string[]: 黑名单规则列表
    - `compression_method` string: 压缩方法：none, summary, extract, rag
    - `document_fragments` integer: 文档片段数量（用于RAG压缩）
    - `embedding_dimension` integer: 嵌入维度（用于RAG压缩）
    - `embedding_model_id` string: RAG压缩相关配置
    - `include_date` boolean: 是否包含日期
    - `max_results` integer: 最大搜索结果数
    - `provider` string: Deprecated: Use WebSearchProviderEntity.Parameters.APIKey instead.
    - `proxy_url` string: Optional per-request proxy override; normally empty — use WebSearchProviderEntity.Parameters.proxy_url. Merged at call time when set.
    - `rerank_model_id` string: 重排模型ID（用于RAG压缩）
  - `success` boolean

## Other responses

- `400`: 请求参数错误

## Changes

- **2026-07-14** `1c6aac86ddd1`: 2 info
  - api tag `空间管理` added
  - api tag `租户管理` removed
- **2025-12-22** `e625bcd5b8b9`: 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d`: 3 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
  - api tag `租户管理` added
  - api tag `空间管理` removed

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/tenants/kv/web-search-config/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
