Sorry, no results found for "".
Returns a resource object 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 workflowId = "uJzC2b6YQg-DW2A5edpQYQ";7 8 const workflow = await client.workflows.find(workflowId);9 10 // Check the 'Returned output' tab for the result ☝️11 console.log(workflow);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}