Runs
get/v1/workflows/{id}/runs/{run_id}/context

Get 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

https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/context
Production
AuthenticationRequiredBearerAuth

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.

Test Request

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.

Client Libraries
Shell
curl -sS -X GET \
  'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/context' \
  -H 'Authorization: Bearer <token>'
  • 200Context snapshot.

    application/json

    {
      "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

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "unauthorized",
      "code": "UNAUTHORIZED"
    }
  • 404The requested resource does not exist.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "workflow not found",
      "code": "NOT_FOUND"
    }