Endpoints
Convert pipelines into fast, scalable endpoints
Transform any pipeline into a high-performance API endpoint that supports low latency and high concurrency, ready for integration.
Each API comes with Swagger documentation for standardized usage and can be accessed as a shareable REST endpoint.
UI
Create an Endpoint
To publish a query as an endpoint:
- Click the publish button:
- Select “View endpoint”:
The dashboard displays key metrics including request count, data processed, latency, and error rate.
Use the Endpoint
Copy the API endpoint directly from the code block to use in your application:
Access additional options through the three-dot menu in the top right corner:
- Share Swagger: Opens the Swagger documentation page for API exploration and testing
- Add Parameter: Define custom parameters for your API calls
- Duplicate: Create a copy of the endpoint
- Discard changes: Revert parameter modifications
- Delete: Remove the endpoint
Parameters
Endpoints support Jinja2 syntax for parameter templating.
Example of a parameterized endpoint:
Expressions
Use {{ param_name }}
syntax for expressions.
Example: SELECT * FROM t LIMIT {{ limit }}
The internal Jinja engine handles parameter substitution automatically. No need to escape parameters - WHERE name = {{ name }}
works correctly for string values.
Supported data types:
- String
- Int
- Float
- Boolean
- Date
- Datetime
For other data types, use String and parse within your SQL. For example, create an array from a comma-separated string:
All parameters are passed as query strings in the HTTP API:
For additional syntax options, refer to the Jinja2 documentation.
Statements
Use {% if condition %}...{% endif %}
syntax for conditional statements.
Example:
For additional statement options, refer to the Jinja2 documentation.
CLI
Edit YAML file
Simply add a name to the publish
parameter:
Push
Push this update by running:
Params
In YAML params are placed in the params
property:
Params can be used in endpoints and draft pipes.
Params cannot be used in materialized pipes.