Skip to content

Poll a background lens run

GET
/api/v1/lenses/runs/{runId}
curl --request GET \
--url http://localhost:11044/api/v1/lenses/runs/example \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

Returns the redacted envelope: RUNNING while in flight, the final result once settled.

runId
required
string

The background run id carried by the RUNNING envelope

Not authenticated. The filter chain answers an ApiError; a principal that resolves to no user answers the refusal

One of:

A request-level refusal from the headless surface. Carries only the reason; an execution that ran and failed answers 200 with the outcome in its envelope instead

object
error
required

Why the request was refused, written to be shown: the unknown lens, view or run, the argument at fault, or the field the body should not have

string

Example generated

{
"error": "example"
}

No such run for this user

Media typeapplication/json

A request-level refusal from the headless surface. Carries only the reason; an execution that ran and failed answers 200 with the outcome in its envelope instead

object
error
required

Why the request was refused, written to be shown: the unknown lens, view or run, the argument at fault, or the field the body should not have

string

Example generated

{
"error": "example"
}