SQL Streaming

List SQL Processors

get

Returns a list of all registered SQL processors with their current states, configurations, and metadata. Results are filtered based on the caller's permissions.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Responses
chevron-right
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v2/streams

Create SQL Processor

post

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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestring · min: 1Required
processorIdstring · min: 1Optional
sqlstring · min: 1Required
descriptionstring · min: 1Optional
deploymentone ofRequired
or
objectOptional
tagsstring[]Optional
Responses
post
/api/v1/environments/{environment}/proxy/api/v2/streams

List SQL Processors (Legacy)

get

Legacy endpoint for listing SQL processors. Use the V2 endpoint for new integrations which provides enhanced response format.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Responses
chevron-right
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/streams

Create SQL Processor (Legacy)

post

Legacy endpoint for creating SQL processors. Use the V2 endpoint for new integrations. Returns the processor ID as a string.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestringRequired
appIdstringOptional
sqlstringRequired
runnerCountintegerRequired
clusterstringOptional
namespacestringOptional
userstringOptional
pipelinestringOptional
Responses
post
/api/v1/environments/{environment}/proxy/api/v1/streams

Get SQL Processor (Legacy)

get

Legacy endpoint for retrieving SQL processor details. Use the V2 endpoint for new integrations which provides enhanced response format.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
chevron-right
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}

Delete SQL Processor

delete

Permanently removes a SQL processor and its associated resources. The processor must be in a stopped state before deletion. Returns the deleted processor ID.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
chevron-right
200Success
application/json
Responsestring · min: 1
delete
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}

Get SQL Processor

get

Retrieves detailed information about a specific SQL processor including its configuration, current state, SQL query, input/output topics, and runtime metrics.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
chevron-right
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v2/streams/{id}

Get SQL Processor Graph

get

Returns the DAG (Directed Acyclic Graph) representation of the SQL processor's topology, showing the flow of data through operators, sources, and sinks.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
chevron-right
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/graph

Start SQL Processor

put

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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
put
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/start

Resume SQL Processor

put

Resumes 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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
put
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/resume

Stop SQL Processor

put

Gracefully 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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Responses
put
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/stop

Scale SQL Processor

put

Adjusts 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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

scalestringRequired

The new SQL processor runner count. It has to be an integer bigger than zero.

Responses
put
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/scale/{scale}

Change SQL Processor Docker Image

put

Updates 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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · min: 1Required

SQL processor unique identifier

Body
imagestring · min: 1Required
Responses
put
/api/v1/environments/{environment}/proxy/api/v1/streams/{id}/image

Get Streaming SQL Intellisense

post

Provides 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.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
sqlstringRequired
caretintegerOptional
Responses
chevron-right
200Success
application/json
post
/api/v1/environments/{environment}/proxy/api/v1/intellisense/streams/kafka

Last updated

Was this helpful?