The name of the workflow
The stages of the workflow
Workflow API key
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const workflow = await client.workflows.create({name: 'Approval by editors required',stages: [{id: 'waiting_for_review',name: 'Waiting for review',initial: true}],api_key: 'approval_by_editors'});console.log(workflow);}run();