const { SiteClient } = require('datocms-client');async function run() {const client = new SiteClient('YOUR-API-TOKEN');const workflowId = 'approval_by_editors';const workflow = await client.workflow.find(workflowId);console.log(workflow);}run();
> node example.js{"id": "approval_by_editors","name": "Approval by editors required","stages": [{"id": "waiting_for_review","name": "Waiting for review","initial": true}]}