SQL Streaming
Returns a list of all registered SQL processors with their current states, configurations, and metadata. Results are filtered based on the caller's permissions.
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/v2/streams HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"processors": [
{
"id": "text",
"application": {
"name": "text",
"processorId": "text",
"lrn": "text",
"sql": "text",
"inputTopics": [
{
"name": "text",
"keyFormat": "TWAVRO",
"valueFormat": "TWAVRO"
}
],
"outputTopics": [
{
"name": "text",
"keyFormat": "TWAVRO",
"valueFormat": "TWAVRO"
}
],
"otherSettings": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"metadata": {
"description": "text",
"tags": [
"text"
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"processorType": "PreDaD"
},
"deployment": {
"details": {
"replicas": 1,
"otherSettings": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"cluster": "text",
"namespace": "text"
},
"status": {
"level": "NOT_RUNNING",
"startedAt": "2026-01-01T00:00:00.000Z",
"stoppedAt": "2026-01-01T00:00:00.000Z",
"replicas": [
{
"id": "text",
"status": "STOPPED",
"msg": "text"
}
]
}
},
"coverage": "full"
}
]
}Registers and creates a new SQL processor with the provided configuration. The processor executes streaming SQL queries against Kafka topics. Returns the processor ID and initial state upon successful creation.
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/v2/streams HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 227
{
"name": "text",
"processorId": "text",
"sql": "text",
"description": "text",
"deployment": {
"details": {
"runners": 1,
"cluster": "text",
"namespace": "text",
"requestedCpu": 1,
"limitCpu": 1,
"requestedMemory": 1,
"limitMemory": 1
}
},
"tags": [
"text"
]
}{
"id": "text"
}Legacy endpoint for listing SQL processors. Use the V2 endpoint for new integrations which provides enhanced response format.
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/streams HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"targets": [
{
"cluster": "text",
"version": "text",
"namespaces": [
"text"
]
}
],
"streams": [
{
"user": "text",
"name": "text",
"id": "text",
"lrn": "text",
"processorId": "text",
"sql": "text",
"clusterName": "text",
"startTs": 1,
"namespace": "text",
"pipeline": "text",
"runners": 1,
"inputTopics": [
"text"
],
"outputTopics": [
"text"
],
"state": {
"deploymentStatus": "FAILED",
"deploymentError": "text",
"runnerStatus": {
"ANY_ADDITIONAL_PROPERTY": {
"id": "text",
"worker": "text",
"status": "FAILED",
"errorMsg": "text"
}
}
},
"upTime": 1,
"stopTs": 1,
"lastAction": {
"action": "Scaled",
"msg": "text"
},
"processorType": "PreDaD",
"settings": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"coverage": "full"
}
]
}Legacy endpoint for creating SQL processors. Use the V2 endpoint for new integrations. Returns the processor ID as a string.
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/streams HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"name": "text",
"appId": "text",
"sql": "text",
"runnerCount": 1,
"cluster": "text",
"namespace": "text",
"settings": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"user": "text",
"pipeline": "text"
}textLegacy endpoint for retrieving SQL processor details. Use the V2 endpoint for new integrations which provides enhanced response format.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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/streams/{id} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"user": "text",
"name": "text",
"id": "text",
"lrn": "text",
"processorId": "text",
"sql": "text",
"clusterName": "text",
"startTs": 1,
"namespace": "text",
"pipeline": "text",
"runners": 1,
"inputTopics": [
"text"
],
"outputTopics": [
"text"
],
"state": {
"deploymentStatus": "FAILED",
"deploymentError": "text",
"runnerStatus": {
"ANY_ADDITIONAL_PROPERTY": {
"id": "text",
"worker": "text",
"status": "FAILED",
"errorMsg": "text"
}
}
},
"upTime": 1,
"stopTs": 1,
"lastAction": {
"action": "Scaled",
"msg": "text"
},
"processorType": "PreDaD",
"settings": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"coverage": "full"
}Permanently removes a SQL processor and its associated resources. The processor must be in a stopped or failed state before deletion, unless force=true is specified. Returns the deleted processor ID.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
Force deletion regardless of processor state
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/streams/{id} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textRetrieves detailed information about a specific SQL processor including its configuration, current state, SQL query, input/output topics, and runtime metrics.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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/v2/streams/{id} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"application": {
"name": "text",
"processorId": "text",
"lrn": "text",
"sql": "text",
"inputTopics": [
{
"name": "text",
"keyFormat": "TWAVRO",
"valueFormat": "TWAVRO"
}
],
"outputTopics": [
{
"name": "text",
"keyFormat": "TWAVRO",
"valueFormat": "TWAVRO"
}
],
"otherSettings": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"metadata": {
"description": "text",
"tags": [
"text"
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"processorType": "PreDaD"
},
"deployment": {
"details": {
"replicas": 1,
"otherSettings": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"cluster": "text",
"namespace": "text"
},
"status": {
"level": "NOT_RUNNING",
"startedAt": "2026-01-01T00:00:00.000Z",
"stoppedAt": "2026-01-01T00:00:00.000Z",
"replicas": [
{
"id": "text",
"status": "STOPPED",
"msg": "text"
}
]
}
},
"coverage": "full"
}Returns the DAG (Directed Acyclic Graph) representation of the SQL processor's topology, showing the flow of data through operators, sources, and sinks.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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/streams/{id}/graph HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"sources": [
"text"
],
"nodes": [
{
"key": "text",
"description": "text",
"type": "STREAM",
"nodeType": "PreDaDProcessor",
"keyType": "TWAVRO",
"valueType": "TWAVRO",
"children": [
"text"
]
}
]
}Initiates execution of a SQL processor that is in a stopped or created state. The processor will begin consuming from input topics and producing to output topics. Returns 202 Accepted as the operation is asynchronous.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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
PUT /api/v1/environments/{environment}/proxy/api/v1/streams/{id}/start HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textResumes a previously stopped SQL processor from its last committed offset. Unlike start, resume continues processing from where it left off rather than resetting offsets. Returns 202 Accepted as the operation is asynchronous.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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
PUT /api/v1/environments/{environment}/proxy/api/v1/streams/{id}/resume HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textGracefully stops a running SQL processor. The processor will commit its current offsets before stopping, allowing it to be resumed later. Returns 202 Accepted as the operation is asynchronous.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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
PUT /api/v1/environments/{environment}/proxy/api/v1/streams/{id}/stop HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textAdjusts the number of parallel runner instances for a SQL processor to increase or decrease throughput. Only available for Kubernetes deployments. The scale value must be a positive integer.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
The new SQL processor runner count. It has to be an integer bigger than zero.
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
PUT /api/v1/environments/{environment}/proxy/api/v1/streams/{id}/scale/{scale} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textUpdates the Docker image used by a SQL processor's runners. This allows upgrading or changing the processor runtime without recreating the processor. The processor should be stopped before changing the image.
The bearer token can be obtained by creating a ServiceAccount.
SQL processor unique identifier
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
PUT /api/v1/environments/{environment}/proxy/api/v1/streams/{id}/image HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"image": "text"
}{
"id": "text"
}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 HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"sql": "text",
"caret": 1
}{
"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"
}
],
"statementsPositions": [
{
"index": 1,
"start": 1,
"end": 1
}
]
}Legacy endpoint for code completion, syntax validation, and schema suggestions for streaming SQL queries against Kafka topics. Returns completions, errors, and metadata based on the cursor position in the query. Use V2 endpoint for enhanced topic metadata.
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/intellisense/streams/kafka HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"sql": "text",
"caret": 1
}{
"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"
}
],
"statementsPositions": [
{
"index": 1,
"start": 1,
"end": 1
}
]
}Enhanced endpoint for code completion, syntax validation, and schema suggestions for streaming SQL queries against Kafka topics. This endpoint is consumed by the frontend and fed to Monaco editors for autocompletion support and validation. Returns completions with rich topic metadata including key/value types, partition count, replication factor, topic configuration (cleanup policy, retention, compression, min ISR, max message size), tags, and descriptions. Optimized for performance with result limiting and efficient filtering.
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/v2/intellisense/streams/kafka HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"sql": "text",
"caret": 1
}{
"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"
}
],
"statementsPositions": [
{
"index": 1,
"start": 1,
"end": 1
}
]
}Last updated
Was this helpful?

