tRPC v2 Workflows API
tRPC Endpoints
tRPC v2 Workflows API
Feature-gated workflow authoring and lifecycle APIs for staged workflow rollout
POST
tRPC v2 Workflows API
TheDocumentation Index
Fetch the complete documentation index at: https://docs.glider.fi/llms.txt
Use this file to discover all available pages before exploring further.
v2.workflows.* namespace is the staged workflow authoring surface for
agentic workflow drafts.
- Base endpoint:
POST /v1/trpc - Namespace:
v2.workflows.* - Auth: wallet session or API key
- Rollout: gated behind the
agentic_workflows_v1feature flag
Enabled Procedure Groups
v2.workflows.listv2.workflows.getv2.workflows.drafts.*liststartstartFromWorkflowgetanswercancel
v2.workflows.authoring.*validatepreviewcommit
v2.workflows.drafts.commitv2.workflows.createv2.workflows.updatev2.workflows.pausev2.workflows.resumev2.workflows.runNowv2.workflows.archivev2.workflows.monitor.*tickrecord
v2.workflows.executions.*listgetgetByWorkflow
Rollout Notes
- The namespace is exposed only when
agentic_workflows_v1=truefor the caller. authored_agent_sdkstill independently gates authored-source validation, preview, and commit flows.bounded_multi_asset_buysstill independently gates authored preview support for bounded multi-asset buy programs.
Lifecycle Notes
The current public lifecycle supports:- Starting and iterating on workflow drafts from free text or existing workflows. Authored drafts can now include a source-derived graph preview on the draft plan before commit.
- Validating, previewing, and committing authored workflow modules when the
authored SDK flag is enabled.
When
platform-apiis configured with the Cloudflare control-plane worker, authored commit now also activates the portfolio-scopedStrategyFacetruntime from the compiler-producedAuthoredAgentMetadataenvelope before the workflow is treated as committed. - Creating, updating, listing, and inspecting canonical workflows.
- Pausing, resuming, running, archiving, and monitoring workflows.
- Reading workflow execution history for canonical workflows.
create/update currently target the canonical workflow rail for:
rebalance_portfoliobuy_assetsell_assetcash_sweeprecurring_depositwithdraw_funds
v2.workflows.list supports workflow-kind filtering via kind and
trigger-kind filtering via triggerKind. Monitor discovery should use
triggerKind for trigger semantics such as price_condition and
authored_sdk.
This keeps the rollout centered on the top-level workflow surface flag, with
additional authored-SDK gating only for authored-module flows.
Workflow Detail Runtime Notes
v2.workflows.get exposes monitor-state runtime annotations for trigger-driven
workflows, and now overlays live automation-engine runtime when the committed
workflow execution ref points at an automation run.
monitorState.waitingUntilremains the source for time-based sleeps and wait windows.monitorState.waitingForEventTypeis the explicit event-driven wait surface:trigger_matchedfor armed trigger waitsexecution_completedfor in-flight execution continuations
monitorState.metadata.triggerEventKindandmonitorState.metadata.routeKeyremain auxiliary runtime annotations for the authored graph and workflow detail UI.currentAutomationRunis the canonical live authored-run overlay when the workflow has been dispatched intoautomation-engine.executionHistory[*].automationRunmirrors the same automation-engine handle per workflow execution ref, so UI surfaces can show step-level authored progress without re-queryingv2.automationRuns.*.