execution_id. You can list your runs,
fetch any one of them including its full result long after the streaming
connection has closed, and delete the ones you no longer need.
A run is stored once and is shared between the API and the Bigdata.com app. A run
you start through the API appears in your run history in the app, and a run you
start in the app can be retrieved through the API. History is a Workflows feature.
The Research Agent does not store runs this way.
Which runs are stored
- A run submitted to
POST /v1/workflow/execute/asyncis always stored. That is how you read its result once the submit request has returned. See Running a workflow. - A run streamed from
POST /v1/workflow/executeis stored only if you execute it withpersistence_modeset toenabled. At its default ofdisabledthe run streams as normal but is not stored, and you cannot list or retrieve it afterward.
persistence_mode is fixed for the life of a conversation. A request that resumes
an earlier run must pass the same value it was created with, or the server returns
409. See Conversation continuity.List executions
GET /v1/workflow/executions returns your stored runs, newest first.
resultsis the list of executions. Each one hasexecution_id,name,status,template_id,inputs,is_public,date_created, andlast_updated.countis the number of matching executions.cursoris the pointer to the next page. Pass it back as thecursorquery parameter to fetch that page. It isnullon the last page.
limit sets the page size and defaults to
20. cursor fetches the next page. template_id lists only the runs of one
template.
Retrieve a single execution
GET /v1/workflow/executions/{execution_id} returns one run with its full result.
Use this to retrieve a run’s output after the streaming connection has closed.
events list uses the same message types documented in
Streaming responses. The
handler you use for a live stream can therefore replay a stored run without change.
events is null while a run is still pending or running.
Delete an execution
DELETE /v1/workflow/executions/{execution_id} removes a run and its result
permanently, and returns 204 No Content. Use it to decide how long your runs are
kept.
404. There is no undo.
Next steps
Running a workflow
Submit a run that outlives your connection, watch it live, and cancel it.
Streaming responses
Every message type a stored
events list can contain.