V2

Search Key Points v2

post

Performs a key-points search using Smart Search v2.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Header parameters
bosa-tokenstringOptional
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search for.

sizeintegerOptional

The maximum number of results to return. Defaults to 5.

Default: 5
codenamestringOptional

The codename.

Default: deep_search
bosa_tokenany ofOptional

The Bosa Token

stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/v2/search/key-points

Knowledge Base Registration endpoints

post

Register new knowledge base to be use later.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body

Knowledge Base configurations request schema.

Request model for Knowledge Base configurations from GLChat to Smart Search. Contains a list of Data Store configurations.

Note: This endpoint expects an Authorization Bearer token in the header passed from GLChat.

Attributes: data_store_configs (list[DataStoreConfig]): List of Data Store configurations. name (str): Name of the knowledge base.

namestringRequired

Name of the knowledge base

Responses
chevron-right
200

Successful Response

application/json
post
/v2/kb-configs

Get Knowledge Base detail by provided knowledge base id

get

Provide details of knowledge base from given id, limited on only user owned kb

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
kb_idstringRequired
Responses
chevron-right
200

Successful Response

application/json
get
/v2/kb-configs/{kb_id}

Delete Knowledge Base by provided knowledge base id

delete

Delete knowledge base from given id, limited on only user owned kb

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
kb_idstringRequired
Responses
delete
/v2/kb-configs/{kb_id}

No content

Initiate or Validate Data Store Connection

post

Attempts to connect to or validate the configuration of the data stores associated with the given Knowledge Base.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
kb_idstringRequired
Responses
post
/v2/kb-configs/{kb_id}/connect

No content

Autosuggest

get

Get autosuggest for a given query across all data stores associated with a knowledge base, after validating user access.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
knowledge_base_idstringRequired

The unique identifier (UUID) of the Knowledge Base.

querystringRequired

The query string to generate suggestions for.

sizeinteger · min: 1Optional

Maximum number of suggestions to return.

Default: 10
Responses
chevron-right
200

Successful response containing autocomplete suggestions.

application/json
Responsestring[]Example: ["taman-purbakala-cipari. Berbagai penemuan benda dari zaman","Taman Wisata Alam dan Laut TWA.","taman wisata alam telah menjaga keaslian","taman nasional tertua di Indonesia yang","Taman Jaya yang terletak di Taman","taman wisata alam, menjadikan pantai ini","Taman Nasional Ujung Kulon terdapat hamparan","Taman Nasional Ujung Kulon yang telah","Taman Nasional Ujung Kulon, Situs Warisan","Taman Makam Pahlawan Taruna, Peristirahatan Terakhir","Taman Ismail Marzuki pada November 2024."]
get
/v2/autosuggest

Shingles

get

Get shingles for a given query across all data stores associated with a knowledge base, after validating user access.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
knowledge_base_idstringRequired

The unique identifier (UUID) of the Knowledge Base.

querystringRequired

The query string to generate shingles for.

sizeinteger · min: 1Optional

Maximum number of shingles to return.

Default: 10
Responses
chevron-right
200

Successful response containing shingles.

application/json
Responsestring[]Example: ["taman makam pahlawan taruna peristirahatan","taman nasional ujung kulon terdapat","taman wisata alam","taman jaya","taman nasional ujung","taman makam pahlawan taruna","taman wisata alam telah menjaga","taman purbakala","taman nasional"]
get
/v2/shingles

Search the web

post

Search the web for documents or pages relevant to the input query.

Args: get_web_search_results_request: Request containing query and size

Returns: Response with ranked text chunks and associated metadata

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search the web for

result_typestring · enumOptional

The type of results to return

Default: snippetsPossible values:
sizeinteger · min: 1 · max: 50Optional

The number of results to return

Default: 5
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/search

Get web search URLs

post

Search the web for pages relevant to the query and return their URLs.

This tool behaves like a search engine (e.g., Google), returning a list of URLs for a search query. Use when you need a list of URLs relevant to a web search query without fetching the page contents.

Args: request (GetWebSearchUrlsRequest): Parameters containing the search query and result count.

Returns: GetWebSearchUrlsResponse: A list of relevant URLs from web search results.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search the web for

sizeinteger · min: 1 · max: 50Optional

The number of URLs to return

Default: 5
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/search/urls

Map a website

post

Map a website to get all URLs.

This tool crawls a website and returns a list of all URLs found on the site.

Args: request (GetWebSearchMapRequest): Parameters containing the base URL and optional filters.

Returns: GetWebSearchMapResponse: A list of URLs from the website.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
base_urlstringRequired

The base URL of the website to map

queryany ofOptional

Optional search query to filter URLs on the website

stringOptional
or
nullOptional
include_subdomainsbooleanOptional

Whether to include subdomains in the mapping

Default: true
sizeinteger · min: 1 · max: 1000Optional

The number of results to return

Default: 20
pageinteger · min: 1Optional

The page number to return

Default: 1
return_all_mapbooleanOptional

Whether to return all mapped links

Default: true
cachebooleanOptional

Whether to enable caching. When False, always fetches new data but still updates cache

Default: false
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/search/map

Fetch a web page

post

Fetch a single web page by URL and return its text, metadata, and optionally HTML content.

Args: get_web_page_request: Request containing URL and HTML flag

Returns: GetWebPageResponse with web page content and metadata

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
sourcestringRequired

The URL of the web page to fetch

return_htmlbooleanOptional

Whether to return the full HTML content of the page

Default: false
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/page

Get web page snippets

post

Given a query and page URL, return the most relevant text fragments without returning the entire page contents.

Args: get_web_page_snippets_request: Request containing query, URL, size, and style

Returns: GetWebPageSnippetsResponse with relevant text snippets

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search for within the page

sourcestringRequired

The URL of the web page to extract

sizeinteger · min: 1 · max: 50Optional

The number of snippets to return

Default: 5
snippet_stylestring · enumOptional

The style of snippet to return

Default: paragraphPossible values:
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/page/snippets

Get web page keypoints

post

Search the web, fetch page contents, and extract key points from each page. Returns key points from each web search result.

Args: get_web_page_keypoints_request: Request containing query and size

Returns: GetWebPageKeypointsResponse with key points from web search results

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search for

sourcestringRequired

The URL of the web page to extract

sizeinteger · min: 1 · max: 50Optional

The number of key points to return

Default: 5
Responses
chevron-right
200

Successful Response

application/json
post
/v2/web/page/keypoints

Connect

post

Connects to a connector. Optionally supports custom BOSA credentials.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
app_namestring · enumRequired

The name of the app to connect to

Possible values:
Header parameters
bosa-tokenstringOptional
Body
callback_urlstringOptional

OAuth callback URL where user will be redirected after authentication. Defaults to http://localhost:5000/health-check (configurable via BOSA_DEFAULT_CALLBACK_URL env var).

Default: http://localhost:5000/health-check
Responses
chevron-right
200

Successful Response

application/json
post
/v2/connector/{app_name}/connect

Disconnect

post

Disconnects from a connector. Optionally supports custom BOSA credentials.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
app_namestring · enumRequired

The name of the app to disconnect from

Possible values:
Header parameters
bosa-tokenstringOptional
Responses
chevron-right
200

Successful Response

application/json
post
/v2/connector/{app_name}/disconnect

Search

post

Searches a connector. Optionally supports custom BOSA credentials.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
app_namestring · enumRequired

The name of the app to search

Possible values:
Header parameters
bosa-tokenstringOptional
Body
streambooleanOptionalDefault: false
querystringRequired

The query to search for

Responses
chevron-right
200

Successful Response

application/json
post
/v2/connector/{app_name}/search

Last updated