Manage project workflows and automation runs.
Get a workflow run and its tasks
/organizations/{id}/projects/{projectId}/workflows/runs/{runId}import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: workflowRun } = await gc.projectWorkflows.getWorkflowRun({ id: "workflow_id", projectId: "project_id", runId: "run_id"});Dismiss a workflow run
/organizations/{id}/projects/{projectId}/workflows/runs/{runId}Soft-hide a run from the default list view. The run itself is preserved for audit and can still be fetched by ID or listed with includeDismissed=true.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: run } = await gc.projectWorkflows.dismissWorkflowRun({ id: "workflow_123", projectId: "project_123", runId: "run_123"});List workflow runs
/organizations/{id}/projects/{projectId}/workflows/runsReturns a paginated list of workflow runs for the project. Filter by status (pending/running/succeeded/failed/cancelled) or workflow type. Dismissed runs are hidden by default.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: workflowRuns } = await gc.projectWorkflows.listWorkflowRuns({ id: "workflow-id", projectId: "project-id"});Start a workflow run
/organizations/{id}/projects/{projectId}/workflows/runsPersists a new run of the given workflow type and enqueues its root tasks (tasks with no dependencies). The orchestrator will pick them up on its next tick.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: workflowRun } = await gc.projectWorkflows.createWorkflowRun({ id: "workflow-id", projectId: "project-id", data: {}});