POST
/
workflows
JavaScript
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": {}
}

Headers

authorization
string

Body

application/json

High-level definition of a multi-step document processing workflow.

Response

200
application/json

Successful Response

High-level definition of a multi-step document processing workflow.