Skip to main content
GET
https://your-rootprint-host
/
api
/
indexes
/
{indexId}
/
logs
/
export
Export matching logs
curl --request GET \
  --url https://your-rootprint-host/api/indexes/{indexId}/logs/export \
  --cookie better-auth.session_token=
"<string>"

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

indexId
string
required

Quickwit index ID.

Minimum string length: 1

Query Parameters

q
string

Quickwit query string.

startTs
number
required

Inclusive start timestamp in seconds since Unix epoch.

Required range: x >= 0
endTs
number
required

Inclusive end timestamp in seconds since Unix epoch.

Required range: x >= 0
format
enum<string>
required

Export format.

Available options:
json,
csv,
text
dryRun
boolean

When true, returns a JSON size estimate (ExportPreflightResponse) instead of the export stream. The web UI uses this to confirm large downloads before starting them.

Response

Gzip-compressed export stream (Content-Encoding: gzip). When dryRun=true, returns a JSON size estimate instead.

The response is of type file.