Skip to main content
GET
Insights

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required

The organization's id (UUID) or slug — either form is accepted.

projectId
string
required

The project's id (UUID) or slug — either form is accepted.

databaseId
string
required

The database's id (UUID), from databases.list.

Query Parameters

limit
integer

Maximum queries returned (1-100). Defaults to 50.

Response

Query stats, slowest first.

queryId
string | null
required

Stable identifier of the normalized statement.

normalizedSql
string | null
required

The statement with literals parameterized.

calls
integer | null
required

Times the statement ran in the window.

totalTimeMs
number | null
required

Total execution time across all calls, in milliseconds.

meanMs
number | null
required

Mean execution time, in milliseconds.

p50Ms
number | null
required

Median (p50) execution time, in milliseconds.

p99Ms
number | null
required

99th-percentile execution time, in milliseconds.

rowsRead
integer | null
required

Rows read across all calls.

rowsWritten
integer | null
required

Rows written across all calls.

capturedAt
string<date-time>
required

When this drain was captured.