Sorry, no results found for "".
Returns a resource object of type workflow
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const workflowId = "uJzC2b6YQg-DW2A5edpQYQ";
const workflow = await client.workflows.find(workflowId);
// Check the 'Returned output' tab for the result ☝️ console.log(workflow);}
run();
{ id: "uJzC2b6YQg-DW2A5edpQYQ", name: "Approval by editors required", stages: [ { id: "waiting_for_review", name: "Waiting for review", initial: true }, ], api_key: "approval_by_editors",}