Read the omnisearch configuration
GET
/omnisearch/config.json
const url = 'https://work.optidata.cloud/api/omnisearch/config.json';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://work.optidata.cloud/api/omnisearch/config.json \ --header 'Authorization: Bearer <token>'Configuration document for the quick-search widget. Treat it as an open object; it is a placeholder today and will grow with the feature.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Omnisearch configuration.
Media typeapplication/json
object
key
additional properties
any
Examples
Exampleconfig
{ "message": "Hello World!"}Missing, malformed or expired authentication key.
Media typeapplication/json
Authentication failures use an error key rather than message.
object
error
required
string
Examples
Examplemissing
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}Rate limit exceeded. Retry after the window resets.
Media typeapplication/json
Generic error envelope used by policy, binding and framework failures.
object
message
required
Human-readable description of the failure.
string
Examples
Examplethrottled
{ "message": "Too Many Attempts."}