Skip to main content
GET
/
workflows
/
runs
/
{run_id}
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const workflowRun = await client.workflows.runs.retrieve('run_id');

console.log(workflowRun.document_id);
{
  "id": "<string>",
  "workflow_id": "<string>",
  "document_id": "<string>",
  "user_id": "<string>",
  "app_id": "<string>",
  "status": "queued",
  "started_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "results_per_step": [
    {}
  ],
  "final_output": {},
  "error": "<string>",
  "system_metadata": {}
}

Headers

authorization
string

Path Parameters

run_id
string
required

Response

Successful Response

Represents a concrete execution of a Workflow against a document.

workflow_id
string
required
document_id
string
required
id
string
user_id
string | null
app_id
string | null
status
enum<string>

Allowed status values for WorkflowRun objects.

Available options:
queued,
running,
completed,
failed
started_at
string<date-time> | null
completed_at
string<date-time> | null
results_per_step
Results Per Step · object[]
final_output
object | null
error
string | null
system_metadata
object
I