import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const workflow = await client.workflows.create({
name: 'name',
owner_id: 'owner_id',
steps: [{ action_id: 'action_id' }],
});
console.log(workflow.owner_id);
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"owner_id": "<string>",
"user_id": "<string>",
"app_id": "<string>",
"steps": [
{
"action_id": "<string>",
"parameters": {}
}
],
"system_metadata": {}
}
Create a new workflow.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const workflow = await client.workflows.create({
name: 'name',
owner_id: 'owner_id',
steps: [{ action_id: 'action_id' }],
});
console.log(workflow.owner_id);
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"owner_id": "<string>",
"user_id": "<string>",
"app_id": "<string>",
"steps": [
{
"action_id": "<string>",
"parameters": {}
}
],
"system_metadata": {}
}
High-level definition of a multi-step document processing workflow.
Successful Response
High-level definition of a multi-step document processing workflow.
Was this page helpful?