---
title: Instances
---

[Skip to content](#_top)

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

[AI Search](https://developers.cloudflare.com/api/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/resources/ai_search/subresources/instances/methods/list)

Deprecated

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

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

Deprecated

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

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

Deprecated

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/resources/ai_search/subresources/instances/methods/update)

Deprecated

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

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

Deprecated

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

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

Deprecated

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

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

Deprecated

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

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

Deprecated

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

##### ModelsExpand Collapse

<details>

<summary>

InstanceListResponse object {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

<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

<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"or "close\_enough"or "flexible\_friend"or "anything\_goes"

</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: 600or 1800or 3600or 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

<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

<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

<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 of object {data\_type, field\_name }

</summary>

<details>

<summary>

data\_type: "text"or "number"or "boolean"or "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

<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"or "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: object {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: object {keyword\_tokenizer, use\_ocr }

</summary>

<details>

<summary>

keyword\_tokenizer: optional "porter"or "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: optional 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

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

<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: object {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard: optional 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: optional 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

<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

<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: object {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts: optional array of 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)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat\_completions\_endpoint: optional object {disabled }

</summary>

disabled: optional 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: optional array of 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)%20custom_domains">Link to this property</a>

default\_domain\_enabled: optional 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: optional 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: optional object {description, disabled }

</summary>

description: optional 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: optional 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: optional object {period\_ms, requests, technique }

</summary>

period\_ms: optional 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: optional 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: optional "fixed"or "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: optional object {disabled }

</summary>

disabled: optional 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

<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: object {boost\_by, keyword\_match\_mode }

</summary>

<details>

<summary>

boost\_by: optional array of object {field, dataType, direction }

</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: optional "number"or "datetime"or "text"or "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: optional "asc"or "desc"or "exists"or "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: optional "and"or "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

<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

<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

<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: object {exclude\_items, include\_items, prefix, 2 more }

</summary>

exclude\_items: optional array of 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)%20exclude_items">Link to this property</a>

include\_items: optional array of 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)%20include_items">Link to this property</a>

prefix: optional 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: optional 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: optional object {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options: optional object {depth, include\_external\_links, include\_subdomains, 3 more }

</summary>

depth: optional 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: optional 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: optional 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: optional 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: optional 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: optional "all"or "sitemaps"or "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: optional object {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector: optional array of object {path, selector }

</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: optional map\[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)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20include_headers">Link to this property</a>

include\_images: optional 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: optional array of 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)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20specific_sitemaps">Link to this property</a>

use\_browser\_rendering: optional 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: optional "sitemap"or "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

<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: 900or 1800or 3600or 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

<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

<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

<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

<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"or "web-crawler"

</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 object {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: optional string

<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: optional string

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: optional 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: optional "super\_strict\_match"or "close\_enough"or "flexible\_friend"or "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: optional 600or 1800or 3600or 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: optional 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: optional 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: optional string

<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: optional array of object {data\_type, field\_name }

</summary>

<details>

<summary>

data\_type: "text"or "number"or "boolean"or "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: optional string

<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: optional 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: optional 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: optional "max"or "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: optional 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: optional object {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: optional object {keyword\_tokenizer, use\_ocr }

</summary>

<details>

<summary>

keyword\_tokenizer: optional "porter"or "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: optional 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: optional string

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: optional 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: optional object {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard: optional 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: optional 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: optional string

<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: optional string

<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: optional 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: optional string

<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: optional object {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts: optional array of 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)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat\_completions\_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.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: optional array of string

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

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional object {description, disabled }

</summary>

description: optional 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: optional 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: optional object {period\_ms, requests, technique }

</summary>

period\_ms: optional 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: optional 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: optional "fixed"or "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: optional object {disabled }

</summary>

disabled: optional 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: optional 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: optional string

<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: optional object {boost\_by, keyword\_match\_mode }

</summary>

<details>

<summary>

boost\_by: optional array of object {field, direction }

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: optional "asc"or "desc"or "exists"or "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: optional "and"or "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: optional string

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: optional 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: optional 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: optional string

<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: optional object {exclude\_items, include\_items, prefix, 2 more }

</summary>

exclude\_items: optional array of string

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: optional array of string

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: optional 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: optional 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: optional object {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options: optional object {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: optional 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: optional 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: optional 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: optional 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: optional 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: optional "all"or "sitemaps"or "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: optional object {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector: optional array of object {path, selector }

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: optional map\[string]

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: optional 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: optional array of string

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: optional 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: optional "sitemap"or "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: optional 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: optional 900or 1800or 3600or 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: optional 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: optional "r2"or "web-crawler"

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 object {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: optional string

<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: optional string

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: optional 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: optional "super\_strict\_match"or "close\_enough"or "flexible\_friend"or "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: optional 600or 1800or 3600or 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: optional 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: optional 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: optional string

<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: optional array of object {data\_type, field\_name }

</summary>

<details>

<summary>

data\_type: "text"or "number"or "boolean"or "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: optional string

<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: optional 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: optional 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: optional "max"or "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: optional 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: optional object {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: optional object {keyword\_tokenizer, use\_ocr }

</summary>

<details>

<summary>

keyword\_tokenizer: optional "porter"or "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: optional 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: optional string

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: optional 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: optional object {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard: optional 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: optional 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: optional string

<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: optional string

<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: optional 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: optional string

<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: optional object {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts: optional array of 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)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat\_completions\_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.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: optional array of string

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

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional object {description, disabled }

</summary>

description: optional 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: optional 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: optional object {period\_ms, requests, technique }

</summary>

period\_ms: optional 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: optional 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: optional "fixed"or "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: optional object {disabled }

</summary>

disabled: optional 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: optional 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: optional string

<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: optional object {boost\_by, keyword\_match\_mode }

</summary>

<details>

<summary>

boost\_by: optional array of object {field, direction }

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: optional "asc"or "desc"or "exists"or "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: optional "and"or "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: optional string

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: optional 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: optional 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: optional string

<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: optional object {exclude\_items, include\_items, prefix, 2 more }

</summary>

exclude\_items: optional array of string

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: optional array of string

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: optional 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: optional 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: optional object {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options: optional object {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: optional 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: optional 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: optional 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: optional 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: optional 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: optional "all"or "sitemaps"or "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: optional object {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector: optional array of object {path, selector }

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: optional map\[string]

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: optional 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: optional array of string

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: optional 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: optional "sitemap"or "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: optional 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: optional 900or 1800or 3600or 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: optional 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: optional "r2"or "web-crawler"

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 object {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: optional string

<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: optional string

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: optional 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: optional "super\_strict\_match"or "close\_enough"or "flexible\_friend"or "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: optional 600or 1800or 3600or 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: optional 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: optional 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: optional string

<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: optional array of object {data\_type, field\_name }

</summary>

<details>

<summary>

data\_type: "text"or "number"or "boolean"or "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: optional string

<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: optional 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: optional 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: optional "max"or "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: optional 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: optional object {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: optional object {keyword\_tokenizer, use\_ocr }

</summary>

<details>

<summary>

keyword\_tokenizer: optional "porter"or "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: optional 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: optional string

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: optional 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: optional object {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard: optional 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: optional 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: optional string

<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: optional string

<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: optional 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: optional string

<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: optional object {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts: optional array of 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)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat\_completions\_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.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: optional array of string

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

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional object {description, disabled }

</summary>

description: optional 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: optional 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: optional object {period\_ms, requests, technique }

</summary>

period\_ms: optional 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: optional 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: optional "fixed"or "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: optional object {disabled }

</summary>

disabled: optional 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: optional 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: optional string

<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: optional object {boost\_by, keyword\_match\_mode }

</summary>

<details>

<summary>

boost\_by: optional array of object {field, direction }

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: optional "asc"or "desc"or "exists"or "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: optional "and"or "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: optional string

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: optional 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: optional 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: optional string

<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: optional object {exclude\_items, include\_items, prefix, 2 more }

</summary>

exclude\_items: optional array of string

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: optional array of string

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: optional 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: optional 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: optional object {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options: optional object {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: optional 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: optional 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: optional 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: optional 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: optional 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: optional "all"or "sitemaps"or "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: optional object {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector: optional array of object {path, selector }

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: optional map\[string]

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: optional 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: optional array of string

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: optional 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: optional "sitemap"or "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: optional 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: optional 900or 1800or 3600or 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: optional 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: optional "r2"or "web-crawler"

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 object {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: optional string

<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: optional string

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: optional 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: optional "super\_strict\_match"or "close\_enough"or "flexible\_friend"or "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: optional 600or 1800or 3600or 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: optional 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: optional 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: optional string

<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: optional array of object {data\_type, field\_name }

</summary>

<details>

<summary>

data\_type: "text"or "number"or "boolean"or "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: optional string

<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: optional 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: optional 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: optional "max"or "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: optional 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: optional object {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: optional object {keyword\_tokenizer, use\_ocr }

</summary>

<details>

<summary>

keyword\_tokenizer: optional "porter"or "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: optional 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: optional string

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: optional 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: optional object {created\_from\_aisearch\_wizard, worker\_domain }

</summary>

created\_from\_aisearch\_wizard: optional 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: optional 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: optional string

<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: optional string

<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: optional 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: optional string

<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: optional object {authorized\_hosts, chat\_completions\_endpoint, custom\_domains, 5 more }

</summary>

authorized\_hosts: optional array of 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)%20authorized_hosts">Link to this property</a>

<details>

<summary>

chat\_completions\_endpoint: optional object {disabled }

</summary>

disabled: optional boolean

Disable chat completions endpoint for this public endpoint

<a href="#(resource)%20ai_search.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: optional array of string

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

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional object {description, disabled }

</summary>

description: optional 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: optional 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: optional object {period\_ms, requests, technique }

</summary>

period\_ms: optional 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: optional 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: optional "fixed"or "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: optional object {disabled }

</summary>

disabled: optional 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: optional 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: optional string

<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: optional object {boost\_by, keyword\_match\_mode }

</summary>

<details>

<summary>

boost\_by: optional array of object {field, direction }

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: optional "asc"or "desc"or "exists"or "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: optional "and"or "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: optional string

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: optional 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: optional 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: optional string

<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: optional object {exclude\_items, include\_items, prefix, 2 more }

</summary>

exclude\_items: optional array of string

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: optional array of string

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: optional 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: optional 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: optional object {discover\_options, parse\_options, parse\_type }

</summary>

<details>

<summary>

discover\_options: optional object {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: optional 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: optional 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: optional 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: optional 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: optional 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: optional "all"or "sitemaps"or "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: optional object {content\_selector, include\_headers, include\_images, 2 more }

</summary>

<details>

<summary>

content\_selector: optional array of object {path, selector }

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: optional map\[string]

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: optional 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: optional array of string

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: optional 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: optional "sitemap"or "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: optional 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: optional 900or 1800or 3600or 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: optional 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: optional "r2"or "web-crawler"

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 object {completed, degraded, engine, 8 more }

</summary>

completed: optional 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: optional 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: optional object {r2, vectorize }

Engine-specific metadata. Present only for managed (v3) instances.

</summary>

<details>

<summary>

r2: optional object {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: optional object {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: optional 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: optional map\[unknown]

<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: optional map\[unknown]

<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: optional 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: optional 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: optional 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: optional 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: optional 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 object {chunks, query\_kind, search\_query }

</summary>

<details>

<summary>

chunks: array of object {id, score, text, 3 more }

</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: optional object {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: optional map\[unknown]

<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: optional 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: optional object {fusion\_method, keyword\_rank, keyword\_score, 3 more }

</summary>

<details>

<summary>

fusion\_method: optional "rrf"or "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional 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: optional 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: optional 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"or "image"or "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: optional 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 object {choices, chunks, id, 2 more }

</summary>

<details>

<summary>

choices: array of object {message, index }

</summary>

<details>

<summary>

message: object {content, role }

</summary>

<details>

<summary>

content: stringor array of object {text, type } or object {image\_url, type } or object {file, type } or string

</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 of object {text, type } or object {image\_url, type } or object {file, type }

</summary>

One of the following:

<details>

<summary>

object {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>

object {image\_url, type }

</summary>

<details>

<summary>

image\_url: object {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>

object {file, type }

</summary>

<details>

<summary>

file: object {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: optional 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: optional 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

<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"or "developer"or "user"or 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: optional 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 of object {id, score, text, 3 more }

</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: optional object {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: optional map\[unknown]

<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: optional 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: optional object {fusion\_method, keyword\_rank, keyword\_score, 3 more }

</summary>

<details>

<summary>

fusion\_method: optional "rrf"or "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.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: optional 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: optional 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: optional 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: optional 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: optional 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: optional 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: optional 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: optional 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/resources/ai_search/subresources/instances/subresources/jobs/methods/list)

Deprecated

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

##### [Create new job](https://developers.cloudflare.com/api/resources/ai_search/subresources/instances/subresources/jobs/methods/create)

Deprecated

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

##### [Get a Job Details](https://developers.cloudflare.com/api/resources/ai_search/subresources/instances/subresources/jobs/methods/get)

Deprecated

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

##### [List Job Logs](https://developers.cloudflare.com/api/resources/ai_search/subresources/instances/subresources/jobs/methods/logs)

Deprecated

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

##### ModelsExpand Collapse

<details>

<summary>

JobListResponse object {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"or "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: optional 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: optional 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: optional 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: optional 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: optional 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 object {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"or "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: optional 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: optional 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: optional 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: optional 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: optional 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 object {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"or "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: optional 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: optional 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: optional 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: optional 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: optional 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 of object {id, created\_at, message, message\_type }

</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)>)