AI Search (2)·续1

<details>

<summary>

chat_completions_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20chat_completions_endpoint%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20chat_completions_endpoint">Link to this property</a>

custom_domains: optional array of string

Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20custom_domains">Link to this property</a>

default_domain_enabled: optional boolean

When false, the instance is reachable only via a registered custom domain and the default <public_endpoint_id>.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. public_endpoint_params is replaced wholesale on update, so resend default_domain_enabled on every update to keep the default host off — omitting it resets to true.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20default_domain_enabled">Link to this property</a>

enabled: optional boolean

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20enabled">Link to this property</a>

instances_allowed: optional array of string

Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must reference an existing instance in this namespace, and the list must stay within the account’s multi-instance search limit.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20instances_allowed">Link to this property</a>

<details>

<summary>

mcp: optional object {description, disabled }

</summary>

description: optional string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp%20%3E%20(property)%20description">Link to this property</a>

disabled: optional boolean

Disable MCP endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp">Link to this property</a>

<details>

<summary>

rate_limit: optional object {period_ms, requests, technique }

</summary>

period_ms: optional number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20period_ms">Link to this property</a>

requests: optional number

minimum1

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20requests">Link to this property</a>

<details>

<summary>

technique: optional "fixed"or "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique%20%3E%20(member)%200">Link to this property</a>

"sliding"

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit">Link to this property</a>

<details>

<summary>

search_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable search endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20search_endpoint%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20search_endpoint">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

</details>

Link to this property

<details>

<summary>

NamespaceUpdateResponse object {created_at, name, description, 2 more }

</summary>

created_at: string

formatdate-time

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

name: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

description: optional string

Optional description for the namespace. Max 256 characters.

maxLength256

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

public_endpoint_id: optional string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_id">Link to this property</a>

<details>

<summary>

public_endpoint_params: optional object {authorized_hosts, chat_completions_endpoint, custom_domains, 6 more }

</summary>

authorized_hosts: optional array of string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat_completions_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20chat_completions_endpoint%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20chat_completions_endpoint">Link to this property</a>

custom_domains: optional array of string

Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20custom_domains">Link to this property</a>

default_domain_enabled: optional boolean

When false, the instance is reachable only via a registered custom domain and the default <public_endpoint_id>.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. public_endpoint_params is replaced wholesale on update, so resend default_domain_enabled on every update to keep the default host off — omitting it resets to true.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20default_domain_enabled">Link to this property</a>

enabled: optional boolean

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20enabled">Link to this property</a>

instances_allowed: optional array of string

Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must reference an existing instance in this namespace, and the list must stay within the account’s multi-instance search limit.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20instances_allowed">Link to this property</a>

<details>

<summary>

mcp: optional object {description, disabled }

</summary>

description: optional string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp%20%3E%20(property)%20description">Link to this property</a>

disabled: optional boolean

Disable MCP endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20mcp">Link to this property</a>

<details>

<summary>

rate_limit: optional object {period_ms, requests, technique }

</summary>

period_ms: optional number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20period_ms">Link to this property</a>

requests: optional number

minimum1

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20requests">Link to this property</a>

<details>

<summary>

technique: optional "fixed"or "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique%20%3E%20(member)%200">Link to this property</a>

"sliding"

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit%20%3E%20(property)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20rate_limit">Link to this property</a>

<details>

<summary>

search_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable search endpoint for this public endpoint.

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20search_endpoint%20%3E%20(property)%20disabled">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params%20%3E%20(property)%20search_endpoint">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

</details>

Link to this property

NamespaceDeleteResponse = unknown

Link to this property

<details>

<summary>

NamespaceSearchResponse object {chunks, query_kind, errors, search_query }

</summary>

<details>

<summary>

chunks: array of object {id, instance_id, score, 7 more }

</summary>

id: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

instance_id: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20instance_id">Link to this property</a>

score: number

maximum1

minimum0

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

text: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20text">Link to this property</a>

type: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

item: optional object {key, metadata, timestamp }

</summary>

key: string

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20key">Link to this property</a>

metadata: optional map[unknown]

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20metadata">Link to this property</a>

timestamp: optional number

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20timestamp">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item">Link to this property</a>

media_end_ms: optional number

Audio/video transcript chunks only: end, in milliseconds from the start of the media (whole seconds), of the last transcript section the matched chunk covers. Describes the matched chunk before any context expansion, not the expanded <code>text</code>.

minimum0

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20media_end_ms">Link to this property</a>

media_start_ms: optional number

Audio/video transcript chunks only: start, in milliseconds from the start of the media (whole seconds), of the transcript section the matched chunk begins in. Describes the matched chunk before any context expansion, not the expanded <code>text</code>.

minimum0

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20media_start_ms">Link to this property</a>

<details>

<summary>

scoring_details: optional object {fusion_method, keyword_rank, keyword_score, 3 more }

</summary>

<details>

<summary>

fusion_method: optional "rrf"or "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.namespaces%20%3E%20(model)%20namespace_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>