BizKitHub
DocsAPI ReferenceAccount/bff/account/search-history
getAccountAdmin BFF

/bff/account/search-history

Returns the personal search history of the authenticated member — one row per unique query (deduplicated by the unique index on cas__organisation_search_log), ordered by the most recent occurrence first. Includes how many times the member ran the query (frequency) and the latest result count. Category filter is intentionally ignored on the write side, so the history reflects what the user searched for, not where from.

AccountgetBffAccountSearch-history

Parameters

3 query

Query parameters

· 3
pagestringOptional

Page number (1-based) for pagination.

Example1
limitstringOptional

Maximum items per page (1–500, default 50).

Example50
filterFulltextQuerystringOptional

Optional substring filter on the stored query text.

Exampleexample_filterFulltextQuery

Response schema

1 status code documented

200Success
itemCountnumberRequired

Total number of distinct historical queries (after the filter).

itemsobject[]Required
Each array item:
idnumberRequired

Internal log row id (stable identifier for the row).

querystringRequired

The exact normalized query text the member searched for.

resultsnumberRequired

Result count recorded the last time anyone in the org ran this query.

frequencynumberRequired

How many times this member has run this query.

updatedDatestringRequired

Timestamp of the most recent time the member ran this query.

Response example

application/json
{
  "itemCount": 0,
  "items": [
    {
      "id": 0,
      "query": "example_query",
      "results": 0,
      "frequency": 0,
      "updatedDate": "example_updatedDate"
    }
  ]
}

Request example

GET /bff/account/search-history

get
curl -X GET "https://api.bizkithub.com/bff/account/search-history?page=1&limit=50&filterFulltextQuery=example_filterFulltextQuery" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key