POST /accounts/{account_id}/ai-search/instances

Create new instances.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
source String Yes
ai_search_model No
chunk_overlap Integer No

Default value: 10

token_id String Yes
reranking Boolean No

Default value: false

chunk Boolean No

Default value: true

rewrite_query Boolean No

Default value: false

metadata Object No
metadata.worker_domain String No
metadata.created_from_aisearch_wizard Boolean No
score_threshold Number No

Default value: 0.4

hybrid_search_enabled Boolean No

Default value: false

id String Yes

Use your AI Search ID.

public_endpoint_params Object No
public_endpoint_params.enabled Boolean No

Default value: false

public_endpoint_params.authorized_hosts[] Array No
public_endpoint_params.rate_limit Object No
public_endpoint_params.rate_limit.requests Integer No
public_endpoint_params.rate_limit.period_ms Integer No
public_endpoint_params.rate_limit.technique String No

Valid values:

  • "fixed"
  • "sliding"
max_num_results Integer No

Default value: 10

reranking_model No
chunk_size Integer No

Default value: 256

rewrite_model No
type String Yes

Valid values:

  • "r2"
  • "web-crawler"
ai_gateway_id String No
source_params Object No

Default value: { "r2_jurisdiction": "default" }

source_params.prefix String No
source_params.web_crawler Object No

Default value: { "parse_type": "sitemap" }

source_params.web_crawler.parse_type String No

Valid values:

  • "feed-rss"
  • "sitemap"

Default value: "sitemap"

source_params.web_crawler.parse_options Object No
source_params.web_crawler.parse_options.include_headers Object No
source_params.web_crawler.parse_options.use_browser_rendering Boolean No

Default value: false

source_params.web_crawler.parse_options.include_images Boolean No

Default value: false

source_params.web_crawler.store_options Object No
source_params.web_crawler.store_options.r2_jurisdiction String No

Default value: "default"

source_params.web_crawler.store_options.storage_id String Yes
source_params.web_crawler.store_options.storage_type String No

Valid values:

  • "r2"

Default value: "r2"

source_params.include_items[] Array No

List of path patterns to include. Supports wildcards (e.g., /blog/.html, /docs/**, *\blog*.html)

source_params.r2_jurisdiction String No

Default value: "default"

source_params.exclude_items[] Array No

List of path patterns to exclude. Supports wildcards (e.g., /admin/, /private/**, *\private*)

embedding_model No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.