Skip to main content
GET
https://your-rootprint-host
/
api
/
admin
/
activity
/
api-keys
/
{apiKeyId}
/
recent
List recent API key searches
curl --request GET \
  --url https://your-rootprint-host/api/admin/activity/api-keys/{apiKeyId}/recent \
  --cookie better-auth.session_token=
{
  "rows": [
    {
      "id": 123,
      "executedAt": "2023-11-07T05:31:56Z",
      "indexId": "<string>",
      "durationMs": 123,
      "numHits": 123,
      "query": "<string>",
      "startTs": 123,
      "endTs": 123
    }
  ],
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.rootprint.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie used by the Rootprint web UI.

Path Parameters

apiKeyId
integer
required

API key ID.

Required range: x >= 1

Query Parameters

window
enum<string>

Activity lookback window. Defaults to 7d.

Available options:
24h,
7d,
30d
offset
integer

Zero-based activity row offset. Defaults to 0.

Required range: x >= 0
limit
integer

Maximum number of recent activity rows to return. Defaults to 100.

Required range: 1 <= x <= 500
status
enum<string>

Filter recent activity by search status. Defaults to any.

Available options:
any,
success,
error

Response

Recent API key searches.

rows
object[]
required
total
integer
required