SQL Snapshot
Returns all currently active SQL snapshot query executions. Each entry includes the query ID, SQL statement, execution start time, and current progress. Useful for monitoring and managing long-running queries.
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/sql/queries HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"started": "2026-01-01T00:00:00.000Z",
"finished": "2026-01-01T00:00:00.000Z",
"sql": "text",
"username": "text",
"status": "Completed",
"message": "text"
}
]Cancels an in-progress SQL snapshot query execution. The query will be terminated and resources released. Use the query ID returned from the execute endpoint to identify the query to cancel.
The bearer token can be obtained by creating a ServiceAccount.
The SQL Snapshot query identifier
No content
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
DELETE /api/v1/environments/{environment}/proxy/api/v1/sql/execution/{queryId} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Returns partition-level offset information for a Kafka topic, including the earliest and latest offsets for each partition. This information is useful for understanding data availability and planning query ranges.
The bearer token can be obtained by creating a ServiceAccount.
The target table
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/sql/paging?table=text HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"tableName": {
"value": "text"
},
"type": {
"value": "text"
},
"label": "text",
"partitions": [
{
"id": {
"value": 1
},
"label": "text",
"start": 1,
"end": 1
}
]
}
]Provides code completion, syntax validation, and schema suggestions for snapshot SQL queries. Returns available tables, columns, functions, and SQL keywords based on the cursor position. Supports multiple data connections.
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
POST /api/v1/environments/{environment}/proxy/api/v1/sql/presentation HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"sql": "text",
"caret": 1,
"connectorId": "text"
}{
"input": "text",
"caret": 1,
"lints": [
{
"start": 1,
"end": 1,
"text": "text",
"type": "Warning"
}
],
"suggestions": [
{
"display": "text",
"text": "text",
"start": 1,
"end": 1,
"type": "text",
"description": "text",
"highlightStart": 1,
"highlightEnd": 1
}
],
"highlights": [
{
"start": 1,
"end": 1,
"text": "text",
"type": "Keyword"
}
],
"tables": [
{
"tableName": {
"value": "text"
},
"fields": [
{
"value": "text"
}
]
}
],
"statementsPositions": [
{
"index": 1,
"start": 1,
"end": 1
}
]
}Last updated
Was this helpful?

