PromStack
🌐
start

docs:workflows.title

docs:workflows.desc

docs:workflows.features.list.title

docs:workflows.features.list.desc

docs:workflows.features.run.title

docs:workflows.features.run.desc

docs:workflows.features.nodes.title

docs:workflows.features.nodes.desc

docs:workflows.features.tracking.title

docs:workflows.features.tracking.desc

docs:workflows.endpoints

GET/api/sdk/workflows

docs:workflows.listWorkflows.desc

docs:workflows.listWorkflows.response

docs:workflows.listWorkflows.fielddocs:workflows.listWorkflows.typedocs:workflows.listWorkflows.description
idnumberdocs:workflows.fields.id
namestringdocs:workflows.fields.name
descriptionstring?docs:workflows.fields.description
is_activebooleandocs:workflows.fields.isActive
trigger_typestringdocs:workflows.fields.triggerType
node_countnumberdocs:workflows.fields.nodeCount
docs:workflows.listWorkflows.request
curl -X GET "https://promstack.com/api/sdk/workflows" \
  -H "Authorization: Bearer YOUR_API_KEY"
GET/api/sdk/workflows/:id

docs:workflows.getWorkflow.desc

docs:workflows.getWorkflow.nodeTypes

docs:workflows.listWorkflows.typedocs:workflows.listWorkflows.description
startdocs:workflows.nodeTypes.start
agentdocs:workflows.nodeTypes.agent
transformdocs:workflows.nodeTypes.transform
conditiondocs:workflows.nodeTypes.condition
enddocs:workflows.nodeTypes.end
POST/api/sdk/workflows/:id/run

docs:workflows.run.desc

docs:workflows.run.requestBody

docs:workflows.listWorkflows.fielddocs:workflows.listWorkflows.typedocs:workflows.listWorkflows.description
inputanydocs:workflows.fields.input

docs:workflows.listWorkflows.response

docs:workflows.listWorkflows.fielddocs:workflows.listWorkflows.typedocs:workflows.listWorkflows.description
runIdnumberdocs:workflows.fields.runId
statusstringdocs:workflows.fields.status
outputanydocs:workflows.fields.output
nodeResultsobjectdocs:workflows.fields.nodeResults

docs:workflows.sdk.title

docs:workflows.sdk.listTitle
import { PromStackClient } from '@promstack-1/sdk';

const client = new PromStackClient({
  apiKey: process.env.PROMSTACK_API_KEY!,
  baseUrl: 'https://promstack.com'
});

// List all workflows
const workflows = await client.getWorkflows();

// Get specific workflow details (with nodes/edges)
const workflow = await client.getWorkflow(1);
docs:workflows.sdk.runTitle
// Run with string input
const result = await client.runWorkflow(1, 'Blog post topic: Future of AI');

console.log('Run ID:', result.runId);
console.log('Status:', result.status);
console.log('Output:', result.output);

💡 docs:workflows.note.title

  1. docs:workflows.note.step1
  2. docs:workflows.note.step2
  3. docs:workflows.note.step3
  4. docs:workflows.note.step4
  5. docs:workflows.note.step5