/ v1/ workflows/ {id}/ runs/ {run_ id}/ contextGet run context snapshot
Returns the current accumulated state of the run — all resolved step results and input values as a single object. Useful for inspecting what data is available to pending steps, or for debugging an unexpected result.
This is a snapshot of the Redis-backed context at the time of the request. The shape is { input: { ... }, steps: { <step-id>: { result: { ... } }, ... } }.
Server
API key obtained from the AgentRuntime dashboard. Pass as Authorization: Bearer <key> on every request.
Stored only in this page session. It is not saved to local storage.
Runs from your browser. Non-GET requests require explicit confirmation and tokens are sent only when you click Send.
Enter a bearer token to enable testing.
curl -sS -X GET \
'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/context' \
-H 'Authorization: Bearer <token>'Responses
- 200Context snapshot.
application/json
Example response
{ "input": { "message": "I need help cancelling my subscription", "customer_id": "cust_8821" }, "steps": { "classify": { "result": { "category": "billing", "confidence": 0.94 } }, "draft-reply": { "result": "Hi! I can help you cancel. Go to Account Settings → Billing → Cancel Plan." } } } - 401Missing or invalid Bearer token.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "unauthorized", "code": "UNAUTHORIZED" } - 404The requested resource does not exist.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "workflow not found", "code": "NOT_FOUND" }