Sorry, no results found for "".
Returns an array of resource objects of type workflow
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const workflows = await client.workflows.list();7 8 for (const workflow of workflows) {9 // Check the 'Returned output' tab for the result ☝️10 console.log(workflow);11 }12}13 14run();
1{2 id: "uJzC2b6YQg-DW2A5edpQYQ",3 name: "Approval by editors required",4 stages: [5 { id: "waiting_for_review", name: "Waiting for review", initial: true },6 ],7 api_key: "approval_by_editors",8}