Show examples in:
JavascriptHTTP
Content Management API > Search Index

Search Index

A Search Index is used to index a website to provide DatoCMS Site Search functionality.

Object payload

idstring

ID of search_index

Example:"1822"
typestring

Must be exactly "search_index".

namestring

Name of the search index

Example:"Production Website"
enabledboolean

Whether the search index is enabled or not

frontend_urlstring, null

The public URL of the website. This is the starting point from which the website's spidering will start

Example:"https://www.mywebsite.com/"
user_agent_suffixstring, null

Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website

Example:"v1.0.0"
meta.indexing_statusenum

Status of the search indexing

Example:"success"
unstarted
pending
success
failed
meta.last_indexing_completed_at

Timestamp of the last completed indexing

Type:date-time, null
Example:"2025-03-30T09:29:14.872Z"
build_triggers

The build triggers that can trigger this search index

Type:Array&#x3C;<a href="/docs/content-management-api/resources/build_trigger">ResourceLinkage&#x3C;"build_trigger"></a>>

Available endpoints