---
title: Instances
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[AI Search](https://developers.cloudflare.com/api/typescript/resources/ai_search)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Instances

##### [List AI Search instances.](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/list)

Deprecated

client.aiSearch.instances.list(InstanceListParams {account\_id, hostname, namespace, 5 more } params, RequestOptionsoptions?): V4PagePaginationArray< [InstanceListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)>) {id, ai\_gateway\_id, ai\_search\_model, 42 more } >

GET/accounts/{account\_id}/ai-search/instances

##### [Create an AI Search instance (Search for Agents requires the default namespace).](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/create)

Deprecated

client.aiSearch.instances.create(InstanceCreateParams {account\_id, id, ai\_gateway\_id, 27 more } params, RequestOptionsoptions?): [InstanceCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)>) {id, created\_at, modified\_at, 36 more }

POST/accounts/{account\_id}/ai-search/instances

##### [Get an AI Search instance.](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/read)

Deprecated

client.aiSearch.instances.read(stringid, InstanceReadParams {account\_id } params, RequestOptionsoptions?): [InstanceReadResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)>) {id, created\_at, modified\_at, 36 more }

GET/accounts/{account\_id}/ai-search/instances/{id}

##### [Update an AI Search instance (Search for Agents metadata requires the default namespace).](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/update)

Deprecated

client.aiSearch.instances.update(stringid, InstanceUpdateParams {account\_id, ai\_gateway\_id, ai\_search\_model, 30 more } params, RequestOptionsoptions?): [InstanceUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)>) {id, created\_at, modified\_at, 36 more }

PUT/accounts/{account\_id}/ai-search/instances/{id}

##### [Delete an AI Search instance.](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/delete)

Deprecated

client.aiSearch.instances.delete(stringid, InstanceDeleteParams {account\_id } params, RequestOptionsoptions?): [InstanceDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)>) {id, created\_at, modified\_at, 36 more }

DELETE/accounts/{account\_id}/ai-search/instances/{id}

##### [Get instance statistics.](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/stats)

Deprecated

client.aiSearch.instances.stats(stringid, InstanceStatsParams {account\_id } params, RequestOptionsoptions?): [InstanceStatsResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)>) {completed, degraded, engine, 8 more }

GET/accounts/{account\_id}/ai-search/instances/{id}/stats

##### [Search](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/search)

Deprecated

client.aiSearch.instances.search(stringid, InstanceSearchParams {account\_id, ai\_search\_options, messages, query } params, RequestOptionsoptions?): [InstanceSearchResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)>) {chunks, query\_kind, search\_query }

POST/accounts/{account\_id}/ai-search/instances/{id}/search

##### [Chat Completions](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/methods/chat_completions)

Deprecated

client.aiSearch.instances.chatCompletions(stringid, InstanceChatCompletionsParams {account\_id, messages, ai\_search\_options, 2 more } params, RequestOptionsoptions?): [InstanceChatCompletionsResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)>) {choices, chunks, id, 2 more }

POST/accounts/{account\_id}/ai-search/instances/{id}/chat/completions

##### ModelsExpand Collapse

<details>

<summary>

InstanceListResponse {id, ai\_gateway\_id, ai\_search\_model, 42 more }

</summary>

id: string

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

ai\_gateway\_id: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>

ai\_search\_model: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>

cache: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_threshold: "super\_strict\_match"| "close\_enough"| "flexible\_friend"| "anything\_goes"| null

</summary>

One of the following:

"super\_strict\_match"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>

"close\_enough"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%201">Link to this property</a>

"flexible\_friend"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%202">Link to this property</a>

"anything\_goes"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold">Link to this property</a>

<details>

<summary>

cache\_ttl: 600| 1800| 3600| 7 more

</summary>

One of the following:

600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%203">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%204">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%205">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%206">Link to this property</a>

172800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%207">Link to this property</a>

259200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%208">Link to this property</a>

518400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%209">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

chunk: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20chunk">Link to this property</a>

chunk\_overlap: number| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20chunk_overlap">Link to this property</a>

chunk\_size: number| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20chunk_size">Link to this property</a>

created\_at: string

formatdate-time

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

created\_by: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20created_by">Link to this property</a>

<details>

<summary>

custom\_metadata: Array&lt;CustomMetadata&gt;| null

</summary>

<details>

<summary>

data\_type: "text"| "number"| "boolean"| "datetime"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%202">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type">Link to this property</a>

field\_name: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20field_name">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

embedding\_model: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20embedding_model">Link to this property</a>

enable: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20enable">Link to this property</a>

engine\_version: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20engine_version">Link to this property</a>

<details>

<summary>

fusion\_method: "max"| "rrf"

</summary>

One of the following:

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method">Link to this property</a>

hybrid\_search\_enabled: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20hybrid_search_enabled">Link to this property</a>

<details>

<summary>

index\_method: IndexMethod {keyword, vector }

</summary>

keyword: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20keyword">Link to this property</a>

vector: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20vector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20index_method">Link to this property</a>

<details>

<summary>

indexing\_options: IndexingOptions| null

</summary>

<details>

<summary>

keyword\_tokenizer?: "porter"| "trigram"

</summary>

One of the following:

"porter"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%200">Link to this property</a>

"trigram"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer">Link to this property</a>

use\_ocr?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20use_ocr">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options">Link to this property</a>

last\_activity: string| null

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

max\_num\_results: number| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20max_num_results">Link to this property</a>

<details>

<summary>

metadata: Metadata| null

</summary>

created\_from\_aisearch\_wizard?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20created_from_aisearch_wizard">Link to this property</a>

worker\_domain?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20worker_domain">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

modified\_at: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

modified\_by: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_by">Link to this property</a>

namespace: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

paused: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

public\_endpoint\_id: string| null

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

<details>

<summary>

public\_endpoint\_params: PublicEndpointParams| null

</summary>

authorized\_hosts?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: ChatCompletionsEndpoint {disabled }

</summary>

disabled?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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?: Array&lt;string&gt;| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: boolean

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

<details>

<summary>

mcp?: Mcp {description, disabled }

</summary>

description?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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?: RateLimit {period\_ms, requests, technique }

</summary>

period\_ms?: number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: number

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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?: "fixed"| "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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?: SearchEndpoint {disabled }

</summary>

disabled?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_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.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

reranking: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20reranking">Link to this property</a>

reranking\_model: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20reranking_model">Link to this property</a>

<details>

<summary>

retrieval\_options: RetrievalOptions| null

</summary>

<details>

<summary>

boost\_by?: Array&lt;BoostBy&gt;

</summary>

field: string

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20field">Link to this property</a>

<details>

<summary>

dataType?: "number"| "datetime"| "text"| "boolean"

</summary>

One of the following:

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20dataType%20%3E%20(member)%200">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20dataType%20%3E%20(member)%201">Link to this property</a>

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20dataType%20%3E%20(member)%202">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20dataType%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20dataType">Link to this property</a>

<details>

<summary>

direction?: "asc"| "desc"| "exists"| "not\_exists"

</summary>

One of the following:

"asc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

"exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%202">Link to this property</a>

"not\_exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by">Link to this property</a>

<details>

<summary>

keyword\_match\_mode?: "and"| "or"

</summary>

One of the following:

"and"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%200">Link to this property</a>

"or"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options">Link to this property</a>

rewrite\_model: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_model">Link to this property</a>

rewrite\_query: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_query">Link to this property</a>

score\_threshold: number| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20score_threshold">Link to this property</a>

source: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

source\_params: SourceParams| null

</summary>

exclude\_items?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20exclude_items">Link to this property</a>

include\_items?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20include_items">Link to this property</a>

prefix?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20prefix">Link to this property</a>

r2\_jurisdiction?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20r2_jurisdiction">Link to this property</a>

<details>

<summary>

web\_crawler?: WebCrawler {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options?: DiscoverOptions {depth, include\_external\_links, include\_subdomains, 3 more }

</summary>

depth?: number

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20depth">Link to this property</a>

include\_external\_links?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_external_links">Link to this property</a>

include\_subdomains?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_subdomains">Link to this property</a>

limit?: number

Maximum number of pages to crawl. New values are capped at 100000; instances configured before that cap may report a higher stored value, which the crawler clamps at run time.

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20limit">Link to this property</a>

max\_age?: number

maximum604800

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20max_age">Link to this property</a>

<details>

<summary>

source?: "all"| "sitemaps"| "links"

</summary>

One of the following:

"all"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"sitemaps"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"links"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options">Link to this property</a>

<details>

<summary>

parse\_options?: ParseOptions {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector?: Array&lt;ContentSelector&gt;

</summary>

path: string

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

selector: string

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20selector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector">Link to this property</a>

include\_headers?: Record&lt;string, string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_images">Link to this property</a>

specific\_sitemaps?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse\_type?: "sitemap"| "discover"

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

summarization: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20summarization">Link to this property</a>

summarization\_model: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20summarization_model">Link to this property</a>

<details>

<summary>

sync\_interval: 900| 1800| 3600| 5 more

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

system\_prompt\_ai\_search: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20system_prompt_ai_search">Link to this property</a>

system\_prompt\_index\_summarization: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20system_prompt_index_summarization">Link to this property</a>

system\_prompt\_rewrite\_query: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20system_prompt_rewrite_query">Link to this property</a>

token\_id: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type: "r2"| "web-crawler"| null

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)>)

<details>

<summary>

InstanceCreateResponse {id, created\_at, modified\_at, 36 more }

</summary>

id: string

AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.

maxLength64

minLength1

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

created\_at: string

formatdate-time

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

modified\_at: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

ai\_gateway\_id?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>

ai\_search\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>

cache?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_threshold?: "super\_strict\_match"| "close\_enough"| "flexible\_friend"| "anything\_goes"

</summary>

One of the following:

"super\_strict\_match"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>

"close\_enough"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%201">Link to this property</a>

"flexible\_friend"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%202">Link to this property</a>

"anything\_goes"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold">Link to this property</a>

<details>

<summary>

cache\_ttl?: 600| 1800| 3600| 7 more

Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).

</summary>

One of the following:

600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%203">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%204">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%205">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%206">Link to this property</a>

172800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%207">Link to this property</a>

259200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%208">Link to this property</a>

518400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%209">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

chunk\_overlap?: number

maximum30

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20chunk_overlap">Link to this property</a>

chunk\_size?: number

minimum64

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20chunk_size">Link to this property</a>

created\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20created_by">Link to this property</a>

<details>

<summary>

custom\_metadata?: Array&lt;CustomMetadata&gt;

</summary>

<details>

<summary>

data\_type: "text"| "number"| "boolean"| "datetime"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%202">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type">Link to this property</a>

field\_name: string

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20field_name">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

embedding\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20embedding_model">Link to this property</a>

enable?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20enable">Link to this property</a>

engine\_version?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20engine_version">Link to this property</a>

<details>

<summary>

fusion\_method?: "max"| "rrf"

</summary>

One of the following:

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method">Link to this property</a>

Deprecatedhybrid\_search\_enabled?: boolean

Deprecated — use index\_method instead. Defaults to true for new instances; set false to create a vector-only instance.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20hybrid_search_enabled">Link to this property</a>

<details>

<summary>

index\_method?: IndexMethod {keyword, vector }

Controls which storage backends are used during indexing. Defaults to vector and keyword indexing for new instances.

</summary>

keyword: boolean

Enable keyword (BM25) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20keyword">Link to this property</a>

vector: boolean

Enable vector (embedding) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20vector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20index_method">Link to this property</a>

<details>

<summary>

indexing\_options?: IndexingOptions| null

</summary>

<details>

<summary>

keyword\_tokenizer?: "porter"| "trigram"

Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter.

</summary>

One of the following:

"porter"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%200">Link to this property</a>

"trigram"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer">Link to this property</a>

use\_ocr?: boolean

Enables OCR ingestion for PDFs and images. Changing this triggers a full re-index. Defaults to false.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20use_ocr">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options">Link to this property</a>

last\_activity?: string| null

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

max\_num\_results?: number

maximum50

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20max_num_results">Link to this property</a>

<details>

<summary>

metadata?: Metadata {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20created_from_aisearch_wizard">Link to this property</a>

worker\_domain?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20worker_domain">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

modified\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_by">Link to this property</a>

namespace?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

paused?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

public\_endpoint\_id?: string| null

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

<details>

<summary>

public\_endpoint\_params?: PublicEndpointParams {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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?: ChatCompletionsEndpoint {disabled }

</summary>

disabled?: boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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?: Array&lt;string&gt;| null

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.instances%20%3E%20(model)%20instance_create_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?: boolean

When false, the instance is reachable only via a registered custom domain and the default &lt;public\_endpoint\_id&gt;.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.instances%20%3E%20(model)%20instance_create_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?: boolean

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

<details>

<summary>

mcp?: Mcp {description, disabled }

</summary>

description?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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?: boolean

Disable MCP endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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?: RateLimit {period\_ms, requests, technique }

</summary>

period\_ms?: number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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?: number

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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?: "fixed"| "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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?: SearchEndpoint {disabled }

</summary>

disabled?: boolean

Disable search endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_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.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

reranking?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20reranking">Link to this property</a>

reranking\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20reranking_model">Link to this property</a>

<details>

<summary>

retrieval\_options?: RetrievalOptions| null

</summary>

<details>

<summary>

boost\_by?: Array&lt;BoostBy&gt;

Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to ‘asc’ for numeric/datetime fields and ‘exists’ for text/boolean fields. Fields must match ‘timestamp’ or a defined custom\_metadata field.

</summary>

field: string

Metadata field name to boost by. Use ‘timestamp’ for document freshness, or any custom\_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not\_exists); text/boolean fields only support exists/not\_exists.

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20field">Link to this property</a>

<details>

<summary>

direction?: "asc"| "desc"| "exists"| "not\_exists"

Boost direction. ‘desc’ = higher values rank higher (e.g. newer timestamps). ‘asc’ = lower values rank higher. ‘exists’ = boost chunks that have the field. ‘not\_exists’ = boost chunks that lack the field. Optional — defaults to ‘asc’ for numeric/datetime fields, ‘exists’ for text/boolean fields.

</summary>

One of the following:

"asc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

"exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%202">Link to this property</a>

"not\_exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by">Link to this property</a>

<details>

<summary>

keyword\_match\_mode?: "and"| "or"

Controls which documents are candidates for BM25 scoring. ‘and’ restricts candidates to documents containing all query terms; ‘or’ includes any document containing at least one term, ranked by BM25 relevance. When omitted on an update, the existing stored value is preserved; when never set, search falls back to ‘and’.

</summary>

One of the following:

"and"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%200">Link to this property</a>

"or"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options">Link to this property</a>

rewrite\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_model">Link to this property</a>

rewrite\_query?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_query">Link to this property</a>

score\_threshold?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20score_threshold">Link to this property</a>

source?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

source\_params?: SourceParams| null

</summary>

exclude\_items?: Array&lt;string&gt;

List of path patterns to exclude. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /admin/\*\* matches /admin/users and /admin/settings/advanced). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20exclude_items">Link to this property</a>

include\_items?: Array&lt;string&gt;

List of path patterns to include. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /blog/\*\* matches /blog/post and /blog/2024/post). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20include_items">Link to this property</a>

prefix?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20prefix">Link to this property</a>

r2\_jurisdiction?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20r2_jurisdiction">Link to this property</a>

<details>

<summary>

web\_crawler?: WebCrawler {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options?: DiscoverOptions {depth, include\_external\_links, include\_subdomains, 3 more }

Options for parse\_type ‘discover’, where Browser Run discovers URLs by link following and sitemaps. Ignored for ‘sitemap’.

</summary>

depth?: number

Maximum link-follow depth from the seed URL.

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20depth">Link to this property</a>

include\_external\_links?: boolean

Follow links that point outside the source domain. Must stay <code>false</code> — discover crawls are restricted to the zone you own.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_external_links">Link to this property</a>

include\_subdomains?: boolean

Follow links to subdomains of the source host.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_subdomains">Link to this property</a>

limit?: number

Maximum number of pages to crawl (1-100000).

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20limit">Link to this property</a>

max\_age?: number

Maximum content age in seconds to accept (0–604800).

maximum604800

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20max_age">Link to this property</a>

<details>

<summary>

source?: "all"| "sitemaps"| "links"

Where the crawler looks for URLs: ‘sitemaps’ reads sitemap XML only, ‘links’ follows page links only, ‘all’ does both.

</summary>

One of the following:

"all"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"sitemaps"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"links"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options">Link to this property</a>

<details>

<summary>

parse\_options?: ParseOptions {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector?: Array&lt;ContentSelector&gt;

List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected.

</summary>

path: string

Glob pattern to match against the page URL path. Uses standard glob syntax: \* matches within a segment, \*\* crosses directories.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

selector: string

CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, \`, $, {, }, ). Must target a single element; if multiple elements match, the selector is ignored and the full page is used.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20selector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector">Link to this property</a>

include\_headers?: Record&lt;string, string&gt;

Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF).

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_images">Link to this property</a>

specific\_sitemaps?: Array&lt;string&gt;

List of specific sitemap URLs to use for crawling. Only valid when parse\_type is ‘sitemap’.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse\_type?: "sitemap"| "discover"

How URLs are discovered. ‘sitemap’ reads XML sitemaps; ‘discover’ follows links recursively and requires the source to be a Verified zone on this account.

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

sync\_interval?: 900| 1800| 3600| 5 more

Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

token\_id?: string

formatuuid

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type?: "r2"| "web-crawler"| null

Source type. When omitted or null with a non-blank source, HTTP(S) URLs infer web-crawler and existing R2 bucket names infer r2. A missing or blank source without a type uses managed upload-only storage.

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_create_response%20%3E%20(schema)>)

<details>

<summary>

InstanceReadResponse {id, created\_at, modified\_at, 36 more }

</summary>

id: string

AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.

maxLength64

minLength1

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

created\_at: string

formatdate-time

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

modified\_at: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

ai\_gateway\_id?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>

ai\_search\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>

cache?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_threshold?: "super\_strict\_match"| "close\_enough"| "flexible\_friend"| "anything\_goes"

</summary>

One of the following:

"super\_strict\_match"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>

"close\_enough"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%201">Link to this property</a>

"flexible\_friend"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%202">Link to this property</a>

"anything\_goes"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold">Link to this property</a>

<details>

<summary>

cache\_ttl?: 600| 1800| 3600| 7 more

Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).

</summary>

One of the following:

600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%203">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%204">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%205">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%206">Link to this property</a>

172800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%207">Link to this property</a>

259200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%208">Link to this property</a>

518400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%209">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

chunk\_overlap?: number

maximum30

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20chunk_overlap">Link to this property</a>

chunk\_size?: number

minimum64

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20chunk_size">Link to this property</a>

created\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20created_by">Link to this property</a>

<details>

<summary>

custom\_metadata?: Array&lt;CustomMetadata&gt;

</summary>

<details>

<summary>

data\_type: "text"| "number"| "boolean"| "datetime"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%202">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type">Link to this property</a>

field\_name: string

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20field_name">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

embedding\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20embedding_model">Link to this property</a>

enable?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20enable">Link to this property</a>

engine\_version?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20engine_version">Link to this property</a>

<details>

<summary>

fusion\_method?: "max"| "rrf"

</summary>

One of the following:

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method">Link to this property</a>

Deprecatedhybrid\_search\_enabled?: boolean

Deprecated — use index\_method instead. Defaults to true for new instances; set false to create a vector-only instance.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20hybrid_search_enabled">Link to this property</a>

<details>

<summary>

index\_method?: IndexMethod {keyword, vector }

Controls which storage backends are used during indexing. Defaults to vector and keyword indexing for new instances.

</summary>

keyword: boolean

Enable keyword (BM25) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20keyword">Link to this property</a>

vector: boolean

Enable vector (embedding) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20vector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20index_method">Link to this property</a>

<details>

<summary>

indexing\_options?: IndexingOptions| null

</summary>

<details>

<summary>

keyword\_tokenizer?: "porter"| "trigram"

Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter.

</summary>

One of the following:

"porter"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%200">Link to this property</a>

"trigram"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer">Link to this property</a>

use\_ocr?: boolean

Enables OCR ingestion for PDFs and images. Changing this triggers a full re-index. Defaults to false.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20use_ocr">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options">Link to this property</a>

last\_activity?: string| null

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

max\_num\_results?: number

maximum50

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20max_num_results">Link to this property</a>

<details>

<summary>

metadata?: Metadata {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20created_from_aisearch_wizard">Link to this property</a>

worker\_domain?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20worker_domain">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

modified\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20modified_by">Link to this property</a>

namespace?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

paused?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

public\_endpoint\_id?: string| null

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

<details>

<summary>

public\_endpoint\_params?: PublicEndpointParams {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_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?: ChatCompletionsEndpoint {disabled }

</summary>

disabled?: boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: Array&lt;string&gt;| null

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.instances%20%3E%20(model)%20instance_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?: boolean

When false, the instance is reachable only via a registered custom domain and the default &lt;public\_endpoint\_id&gt;.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.instances%20%3E%20(model)%20instance_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?: boolean

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

<details>

<summary>

mcp?: Mcp {description, disabled }

</summary>

description?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: boolean

Disable MCP endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: RateLimit {period\_ms, requests, technique }

</summary>

period\_ms?: number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: number

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: "fixed"| "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: SearchEndpoint {disabled }

</summary>

disabled?: boolean

Disable search endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

reranking?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20reranking">Link to this property</a>

reranking\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20reranking_model">Link to this property</a>

<details>

<summary>

retrieval\_options?: RetrievalOptions| null

</summary>

<details>

<summary>

boost\_by?: Array&lt;BoostBy&gt;

Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to ‘asc’ for numeric/datetime fields and ‘exists’ for text/boolean fields. Fields must match ‘timestamp’ or a defined custom\_metadata field.

</summary>

field: string

Metadata field name to boost by. Use ‘timestamp’ for document freshness, or any custom\_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not\_exists); text/boolean fields only support exists/not\_exists.

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20field">Link to this property</a>

<details>

<summary>

direction?: "asc"| "desc"| "exists"| "not\_exists"

Boost direction. ‘desc’ = higher values rank higher (e.g. newer timestamps). ‘asc’ = lower values rank higher. ‘exists’ = boost chunks that have the field. ‘not\_exists’ = boost chunks that lack the field. Optional — defaults to ‘asc’ for numeric/datetime fields, ‘exists’ for text/boolean fields.

</summary>

One of the following:

"asc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

"exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%202">Link to this property</a>

"not\_exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by">Link to this property</a>

<details>

<summary>

keyword\_match\_mode?: "and"| "or"

Controls which documents are candidates for BM25 scoring. ‘and’ restricts candidates to documents containing all query terms; ‘or’ includes any document containing at least one term, ranked by BM25 relevance. When omitted on an update, the existing stored value is preserved; when never set, search falls back to ‘and’.

</summary>

One of the following:

"and"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%200">Link to this property</a>

"or"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options">Link to this property</a>

rewrite\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_model">Link to this property</a>

rewrite\_query?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_query">Link to this property</a>

score\_threshold?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20score_threshold">Link to this property</a>

source?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

source\_params?: SourceParams| null

</summary>

exclude\_items?: Array&lt;string&gt;

List of path patterns to exclude. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /admin/\*\* matches /admin/users and /admin/settings/advanced). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20exclude_items">Link to this property</a>

include\_items?: Array&lt;string&gt;

List of path patterns to include. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /blog/\*\* matches /blog/post and /blog/2024/post). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20include_items">Link to this property</a>

prefix?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20prefix">Link to this property</a>

r2\_jurisdiction?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20r2_jurisdiction">Link to this property</a>

<details>

<summary>

web\_crawler?: WebCrawler {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options?: DiscoverOptions {depth, include\_external\_links, include\_subdomains, 3 more }

Options for parse\_type ‘discover’, where Browser Run discovers URLs by link following and sitemaps. Ignored for ‘sitemap’.

</summary>

depth?: number

Maximum link-follow depth from the seed URL.

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20depth">Link to this property</a>

include\_external\_links?: boolean

Follow links that point outside the source domain. Must stay <code>false</code> — discover crawls are restricted to the zone you own.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_external_links">Link to this property</a>

include\_subdomains?: boolean

Follow links to subdomains of the source host.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_subdomains">Link to this property</a>

limit?: number

Maximum number of pages to crawl (1-100000).

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20limit">Link to this property</a>

max\_age?: number

Maximum content age in seconds to accept (0–604800).

maximum604800

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20max_age">Link to this property</a>

<details>

<summary>

source?: "all"| "sitemaps"| "links"

Where the crawler looks for URLs: ‘sitemaps’ reads sitemap XML only, ‘links’ follows page links only, ‘all’ does both.

</summary>

One of the following:

"all"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"sitemaps"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"links"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options">Link to this property</a>

<details>

<summary>

parse\_options?: ParseOptions {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector?: Array&lt;ContentSelector&gt;

List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected.

</summary>

path: string

Glob pattern to match against the page URL path. Uses standard glob syntax: \* matches within a segment, \*\* crosses directories.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

selector: string

CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, \`, $, {, }, ). Must target a single element; if multiple elements match, the selector is ignored and the full page is used.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20selector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector">Link to this property</a>

include\_headers?: Record&lt;string, string&gt;

Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF).

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_images">Link to this property</a>

specific\_sitemaps?: Array&lt;string&gt;

List of specific sitemap URLs to use for crawling. Only valid when parse\_type is ‘sitemap’.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse\_type?: "sitemap"| "discover"

How URLs are discovered. ‘sitemap’ reads XML sitemaps; ‘discover’ follows links recursively and requires the source to be a Verified zone on this account.

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

sync\_interval?: 900| 1800| 3600| 5 more

Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

token\_id?: string

formatuuid

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type?: "r2"| "web-crawler"| null

Source type. When omitted or null with a non-blank source, HTTP(S) URLs infer web-crawler and existing R2 bucket names infer r2. A missing or blank source without a type uses managed upload-only storage.

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_read_response%20%3E%20(schema)>)

<details>

<summary>

InstanceUpdateResponse {id, created\_at, modified\_at, 36 more }

</summary>

id: string

AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.

maxLength64

minLength1

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

created\_at: string

formatdate-time

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

modified\_at: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

ai\_gateway\_id?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>

ai\_search\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>

cache?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_threshold?: "super\_strict\_match"| "close\_enough"| "flexible\_friend"| "anything\_goes"

</summary>

One of the following:

"super\_strict\_match"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>

"close\_enough"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%201">Link to this property</a>

"flexible\_friend"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%202">Link to this property</a>

"anything\_goes"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold">Link to this property</a>

<details>

<summary>

cache\_ttl?: 600| 1800| 3600| 7 more

Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).

</summary>

One of the following:

600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%203">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%204">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%205">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%206">Link to this property</a>

172800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%207">Link to this property</a>

259200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%208">Link to this property</a>

518400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%209">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

chunk\_overlap?: number

maximum30

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20chunk_overlap">Link to this property</a>

chunk\_size?: number

minimum64

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20chunk_size">Link to this property</a>

created\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20created_by">Link to this property</a>

<details>

<summary>

custom\_metadata?: Array&lt;CustomMetadata&gt;

</summary>

<details>

<summary>

data\_type: "text"| "number"| "boolean"| "datetime"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%202">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type">Link to this property</a>

field\_name: string

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20field_name">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

embedding\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20embedding_model">Link to this property</a>

enable?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20enable">Link to this property</a>

engine\_version?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20engine_version">Link to this property</a>

<details>

<summary>

fusion\_method?: "max"| "rrf"

</summary>

One of the following:

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method">Link to this property</a>

Deprecatedhybrid\_search\_enabled?: boolean

Deprecated — use index\_method instead. Defaults to true for new instances; set false to create a vector-only instance.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20hybrid_search_enabled">Link to this property</a>

<details>

<summary>

index\_method?: IndexMethod {keyword, vector }

Controls which storage backends are used during indexing. Defaults to vector and keyword indexing for new instances.

</summary>

keyword: boolean

Enable keyword (BM25) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20keyword">Link to this property</a>

vector: boolean

Enable vector (embedding) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20vector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20index_method">Link to this property</a>

<details>

<summary>

indexing\_options?: IndexingOptions| null

</summary>

<details>

<summary>

keyword\_tokenizer?: "porter"| "trigram"

Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter.

</summary>

One of the following:

"porter"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%200">Link to this property</a>

"trigram"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer">Link to this property</a>

use\_ocr?: boolean

Enables OCR ingestion for PDFs and images. Changing this triggers a full re-index. Defaults to false.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20use_ocr">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options">Link to this property</a>

last\_activity?: string| null

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

max\_num\_results?: number

maximum50

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20max_num_results">Link to this property</a>

<details>

<summary>

metadata?: Metadata {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20created_from_aisearch_wizard">Link to this property</a>

worker\_domain?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20worker_domain">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

modified\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_by">Link to this property</a>

namespace?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

paused?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

public\_endpoint\_id?: string| null

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

<details>

<summary>

public\_endpoint\_params?: PublicEndpointParams {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: ChatCompletionsEndpoint {disabled }

</summary>

disabled?: boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: Array&lt;string&gt;| null

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.instances%20%3E%20(model)%20instance_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?: boolean

When false, the instance is reachable only via a registered custom domain and the default &lt;public\_endpoint\_id&gt;.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.instances%20%3E%20(model)%20instance_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?: boolean

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

<details>

<summary>

mcp?: Mcp {description, disabled }

</summary>

description?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: boolean

Disable MCP endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: RateLimit {period\_ms, requests, technique }

</summary>

period\_ms?: number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: number

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: "fixed"| "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: SearchEndpoint {disabled }

</summary>

disabled?: boolean

Disable search endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

reranking?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20reranking">Link to this property</a>

reranking\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20reranking_model">Link to this property</a>

<details>

<summary>

retrieval\_options?: RetrievalOptions| null

</summary>

<details>

<summary>

boost\_by?: Array&lt;BoostBy&gt;

Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to ‘asc’ for numeric/datetime fields and ‘exists’ for text/boolean fields. Fields must match ‘timestamp’ or a defined custom\_metadata field.

</summary>

field: string

Metadata field name to boost by. Use ‘timestamp’ for document freshness, or any custom\_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not\_exists); text/boolean fields only support exists/not\_exists.

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20field">Link to this property</a>

<details>

<summary>

direction?: "asc"| "desc"| "exists"| "not\_exists"

Boost direction. ‘desc’ = higher values rank higher (e.g. newer timestamps). ‘asc’ = lower values rank higher. ‘exists’ = boost chunks that have the field. ‘not\_exists’ = boost chunks that lack the field. Optional — defaults to ‘asc’ for numeric/datetime fields, ‘exists’ for text/boolean fields.

</summary>

One of the following:

"asc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

"exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%202">Link to this property</a>

"not\_exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by">Link to this property</a>

<details>

<summary>

keyword\_match\_mode?: "and"| "or"

Controls which documents are candidates for BM25 scoring. ‘and’ restricts candidates to documents containing all query terms; ‘or’ includes any document containing at least one term, ranked by BM25 relevance. When omitted on an update, the existing stored value is preserved; when never set, search falls back to ‘and’.

</summary>

One of the following:

"and"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%200">Link to this property</a>

"or"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options">Link to this property</a>

rewrite\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_model">Link to this property</a>

rewrite\_query?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_query">Link to this property</a>

score\_threshold?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20score_threshold">Link to this property</a>

source?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

source\_params?: SourceParams| null

</summary>

exclude\_items?: Array&lt;string&gt;

List of path patterns to exclude. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /admin/\*\* matches /admin/users and /admin/settings/advanced). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20exclude_items">Link to this property</a>

include\_items?: Array&lt;string&gt;

List of path patterns to include. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /blog/\*\* matches /blog/post and /blog/2024/post). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20include_items">Link to this property</a>

prefix?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20prefix">Link to this property</a>

r2\_jurisdiction?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20r2_jurisdiction">Link to this property</a>

<details>

<summary>

web\_crawler?: WebCrawler {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options?: DiscoverOptions {depth, include\_external\_links, include\_subdomains, 3 more }

Options for parse\_type ‘discover’, where Browser Run discovers URLs by link following and sitemaps. Ignored for ‘sitemap’.

</summary>

depth?: number

Maximum link-follow depth from the seed URL.

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20depth">Link to this property</a>

include\_external\_links?: boolean

Follow links that point outside the source domain. Must stay <code>false</code> — discover crawls are restricted to the zone you own.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_external_links">Link to this property</a>

include\_subdomains?: boolean

Follow links to subdomains of the source host.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_subdomains">Link to this property</a>

limit?: number

Maximum number of pages to crawl (1-100000).

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20limit">Link to this property</a>

max\_age?: number

Maximum content age in seconds to accept (0–604800).

maximum604800

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20max_age">Link to this property</a>

<details>

<summary>

source?: "all"| "sitemaps"| "links"

Where the crawler looks for URLs: ‘sitemaps’ reads sitemap XML only, ‘links’ follows page links only, ‘all’ does both.

</summary>

One of the following:

"all"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"sitemaps"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"links"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options">Link to this property</a>

<details>

<summary>

parse\_options?: ParseOptions {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector?: Array&lt;ContentSelector&gt;

List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected.

</summary>

path: string

Glob pattern to match against the page URL path. Uses standard glob syntax: \* matches within a segment, \*\* crosses directories.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

selector: string

CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, \`, $, {, }, ). Must target a single element; if multiple elements match, the selector is ignored and the full page is used.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20selector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector">Link to this property</a>

include\_headers?: Record&lt;string, string&gt;

Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF).

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_images">Link to this property</a>

specific\_sitemaps?: Array&lt;string&gt;

List of specific sitemap URLs to use for crawling. Only valid when parse\_type is ‘sitemap’.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse\_type?: "sitemap"| "discover"

How URLs are discovered. ‘sitemap’ reads XML sitemaps; ‘discover’ follows links recursively and requires the source to be a Verified zone on this account.

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

sync\_interval?: 900| 1800| 3600| 5 more

Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

token\_id?: string

formatuuid

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type?: "r2"| "web-crawler"| null

Source type. When omitted or null with a non-blank source, HTTP(S) URLs infer web-crawler and existing R2 bucket names infer r2. A missing or blank source without a type uses managed upload-only storage.

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_update_response%20%3E%20(schema)>)

<details>

<summary>

InstanceDeleteResponse {id, created\_at, modified\_at, 36 more }

</summary>

id: string

AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.

maxLength64

minLength1

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

created\_at: string

formatdate-time

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

modified\_at: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

ai\_gateway\_id?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>

ai\_search\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>

cache?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_threshold?: "super\_strict\_match"| "close\_enough"| "flexible\_friend"| "anything\_goes"

</summary>

One of the following:

"super\_strict\_match"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>

"close\_enough"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%201">Link to this property</a>

"flexible\_friend"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%202">Link to this property</a>

"anything\_goes"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold">Link to this property</a>

<details>

<summary>

cache\_ttl?: 600| 1800| 3600| 7 more

Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).

</summary>

One of the following:

600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%203">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%204">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%205">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%206">Link to this property</a>

172800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%207">Link to this property</a>

259200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%208">Link to this property</a>

518400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl%20%3E%20(member)%209">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

chunk\_overlap?: number

maximum30

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20chunk_overlap">Link to this property</a>

chunk\_size?: number

minimum64

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20chunk_size">Link to this property</a>

created\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_by">Link to this property</a>

<details>

<summary>

custom\_metadata?: Array&lt;CustomMetadata&gt;

</summary>

<details>

<summary>

data\_type: "text"| "number"| "boolean"| "datetime"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%202">Link to this property</a>

"datetime"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20data_type">Link to this property</a>

field\_name: string

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata%20%3E%20(items)%20%3E%20(property)%20field_name">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

embedding\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20embedding_model">Link to this property</a>

enable?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20enable">Link to this property</a>

engine\_version?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20engine_version">Link to this property</a>

<details>

<summary>

fusion\_method?: "max"| "rrf"

</summary>

One of the following:

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20fusion_method">Link to this property</a>

Deprecatedhybrid\_search\_enabled?: boolean

Deprecated — use index\_method instead. Defaults to true for new instances; set false to create a vector-only instance.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20hybrid_search_enabled">Link to this property</a>

<details>

<summary>

index\_method?: IndexMethod {keyword, vector }

Controls which storage backends are used during indexing. Defaults to vector and keyword indexing for new instances.

</summary>

keyword: boolean

Enable keyword (BM25) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20keyword">Link to this property</a>

vector: boolean

Enable vector (embedding) storage backend.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20index_method%20%3E%20(property)%20vector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20index_method">Link to this property</a>

<details>

<summary>

indexing\_options?: IndexingOptions| null

</summary>

<details>

<summary>

keyword\_tokenizer?: "porter"| "trigram"

Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter.

</summary>

One of the following:

"porter"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%200">Link to this property</a>

"trigram"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20keyword_tokenizer">Link to this property</a>

use\_ocr?: boolean

Enables OCR ingestion for PDFs and images. Changing this triggers a full re-index. Defaults to false.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options%20%3E%20(property)%20use_ocr">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20indexing_options">Link to this property</a>

last\_activity?: string| null

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

max\_num\_results?: number

maximum50

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20max_num_results">Link to this property</a>

<details>

<summary>

metadata?: Metadata {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20created_from_aisearch_wizard">Link to this property</a>

worker\_domain?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20worker_domain">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

modified\_by?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20modified_by">Link to this property</a>

namespace?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

paused?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

public\_endpoint\_id?: string| null

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

<details>

<summary>

public\_endpoint\_params?: PublicEndpointParams {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts?: Array&lt;string&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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?: ChatCompletionsEndpoint {disabled }

</summary>

disabled?: boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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?: Array&lt;string&gt;| null

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.instances%20%3E%20(model)%20instance_delete_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?: boolean

When false, the instance is reachable only via a registered custom domain and the default &lt;public\_endpoint\_id&gt;.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.instances%20%3E%20(model)%20instance_delete_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?: boolean

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

<details>

<summary>

mcp?: Mcp {description, disabled }

</summary>

description?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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?: boolean

Disable MCP endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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?: RateLimit {period\_ms, requests, technique }

</summary>

period\_ms?: number

maximum3600000

minimum60000

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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?: number

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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?: "fixed"| "sliding"

</summary>

One of the following:

"fixed"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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?: SearchEndpoint {disabled }

</summary>

disabled?: boolean

Disable search endpoint for this public endpoint

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_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.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20public_endpoint_params">Link to this property</a>

reranking?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20reranking">Link to this property</a>

reranking\_model?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20reranking_model">Link to this property</a>

<details>

<summary>

retrieval\_options?: RetrievalOptions| null

</summary>

<details>

<summary>

boost\_by?: Array&lt;BoostBy&gt;

Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to ‘asc’ for numeric/datetime fields and ‘exists’ for text/boolean fields. Fields must match ‘timestamp’ or a defined custom\_metadata field.

</summary>

field: string

Metadata field name to boost by. Use ‘timestamp’ for document freshness, or any custom\_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not\_exists); text/boolean fields only support exists/not\_exists.

maxLength64

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20field">Link to this property</a>

<details>

<summary>

direction?: "asc"| "desc"| "exists"| "not\_exists"

Boost direction. ‘desc’ = higher values rank higher (e.g. newer timestamps). ‘asc’ = lower values rank higher. ‘exists’ = boost chunks that have the field. ‘not\_exists’ = boost chunks that lack the field. Optional — defaults to ‘asc’ for numeric/datetime fields, ‘exists’ for text/boolean fields.

</summary>

One of the following:

"asc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

"exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%202">Link to this property</a>

"not\_exists"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by%20%3E%20(items)%20%3E%20(property)%20direction">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20boost_by">Link to this property</a>

<details>

<summary>

keyword\_match\_mode?: "and"| "or"

Controls which documents are candidates for BM25 scoring. ‘and’ restricts candidates to documents containing all query terms; ‘or’ includes any document containing at least one term, ranked by BM25 relevance. When omitted on an update, the existing stored value is preserved; when never set, search falls back to ‘and’.

</summary>

One of the following:

"and"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%200">Link to this property</a>

"or"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options%20%3E%20(property)%20keyword_match_mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20retrieval_options">Link to this property</a>

rewrite\_model?: string| null

A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_model">Link to this property</a>

rewrite\_query?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20rewrite_query">Link to this property</a>

score\_threshold?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20score_threshold">Link to this property</a>

source?: string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

source\_params?: SourceParams| null

</summary>

exclude\_items?: Array&lt;string&gt;

List of path patterns to exclude. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /admin/\*\* matches /admin/users and /admin/settings/advanced). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20exclude_items">Link to this property</a>

include\_items?: Array&lt;string&gt;

List of path patterns to include. Uses micromatch glob syntax: \* matches within a path segment, \*\* matches across path segments (e.g., /blog/\*\* matches /blog/post and /blog/2024/post). Most accounts are limited to 10 rules; contact support to raise it.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20include_items">Link to this property</a>

prefix?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20prefix">Link to this property</a>

r2\_jurisdiction?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20r2_jurisdiction">Link to this property</a>

<details>

<summary>

web\_crawler?: WebCrawler {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options?: DiscoverOptions {depth, include\_external\_links, include\_subdomains, 3 more }

Options for parse\_type ‘discover’, where Browser Run discovers URLs by link following and sitemaps. Ignored for ‘sitemap’.

</summary>

depth?: number

Maximum link-follow depth from the seed URL.

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20depth">Link to this property</a>

include\_external\_links?: boolean

Follow links that point outside the source domain. Must stay <code>false</code> — discover crawls are restricted to the zone you own.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_external_links">Link to this property</a>

include\_subdomains?: boolean

Follow links to subdomains of the source host.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20include_subdomains">Link to this property</a>

limit?: number

Maximum number of pages to crawl (1-100000).

maximum100000

minimum1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20limit">Link to this property</a>

max\_age?: number

Maximum content age in seconds to accept (0–604800).

maximum604800

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20max_age">Link to this property</a>

<details>

<summary>

source?: "all"| "sitemaps"| "links"

Where the crawler looks for URLs: ‘sitemaps’ reads sitemap XML only, ‘links’ follows page links only, ‘all’ does both.

</summary>

One of the following:

"all"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"sitemaps"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"links"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20discover_options">Link to this property</a>

<details>

<summary>

parse\_options?: ParseOptions {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector?: Array&lt;ContentSelector&gt;

List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected.

</summary>

path: string

Glob pattern to match against the page URL path. Uses standard glob syntax: \* matches within a segment, \*\* crosses directories.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

selector: string

CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, \`, $, {, }, ). Must target a single element; if multiple elements match, the selector is ignored and the full page is used.

maxLength200

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector%20%3E%20(items)%20%3E%20(property)%20selector">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20content_selector">Link to this property</a>

include\_headers?: Record&lt;string, string&gt;

Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF).

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_images">Link to this property</a>

specific\_sitemaps?: Array&lt;string&gt;

List of specific sitemap URLs to use for crawling. Only valid when parse\_type is ‘sitemap’.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering?: boolean

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse\_type?: "sitemap"| "discover"

How URLs are discovered. ‘sitemap’ reads XML sitemaps; ‘discover’ follows links recursively and requires the source to be a Verified zone on this account.

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

sync\_interval?: 900| 1800| 3600| 5 more

Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

token\_id?: string

formatuuid

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type?: "r2"| "web-crawler"| null

Source type. When omitted or null with a non-blank source, HTTP(S) URLs infer web-crawler and existing R2 bucket names infer r2. A missing or blank source without a type uses managed upload-only storage.

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)>)

<details>

<summary>

InstanceStatsResponse {completed, degraded, engine, 8 more }

</summary>

completed?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20completed">Link to this property</a>

degraded?: boolean

True when status counts are unavailable (e.g. legacy stats query exceeded D1 statement-size limit). Counts are omitted in this case.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20degraded">Link to this property</a>

<details>

<summary>

engine?: Engine {r2, vectorize }

Engine-specific metadata. Present only for managed (v3) instances.

</summary>

<details>

<summary>

r2?: R2 {metadataSizeBytes, objectCount, payloadSizeBytes }

R2 bucket storage usage in bytes.

</summary>

metadataSizeBytes: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20metadataSizeBytes">Link to this property</a>

objectCount: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20objectCount">Link to this property</a>

payloadSizeBytes: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20payloadSizeBytes">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2">Link to this property</a>

<details>

<summary>

vectorize?: Vectorize {dimensions, vectorsCount }

Vectorize index metadata (dimensions, vector count).

</summary>

dimensions: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize%20%3E%20(property)%20dimensions">Link to this property</a>

vectorsCount: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize%20%3E%20(property)%20vectorsCount">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine">Link to this property</a>

error?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>

file\_embed\_errors?: Record&lt;string, unknown&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20file_embed_errors">Link to this property</a>

index\_source\_errors?: Record&lt;string, unknown&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20index_source_errors">Link to this property</a>

last\_activity?: string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

outdated?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20outdated">Link to this property</a>

queued?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20queued">Link to this property</a>

running?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20running">Link to this property</a>

skipped?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20skipped">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)>)

<details>

<summary>

InstanceSearchResponse {chunks, query\_kind, search\_query }

</summary>

<details>

<summary>

chunks: Array&lt;Chunk&gt;

</summary>

id: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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>

score: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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?: Item {key, metadata, timestamp }

</summary>

key: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: Record&lt;string, unknown&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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.instances%20%3E%20(model)%20instance_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>

<details>

<summary>

scoring\_details?: ScoringDetails {fusion\_method, keyword\_rank, keyword\_score, 3 more }

</summary>

<details>

<summary>

fusion\_method?: "rrf"| "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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>

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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">Link to this property</a>

keyword\_rank?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%20keyword_rank">Link to this property</a>

keyword\_score?: number

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%20keyword_score">Link to this property</a>

reranking\_score?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%20reranking_score">Link to this property</a>

vector\_rank?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%20vector_rank">Link to this property</a>

vector\_score?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_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)%20vector_score">Link to this property</a>

</details>

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

</details>

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

<details>

<summary>

query\_kind: "text"| "image"| "multimodal"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%200">Link to this property</a>

"image"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%201">Link to this property</a>

"multimodal"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind">Link to this property</a>

search\_query?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20search_query">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)>)

<details>

<summary>

InstanceChatCompletionsResponse {choices, chunks, id, 2 more }

</summary>

<details>

<summary>

choices: Array&lt;Choice&gt;

</summary>

<details>

<summary>

message: Message {content, role }

</summary>

<details>

<summary>

content: string| Array&lt;UnionMember0 {text, type } | UnionMember1 {image\_url, type } | UnionMember2 {file, type } &gt;| string| null

</summary>

One of the following:

string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Array&lt;UnionMember0 {text, type } | UnionMember1 {image\_url, type } | UnionMember2 {file, type } &gt;

</summary>

<details>

<summary>

UnionMember0 {text, type }

</summary>

text: string

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20text">Link to this property</a>

type: "text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

UnionMember1 {image\_url, type }

</summary>

<details>

<summary>

image\_url: ImageURL {url }

</summary>

url: string

maxLength20971520

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20image_url%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20image_url">Link to this property</a>

type: "image\_url"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

UnionMember2 {file, type }

</summary>

<details>

<summary>

file: File {filename, file\_data, file\_id }

</summary>

filename: string

maxLength255

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20file%20%3E%20(property)%20filename">Link to this property</a>

file\_data?: string

maxLength13981144

minLength1

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20file%20%3E%20(property)%20file_data">Link to this property</a>

file\_id?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20file%20%3E%20(property)%20file_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20file">Link to this property</a>

type: "file"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%201">Link to this property</a>

string| null

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20content">Link to this property</a>

<details>

<summary>

role: "system"| "developer"| "user"| 2 more

</summary>

One of the following:

"system"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role%20%3E%20(member)%200">Link to this property</a>

"developer"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role%20%3E%20(member)%201">Link to this property</a>

"user"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role%20%3E%20(member)%202">Link to this property</a>

"assistant"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role%20%3E%20(member)%203">Link to this property</a>

"tool"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message%20%3E%20(property)%20role">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

index?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices%20%3E%20(items)%20%3E%20(property)%20index">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20choices">Link to this property</a>

<details>

<summary>

chunks: Array&lt;Chunk&gt;

</summary>

id: string

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

score: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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.instances%20%3E%20(model)%20instance_chat_completions_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.instances%20%3E%20(model)%20instance_chat_completions_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?: Item {key, metadata, timestamp }

</summary>

key: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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?: Record&lt;string, unknown&gt;

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item">Link to this property</a>

<details>

<summary>

scoring\_details?: ScoringDetails {fusion\_method, keyword\_rank, keyword\_score, 3 more }

</summary>

<details>

<summary>

fusion\_method?: "rrf"| "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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>

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_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">Link to this property</a>

keyword\_rank?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20keyword_rank">Link to this property</a>

keyword\_score?: number

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20keyword_score">Link to this property</a>

reranking\_score?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20reranking_score">Link to this property</a>

vector\_rank?: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20vector_rank">Link to this property</a>

vector\_score?: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20vector_score">Link to this property</a>

</details>

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

</details>

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

id?: string

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

model?: string

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

object?: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)%20%3E%20(property)%20object">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances%20%3E%20(model)%20instance_chat_completions_response%20%3E%20(schema)>)

#### InstancesJobs

##### [List Jobs](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/subresources/jobs/methods/list)

Deprecated

client.aiSearch.instances.jobs.list(stringid, JobListParams {account\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [JobListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)>) {id, source, description, 4 more } >

GET/accounts/{account\_id}/ai-search/instances/{id}/jobs

##### [Create new job](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/subresources/jobs/methods/create)

Deprecated

client.aiSearch.instances.jobs.create(stringid, JobCreateParams {account\_id, description } params, RequestOptionsoptions?): [JobCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)>) {id, source, description, 4 more }

POST/accounts/{account\_id}/ai-search/instances/{id}/jobs

##### [Get a Job Details](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/subresources/jobs/methods/get)

Deprecated

client.aiSearch.instances.jobs.get(stringjobID, JobGetParams {account\_id, id } params, RequestOptionsoptions?): [JobGetResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)>) {id, source, description, 4 more }

GET/accounts/{account\_id}/ai-search/instances/{id}/jobs/{job\_id}

##### [List Job Logs](https://developers.cloudflare.com/api/typescript/resources/ai_search/subresources/instances/subresources/jobs/methods/logs)

Deprecated

client.aiSearch.instances.jobs.logs(stringjobID, JobLogsParams {account\_id, id, page, per\_page } params, RequestOptionsoptions?): [JobLogsResponse](<https://developers.cloudflare.com/api/typescript/resources/ai_search#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_logs_response%20%3E%20(schema)>) {id, created\_at, message, message\_type }

GET/accounts/{account\_id}/ai-search/instances/{id}/jobs/{job\_id}/logs

##### ModelsExpand Collapse

<details>

<summary>

JobListResponse {id, source, description, 4 more }

</summary>

id: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

source: "user"| "schedule"

</summary>

One of the following:

"user"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"schedule"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

description?: string

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

end\_reason?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20end_reason">Link to this property</a>

ended\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20ended_at">Link to this property</a>

last\_seen\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

started\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)%20%3E%20(property)%20started_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_list_response%20%3E%20(schema)>)

<details>

<summary>

JobCreateResponse {id, source, description, 4 more }

</summary>

id: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

source: "user"| "schedule"

</summary>

One of the following:

"user"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"schedule"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

description?: string

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

end\_reason?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20end_reason">Link to this property</a>

ended\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20ended_at">Link to this property</a>

last\_seen\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

started\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)%20%3E%20(property)%20started_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_create_response%20%3E%20(schema)>)

<details>

<summary>

JobGetResponse {id, source, description, 4 more }

</summary>

id: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

source: "user"| "schedule"

</summary>

One of the following:

"user"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"schedule"

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

description?: string

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

end\_reason?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20end_reason">Link to this property</a>

ended\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20ended_at">Link to this property</a>

last\_seen\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

started\_at?: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)%20%3E%20(property)%20started_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_get_response%20%3E%20(schema)>)

<details>

<summary>

JobLogsResponse = Array&lt;JobLogsResponseItem&gt;

</summary>

id: number

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

created\_at: number

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

message: string

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

message\_type: number

<a href="#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20message_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_search.instances.jobs%20%3E%20(model)%20job_logs_response%20%3E%20(schema)>)