Skip to main content
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.

name
string
required
owner_id
string
required

Organization / developer ID owning this workflow

steps
ConfiguredAction · object[]
required

Ordered list of actions to execute

Minimum length: 1
id
string
description
string | null
user_id
string | null

End-user ID when created in a narrowed scope

app_id
string | null

App ID when created inside an application context

system_metadata
object

Response

Successful Response

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

name
string
required
owner_id
string
required

Organization / developer ID owning this workflow

steps
ConfiguredAction · object[]
required

Ordered list of actions to execute

Minimum length: 1
id
string
description
string | null
user_id
string | null

End-user ID when created in a narrowed scope

app_id
string | null

App ID when created inside an application context

system_metadata
object
I