Skip to content
LakeSharkDocumentation
EXECUTIONSETS / DOCUMENTATION

HTTP ExecutionSets

Create and run reusable HTTP functions using typed JSON input and output.

An ExecutionSet is a named, reusable function. In this first release, its execution type is HTTP/S. It accepts JSON input, calls an approved HTTPS endpoint, validates the JSON response, and returns the result. It does not require an AnswerSet or AI. It can optionally be connected to incoming AnswerSet questions through the action management API. Graph resource pins in the Flow tab are separate from those runtime bindings.

Create an ExecutionSet

ExecutionSets are workspace resources. Select a workspace first, then open Executions. The navigation item is intentionally not shown at the organization level.

Select New ExecutionSet to open the guided builder. You do not need to write JSON Schema.

  1. Destination: Enter a short name such as notify_service, select POST or GET, then enter an HTTPS endpoint and timeout.
  2. Request fields: Add the named inputs the endpoint expects. Choose Text, Number, Integer, Yes/No, Object or List and mark required fields. Optionally use Query parameters to add fixed values or map a named key to a declared scalar input. If no input is needed, leave the Inputs list empty.
  3. Response fields: Describe the JSON object the endpoint returns using the same controls.
  4. Select Create ExecutionSet. Saving the definition does not send network traffic.

For existing API contracts, Edit JSON schemas manually offers advanced editors. Returning to visual mode requires the schema to be representable without information loss.

Example contract

Request fields: color (Text, Required).

Response fields: accepted (Yes/No, Required).

The corresponding input schema is:

{
  "type": "object",
  "properties": {"color": {"type": "string"}},
  "required": ["color"],
  "additionalProperties": false
}

The response schema is:

{
  "type": "object",
  "properties": {"accepted": {"type": "boolean"}},
  "required": ["accepted"],
  "additionalProperties": false
}

Put inputs in URL query parameters

You can bind an input to a URL query value for both GET and POST without writing code.

  1. Enter the HTTPS endpoint, such as https://api.example.org/notify.
  2. Under Input fields, add username as a required Text input.
  3. Under Query parameters, select Add parameter.
  4. Enter user for the parameter name, choose Input field, and select username for its value.
  5. Check the live request preview. Save the ExecutionSet.

LakeShark stores the equivalent URI template:

https://api.example.org/notify?user=${inputs.username}

A request with {"inputs":{"username":"Jane & Alex","message":"Hello"}} sends the username value as an encoded URL query parameter and (for POST) sends message in the JSON body. Query-bound inputs are not duplicated into the POST body. GET requests put any remaining scalar inputs in the URL and never send a JSON body.

The full placeholder ${inputs.username} may also be entered directly as a query value in an advanced URL. Only defined Text, Integer, Number, and Yes/No fields can be used; arrays and objects cannot. LakeShark rejects partial expressions, dynamic hostnames, missing inputs, duplicate query names, and invalid field types. Complete typed URL path segments such as /users/${inputs.username} are supported; inputs cannot change the hostname, route structure, or partial segments.

Security: Query values can appear in HTTP access logs. Never put credentials, secrets, or sensitive personal information in query parameters. The runtime supports host allowlisting, public-IP checks, and a separately verified egress path. The checked-in beta deployment currently configures a wildcard * host policy, not individual host approval; see HTTP execution security before relying on hostname restrictions.

Fixed query values

When the external API expects a constant query parameter, do not create an input field. Add a parameter, set Value source to Fixed value, then enter its value directly.

For example, a GET request with a fixed ip value can use:

https://api.example.org/check?ip=185.220.101.34

The query builder also accepts fixed and input-backed parameters together. Ordinary fixed query values already present in the endpoint URL remain intact.

Hardcoded JSON payloads

For POST actions, enable Use a custom JSON payload to send fixed JSON, references to typed inputs, or both. No JSON body is sent for GET.

Fixed JSON with no runtime inputs:

{
  "event": "check",
  "ip": "185.220.101.34",
  "retry": false,
  "count": 3
}

Mixed dynamic and fixed values:

{
  "event": "check",
  "ip": {"$ref": "inputs.ip_addr"},
  "source": "LakeShark",
  "count": 3
}

For the mixed example, add a Text input called ip_addr. Its value is inserted as a typed string. Numbers, booleans, arrays, and objects likewise keep their JSON types, rather than becoming quoted JSON text.

The editor supports Insert input reference for convenience. JSON templates are size and nesting bounded. Arbitrary code, string-fragment interpolation, functions, missing references and undeclared inputs are rejected. Previously created POST ExecutionSets without a custom body continue to forward unbound inputs using the existing behavior.

Delete versus deactivate

Deactivate prevents further execution but leaves the function visible in the deactivated section. Delete removes it from the workspace list and makes it unavailable to connected AnswerSets. Deletion requires confirmation and cannot be undone in the UI. Historical action and management audit records remain retained for investigations and compliance.

Approval and activation

A valid public HTTPS endpoint can be saved as a definition without invoking it. Saving does not authorize execution. Invocation still requires action authorization, the configured host policy, DNS/IP validation and verified network egress. However, the beta GitOps configuration currently sets the hostname policy to * and the egress-verification gate to true, so an otherwise valid public hostname is not individually approved or denied by name in that declared configuration. Operators must replace the wildcard and verify the deployed setting before promising per-host restrictions. See HTTP execution security.

Test an action

From Executions, open Test action for an enabled function. LakeShark populates a typed example such as:

{"color":"green"}

Review the JSON and select Review and run action. You must confirm the real external HTTP call. This is not a dry run.

A successful response should satisfy the declared output fields, for example:

{"accepted":true}

The result shows the run ID and latency. Deactivating the function stops future action calls, including from connected AnswerSets.

For reusable Action bindings, use the end-to-end AnswerSet action guide or connection reference.

API

Authenticated operations use the Answers API origin. The separate /v1/execution-functions route avoids conflicts with the older decision-oriented ExecutionSet endpoints during the migration.

Method Route Required permission
GET /v1/execution-functions executions.read
POST /v1/execution-functions executions.write
GET /v1/execution-functions/{id} executions.read
POST /v1/execution-functions/{id}/invoke executions.evaluate
DELETE /v1/execution-functions/{id} executions.write (deactivate)
DELETE /v1/execution-functions/{id}/remove executions.write (delete)

Invocation request:

{"inputs":{"color":"green"}}

Invocation response:

{
  "run_id": "00000000-0000-0000-0000-000000000000",
  "output": {"accepted":true},
  "latency_ms": 150
}

The run ID and latency above are illustrative.

Creation additionally accepts optional body_template containing a JSON object. null retains the original automatic POST body behavior.

For the security model, including Kubernetes DNS, private IP denial, DNS pinning and the current wildcard-host caveat, see HTTP execution security. For complete request shapes and scopes, see HTTP ExecutionSets API.

Current boundaries

  • Reuse HTTP functions as ExecutionSet steps in an independent Flow Studio graph when that runtime is available. Publishing or saving a graph is not the same as invoking an action. Existing AnswerSet Manual and Automatic bindings follow separate authorization and lifecycle rules. Arbitrary $execute scripts and scheduling are not supported.
  • S2I/code repository execution is not yet supported.
  • Arbitrary expressions, dynamic hosts, partial path expressions, retries, and credential injection are not supported. Typed scalar query references and complete path-segment references are supported.
  • Operators should configure explicit outbound hostnames rather than the beta wildcard and verify the running policy. Network-enforced egress protection is required for production.