Skip to content

ReferenceResources

Workflows

A workflow is what happens to a case on its own: the checklist that starts it, then its steps, such as checking documents, screening the person, asking for more, deciding and telling the team. Build workflows from a template, from a description or step by step, set how much the reasoning agent decides, activate them, follow their runs, and move them to and from Bynn in Bynn’s own format.

Updated

Ask about this pageRead this page as Markdown

The workflow object

  • idstring

    The workflow’s id, starting with wf_.

  • namestring

    Its name.

  • statusenum

    draft, active, paused or archived. Only an active workflow starts runs.

  • collection_idstring

    The checklist whose completion starts a run.

  • stepsarray

    Its steps in order, each with its kind (trigger, check, extract, verify, screen, decide, route, notify, wait or request), what it does and the policies it checks against.

  • versioninteger

    The published version new runs start on. A run keeps the version it started on.

  • has_draftboolean

    Whether it has changes not activated yet.

  • reasoningobject

    How much the reasoning agent decides: suggest, decide_clear or automatic, the outcomes it may set, whether it may ask the person for more, and its instructions.

  • runsobject

    Its runs: in all, this week, under way and failed.

  • start_linkstring

    The link that starts a run when a person opens it.

A workflow
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "description": "Checks a mortgage applicant's documents, screens them and decides the clear cases.",
  "status": "active",
  "trigger": { "label": "Checklist complete", "detail": "Mortgage application" },
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "runs": { "total": 412, "this_week": 15, "under_way": 4, "failed": 0 },
  "last_run_at": "2026-11-27T08:51:12Z",
  "updated_at": "2026-11-18T13:20:44Z",
  "updated_by": "Ines Moreau",
  "origin": "template",
  "start_link": "https://r.kontiga.com/w/mortgage-review"
}

List workflows

Reads only

GET/v1/workflows

The steps cases run through on their own, with their status and runs.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows list
MCP tool
list_workflows
Returns
The workflows with their steps.

No parameters.

curl -X GET https://api.kontiga.com/v1/workflows \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows

Response, 200 OK
{
  "items": [
    {
      "id": "wf_3Kd8Pn2",
      "object": "workflow",
      "name": "Mortgage review",
      "status": "active",
      "autonomy": "acts",
      "runs_this_week": 15,
      "waiting_runs": 4
    },
    {
      "id": "wf_6Gn2Rt8",
      "object": "workflow",
      "name": "Tenancy check",
      "status": "draft",
      "autonomy": "suggests",
      "runs_this_week": 0,
      "waiting_runs": 0
    }
  ],
  "next_cursor": null
}

List workflows with their runs

Reads only

GET/v1/workflows/overview

Every workflow with what starts it, its steps, its version, how much the reasoning agent decides, and its runs this week.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows overview [--search <text>] [--status <draft|active|paused|archived>]
MCP tool
list_workflows_with_runs
Returns
Each workflow with its trigger, steps, version, reasoning settings and run counts.

Parameters

  • searchstring

    Words in the name or the description. At most 200 characters.

  • statusenum

    Only workflows in this status. One of draft, active, paused, archived.

curl -X GET "https://api.kontiga.com/v1/workflows/overview?status=active" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows/overview

Response, 200 OK
{
  "items": [{
      "id": "wf_3Kd8Pn2",
      "object": "workflow",
      "mode": "live",
      "name": "Mortgage review",
      "description": "Checks a mortgage applicant's documents, screens them and decides the clear cases.",
      "status": "active",
      "trigger": { "label": "Checklist complete", "detail": "Mortgage application" },
      "collection_id": "col_5Gk3Tm7",
      "steps": [
        { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
        { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
        { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
        { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
        { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
      ],
      "version": 7,
      "has_draft": false,
      "reasoning": {
        "level": "decide_clear",
        "outcomes": ["approved"],
        "may_request": true,
        "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
      },
      "runs": { "total": 412, "this_week": 15, "under_way": 4, "failed": 0 },
      "last_run_at": "2026-11-27T08:51:12Z",
      "updated_at": "2026-11-18T13:20:44Z",
      "updated_by": "Ines Moreau",
      "origin": "template",
      "start_link": "https://r.kontiga.com/w/mortgage-review"
    }],
  "next_cursor": null
}

Read a workflow

Reads only

GET/v1/workflows/{workflow_id}

One workflow’s steps in order, what each does with a case, and the policies each step checks against.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows get <workflow_id>
MCP tool
get_workflow
Returns
The workflow as it stands.

Parameters

  • workflow_idid (wf_)Required

    The workflow to read. In the path.

curl -X GET https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2 \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows/{workflow_id}

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "description": "Checks a mortgage applicant's documents, screens them and decides the clear cases.",
  "status": "active",
  "trigger": { "label": "Checklist complete", "detail": "Mortgage application" },
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "runs": { "total": 412, "this_week": 15, "under_way": 4, "failed": 0 },
  "last_run_at": "2026-11-27T08:51:12Z",
  "updated_at": "2026-11-18T13:20:44Z",
  "updated_by": "Ines Moreau",
  "origin": "template",
  "start_link": "https://r.kontiga.com/w/mortgage-review"
}

Read a workflow in full

Reads only

GET/v1/workflows/{workflow_id}/overview

One workflow: its steps with the policies each checks against, the reasoning agent’s settings, its versions and changes, and what stops it being activated.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows describe <workflow_id>
MCP tool
describe_workflow
Returns
The workflow with its steps, reasoning settings, history and problems.

Parameters

  • workflow_idid (wf_)Required

    The workflow to read in full. In the path.

curl -X GET https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/overview \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows/{workflow_id}/overview

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

List workflow runs

Reads only

GET/v1/workflow_runs

The runs of the workspace’s workflows, newest first: the case, where each run is or how it ended, and the outcome.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflow-runs list [--workflow-id <workflow_id>] [--state <running|waiting|completed|failed>] [--limit <n>]
MCP tool
list_workflow_runs
Returns
The runs, newest first, each with its case, step, state and outcome.

Parameters

  • workflow_idid (wf_)

    Only the runs of this workflow.

  • stateenum

    Only runs in this state. One of running, waiting, completed, failed.

  • limitinteger

    How many to answer, 1 to 200.

curl -X GET "https://api.kontiga.com/v1/workflow_runs?workflow_id=wf_3Kd8Pn2&limit=50" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflow_runs

Response, 200 OK
{
  "items": [
    {
      "id": "run_4Jc7Mq2",
      "object": "workflow_run",
      "workflow_id": "wf_3Kd8Pn2",
      "version": 7,
      "case_id": "case_7Kq2Xw9",
      "case_reference": "APP-20418",
      "case_title": "Mortgage application, 14 Harbour Row",
      "person_name": "Marta Kowalczyk",
      "state": "waiting",
      "step_id": "stp_8Bc2Gm4",
      "step_label": "Decide",
      "status": "Waiting for a person: a finding on the October payslip",
      "outcome": null,
      "decided_by": null,
      "started_at": "2026-11-24T09:42:03Z",
      "ended_at": null
    },
    {
      "id": "run_9Ra1Kv6",
      "object": "workflow_run",
      "workflow_id": "wf_3Kd8Pn2",
      "version": 7,
      "case_id": "case_2Wq5Hn8",
      "case_reference": "APP-20397",
      "case_title": "Mortgage application, 3 Quay Street",
      "person_name": "Rowan Example",
      "state": "completed",
      "step_id": null,
      "step_label": null,
      "status": "Approved by the reasoning agent",
      "outcome": "approved",
      "decided_by": "Reasoning agent",
      "started_at": "2026-11-23T15:10:44Z",
      "ended_at": "2026-11-23T15:12:30Z"
    }
  ],
  "next_cursor": null
}

List workflow templates

Reads only

GET/v1/workflow_templates

The workflow templates Kontiga keeps, for lenders, insurers, letting agents, onboarding and hiring; choosing one makes a draft copy.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflow-templates list
MCP tool
list_workflow_templates
Returns
Each template with who it is for and its steps.

No parameters.

curl -X GET https://api.kontiga.com/v1/workflow_templates \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflow_templates

Response, 200 OK
{
  "items": [
    {
      "id": "wft_mortgage-review",
      "object": "workflow_template",
      "name": "Mortgage review",
      "description": "Collect, check and screen a mortgage applicant, then decide.",
      "segment": "Lenders",
      "steps": [
        { "kind": "trigger", "label": "Checklist complete", "detail": "When every required item is in" },
        { "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict" },
        { "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions and watch lists" },
        { "kind": "decide", "label": "Decide", "detail": "A person decides" }
      ]
    },
    {
      "id": "wft_motor-claim",
      "object": "workflow_template",
      "name": "Motor claim",
      "description": "Collect the claim documents and photos, check them and route large claims.",
      "segment": "Insurers",
      "steps": [
        { "kind": "trigger", "label": "Claim submitted", "detail": "When the claimant sends the form" },
        { "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict" },
        { "kind": "route", "label": "Large claims", "detail": "Over 5,000 to a senior handler" }
      ]
    }
  ],
  "next_cursor": null
}

Create a workflow

Changes data

POST/v1/workflows

Makes a draft workflow from a template, from the steps of a description, or blank to build step by step. A draft starts no runs until it is activated.

Who may
Owner and Admin
CLI
kontiga workflows create --name <name> --from <template|description|canvas> [--template-id <id>] [--description <text>] [--collection-id <col_id>] [--steps <json>] [--nodes <json>] [--edges <json>] [--settings <json>] [--explanations <json>]
MCP tool
create_workflow
Returns
The new draft workflow.

Parameters

  • namestringRequired

    Its name. At most 80 characters.

  • fromenumRequired

    template copies a template; description saves what the planner proposed; canvas starts blank with a start link and an Approve step.

  • template_idid (wft_)

    For template: the template to copy.

  • descriptionstring

    What it is for. At most 400 characters.

  • collection_idid (col_)

    The checklist whose completion starts a run.

  • stepsarray of object

    For description: the steps in order, each with kind, label, detail and policy_ids. At most 30 items.

  • nodesarray of object

    For description: the canvas’s steps in Bynn’s format, {id, type, position, data}. At most 100 items.

  • edgesarray of object

    For description: the canvas’s connections, {id, source, target}. At most 200 items.

  • settingsrecord

    What the end customer’s page shows: title, subtitle and theme.

  • explanationsrecord

    Why each step is there, by node id, as the planner wrote it.

curl -X POST https://api.kontiga.com/v1/workflows \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Mortgage review",
    "from": "template",
    "template_id": "wft_mortgage-review",
    "collection_id": "col_5Gk3Tm7"
  }'

POST /v1/workflows

Response, 201 Created
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Change a workflow

Changes data

PATCH/v1/workflows/{workflow_id}

Saves a workflow’s name, description and steps as a draft. An active workflow keeps running its published version until the draft is activated.

Who may
Owner and Admin
CLI
kontiga workflows update <workflow_id> [--name <name>] [--description <text>] [--collection-id <col_id>] [--steps <json>]
MCP tool
update_workflow
Returns
The workflow with its draft saved.

Parameters

  • workflow_idid (wf_)Required

    The workflow to change. Changes are saved as a draft; runs keep their version until the draft is activated. In the path.

  • namestring

    A new name. At most 80 characters.

  • descriptionstring

    A new description. At most 400 characters.

  • collection_idid (col_)

    The checklist whose completion starts a run.

  • stepsarray of object

    The steps in order. A step that keeps its id keeps its runs and its policy links. At most 30 items.

curl -X PATCH https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2 \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "steps": [
      {
        "kind": "trigger",
        "label": "Checklist complete",
        "detail": "When every required item of Mortgage application is in"
      },
      {
        "kind": "check",
        "label": "Check every document",
        "detail": "Changes and fraud, with the verdict",
        "policy_ids": [
          "pol_8Hm3Qr5"
        ]
      },
      {
        "kind": "decide",
        "label": "Decide",
        "detail": "A person decides"
      }
    ]
  }'

PATCH /v1/workflows/{workflow_id}

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Save a workflow's canvas

Changes data

PUT/v1/workflows/{workflow_id}/definition

Saves the steps and connections of the canvas as the draft, in Bynn’s format. New secret values are taken out of the steps and kept apart. An active workflow keeps running its published version until the draft is activated.

Who may
Owner and Admin
CLI
kontiga workflows save-definition <workflow_id> --nodes <json> --edges <json> [--settings <json>] [--name <name>] [--policies <json>]
MCP tool
save_workflow_definition
Returns
The workflow with its draft saved and its problems listed.

Parameters

  • workflow_idid (wf_)Required

    The workflow whose canvas to save as its draft. In the path.

  • nodesarray of objectRequired

    The steps, {id, type, position, data}, up to 100.

  • edgesarray of objectRequired

    The connections, {id, source, target, sourceHandle, targetHandle}, up to 200.

  • settingsrecord

    What the end customer’s page shows: title, subtitle and theme.

  • namestring

    A new name. At most 120 characters.

  • policiesrecord

    The policies each step checks against, by node id, up to 5 each.

curl -X PUT https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/definition \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "nodes": [
      {
        "id": "start",
        "type": "start",
        "position": {
          "x": 0,
          "y": 120
        },
        "data": {
          "label": "Start"
        }
      },
      {
        "id": "docs",
        "type": "documentCollection",
        "position": {
          "x": 340,
          "y": 120
        },
        "data": {
          "label": "Your documents",
          "collectionId": "col_5Gk3Tm7"
        }
      },
      {
        "id": "ok",
        "type": "approve",
        "position": {
          "x": 680,
          "y": 120
        },
        "data": {
          "label": "APPROVE"
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "start",
        "target": "docs"
      },
      {
        "id": "e2",
        "source": "docs",
        "target": "ok"
      }
    ]
  }'

PUT /v1/workflows/{workflow_id}/definition

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Set what the end customer's page shows

Changes data

PATCH/v1/workflows/{workflow_id}/settings

The title and the line under it on the end customer’s page, and its colour theme (Bynn’s workflow properties).

Who may
Owner and Admin
CLI
kontiga workflows set-properties <workflow_id> [--title <text>] [--subtitle <text>] [--theme <default|professional|success|warning|danger|purple|teal>]
MCP tool
set_workflow_properties
Returns
The workflow with its page settings.

Parameters

  • workflow_idid (wf_)Required

    The workflow. In the path.

  • titlestring

    The title at the top of the end customer’s page. At most 120 characters.

  • subtitlestring

    The line under it, shown as written. One sentence reads best. At most 2,000 characters.

  • themeenum

    The page’s two colours. One of default, professional, success, warning, danger, purple, teal.

curl -X PATCH https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/settings \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Your mortgage application",
    "subtitle": "Send us a few documents and we will be in touch.",
    "theme": "professional"
  }'

PATCH /v1/workflows/{workflow_id}/settings

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Set how much the reasoning agent decides

Changes data

PATCH/v1/workflows/{workflow_id}/reasoning

The reasoning agent’s level on one workflow: suggest only, decide the clear cases and send the rest to people, or fully automatic; with the outcomes it may set and its instructions.

Who may
Owner and Admin
CLI
kontiga workflows set-reasoning <workflow_id> --level <suggest|decide_clear|automatic> [--outcomes <approved,rejected>] [--may-request] [--instructions <text>]
MCP tool
set_workflow_reasoning
Returns
The workflow with its reasoning settings.

Parameters

  • workflow_idid (wf_)Required

    The workflow. In the path.

  • levelenumRequired

    suggest: it recommends and a person decides every case. decide_clear: it decides the cases it is sure of and sends the rest to people. automatic: it decides every case. A case with an open policy finding always waits for a person.

  • outcomesarray of enum

    The outcomes it may set itself. One of approved, rejected. At most 2 items.

  • may_requestboolean

    Let it ask the end customer for a missing or better document.

  • instructionsstring

    Its rules, in your own words. At most 4,000 characters.

curl -X PATCH https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/reasoning \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "level": "decide_clear",
    "outcomes": [
      "approved"
    ],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  }'

PATCH /v1/workflows/{workflow_id}/reasoning

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Activate a workflow

Changes data

POST/v1/workflows/{workflow_id}/activate

Publishes the workflow’s draft as a new version, or resumes a paused one, so new cases start runs on it. Refused with every problem listed.

Who may
Owner and Admin
CLI
kontiga workflows activate <workflow_id> [--note <text>]
MCP tool
activate_workflow
Returns
The workflow, active, on its new version.

Parameters

  • workflow_idid (wf_)Required

    The workflow to activate. It is refused with every problem listed when its draft cannot run. In the path.

  • notestring

    What changed, kept with the version. At most 200 characters.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/activate \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "Adds the email to the mortgage team."
  }'

POST /v1/workflows/{workflow_id}/activate

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Pause a workflow

Changes data

POST/v1/workflows/{workflow_id}/pause

Stops new cases starting runs on the workflow. Runs under way finish on the version they started on.

Who may
Owner and Admin
CLI
kontiga workflows pause <workflow_id>
MCP tool
pause_workflow
Returns
The workflow, paused.

Parameters

  • workflow_idid (wf_)Required

    The workflow to pause. Runs under way finish. In the path.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/pause \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/workflows/{workflow_id}/pause

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Invite a person to start a workflow

Changes data

POST/v1/workflows/{workflow_id}/invitations

Sends one person the workflow’s start link by email or SMS, in the language you choose, with your own reference to find the run again. The link is valid for 30 days.

Who may
Owner and Admin
CLI
kontiga workflows invite <workflow_id> --channel <email|sms> --recipient <address> [--reference <text>] [--locale <en|pt|es|ar|zht|zhs|fr|de|ja|hi|ru|sv>]
MCP tool
invite_to_workflow
Returns
The invitation, with its link and when it expires.

Parameters

  • workflow_idid (wf_)Required

    An active workflow with a start link. In the path.

  • channelenumRequired

    How the link reaches them. One of email, sms.

  • recipientstringRequired

    Their email address, or their phone number with its country code. At most 255 characters.

  • referencestring

    Your own reference, given back with the run. At most 255 characters.

  • localeenum

    The language of the message. One of en, pt, es, ar, zht, zhs, fr, de, ja, hi, ru, sv.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/invitations \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "email",
    "recipient": "saoirse.brennan@mailbox.example",
    "reference": "CUST-55201",
    "locale": "en"
  }'

POST /v1/workflows/{workflow_id}/invitations

Response, 201 Created
{
  "id": "wfi_5Hb8Ns3",
  "object": "workflow_invitation",
  "workflow_id": "wf_3Kd8Pn2",
  "channel": "email",
  "recipient": "saoirse.brennan@mailbox.example",
  "reference": "CUST-55201",
  "locale": "en",
  "status": "sent",
  "url": "https://r.kontiga.com/w/mortgage-review?i=wfi_5Hb8Ns3",
  "created_at": "2026-11-27T11:05:00Z",
  "expires_at": "2026-12-27T11:05:00Z",
  "sent_by": "Ines Moreau"
}

Duplicate a workflow

Changes data

POST/v1/workflows/{workflow_id}/duplicate

Makes a draft copy of a workflow, its steps, policies and reasoning settings included, to change without touching the original. A workflow imported from Bynn keeps what the import brought (its metadata, row connections and other keys, and the collections its steps ask for), so the copy exports as the original does, under its own id.

Who may
Owner and Admin
CLI
kontiga workflows duplicate <workflow_id> [--name <name>]
MCP tool
duplicate_workflow
Returns
The new draft copy.

Parameters

  • workflow_idid (wf_)Required

    The workflow to copy. In the path.

  • namestring

    The copy’s name. At most 80 characters.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/duplicate \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Mortgage review, self-employed"
  }'

POST /v1/workflows/{workflow_id}/duplicate

Response, 201 Created
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Archive a workflow

Changes data

POST/v1/workflows/{workflow_id}/archive

Retires a workflow: it starts no run by link, API or console. Runs under way finish, and its runs and versions stay readable.

Who may
Owner and Admin
CLI
kontiga workflows archive <workflow_id>
MCP tool
archive_workflow
Returns
The workflow, archived.

Parameters

  • workflow_idid (wf_)Required

    The workflow to retire. In the path.

curl -X POST https://api.kontiga.com/v1/workflows/wf_6Gn2Rt8/archive \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/workflows/{workflow_id}/archive

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Restore an archived workflow

Changes data

POST/v1/workflows/{workflow_id}/restore

Takes a workflow out of the archive so it can be changed again. It comes back paused on its last version, or as a draft if it was never activated; activate it to start runs.

Who may
Owner and Admin
CLI
kontiga workflows restore <workflow_id>
MCP tool
restore_workflow
Returns
The workflow, paused or a draft.

Parameters

  • workflow_idid (wf_)Required

    An archived workflow. In the path.

curl -X POST https://api.kontiga.com/v1/workflows/wf_6Gn2Rt8/restore \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/workflows/{workflow_id}/restore

Response, 200 OK
{
  "id": "wf_3Kd8Pn2",
  "object": "workflow",
  "mode": "live",
  "name": "Mortgage review",
  "status": "active",
  "collection_id": "col_5Gk3Tm7",
  "steps": [
    { "id": "stp_1Hq4Va7", "kind": "trigger", "label": "Checklist complete", "detail": "When every required item of Mortgage application is in", "policy_ids": [] },
    { "id": "stp_5Kw9Ld2", "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "policy_ids": ["pol_8Hm3Qr5"] },
    { "id": "stp_3Nr6Ty8", "kind": "screen", "label": "Screen the applicant", "detail": "Sanctions, politically exposed persons and watch lists", "policy_ids": [] },
    { "id": "stp_8Bc2Gm4", "kind": "decide", "label": "Decide", "detail": "The reasoning agent decides the clear cases; the rest go to the mortgage team", "policy_ids": [] },
    { "id": "stp_6Px1Sw9", "kind": "notify", "label": "Tell the team", "detail": "Email mortgages@harbourline.example when a case needs a person", "policy_ids": [] }
  ],
  "version": 7,
  "has_draft": false,
  "reasoning": {
    "level": "decide_clear",
    "outcomes": ["approved"],
    "may_request": true,
    "instructions": "Approve only when income covers the repayment at least three times. Send every self-employed applicant to a person."
  },
  "history": [
    { "at": "2026-11-18T13:20:44Z", "who": "Ines Moreau", "what": "Activated version 7", "version": 7 },
    { "at": "2026-11-18T13:12:09Z", "who": "Ines Moreau", "what": "Added the step Tell the team", "version": null }
  ],
  "problems": [],
  "definition": {
    "nodes": [
      { "id": "start", "type": "start", "position": { "x": 0, "y": 120 }, "data": { "label": "Start" } },
      { "id": "docs", "type": "documentCollection", "position": { "x": 340, "y": 120 }, "data": { "label": "Your documents", "collectionId": "col_5Gk3Tm7" } },
      { "id": "ok", "type": "approve", "position": { "x": 680, "y": 120 }, "data": { "label": "APPROVE" } }
    ],
    "edges": [
      { "id": "e1", "source": "start", "target": "docs" },
      { "id": "e2", "source": "docs", "target": "ok" }
    ],
    "settings": { "title": "Your mortgage application", "subtitle": "Send us a few documents and we will be in touch.", "theme": "professional" },
    "secrets": [],
    "policies": { "docs": ["pol_8Hm3Qr5"] },
    "explanations": {}
  },
  "start_link": "https://r.kontiga.com/w/mortgage-review",
  "imported": null,
  "invitations": []
}

Delete a workflow

Changes data

DELETE/v1/workflows/{workflow_id}

Removes a workflow from the workspace. Approvals its runs are waiting on are cancelled; the cases it ran keep their documents, checks and outcomes.

Who may
Owner and Admin
CLI
kontiga workflows delete <workflow_id>
MCP tool
delete_workflow
Returns
The workflow removed, and how many waiting approvals were cancelled.

Parameters

  • workflow_idid (wf_)Required

    The workflow to remove. Its cases keep their documents, checks and outcomes. In the path.

curl -X DELETE https://api.kontiga.com/v1/workflows/wf_6Gn2Rt8 \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

DELETE /v1/workflows/{workflow_id}

Response, 200 OK
{
  "id": "wf_6Gn2Rt8",
  "object": "deleted_workflow",
  "name": "Tenancy check",
  "deleted": true,
  "cancelled_approvals": 0
}

Import a workflow from Bynn

Changes data

POST/v1/workflows/import

Reads a Bynn workflow definition (as Bynn’s API returns it, as its editor exports it, or as it is stored) into a draft. Older key shapes are converted, and secret values are taken out of the steps and kept apart.

Who may
Owner and Admin
CLI
kontiga workflows import --definition @workflow.json [--workflow-id <workflow_id>] [--name <name>]
MCP tool
import_bynn_workflow
Returns
The draft workflow, and what the import converted or kept as secrets.

Parameters

  • definitionstringRequired

    The workflow’s JSON: as Bynn’s API returns it, as its editor exports a file, or as Bynn stores it. The CLI reads it from the file you give. At most 1,100,000 characters.

  • workflow_idid (wf_)

    A workflow whose draft it replaces. A new draft is made when left out.

  • namestring

    A name for it, in place of the file’s. At most 120 characters.

curl -X POST https://api.kontiga.com/v1/workflows/import \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "definition": "{\"name\":\"Older claims workflow\",\"nodes\":[{\"id\":\"s\",\"type\":\"start\",\"position\":{\"x\":0,\"y\":120},\"data\":{\"label\":\"Start\"}}],\"connections\":[]}"
  }'

POST /v1/workflows/import

Response, 200 OK
{
  "object": "import_result",
  "shape": "file",
  "notes": [
    { "level": "change", "message": "The older key Claim Amount was read as claim_amount.", "node_id": "claim_form" },
    { "level": "warning", "message": "The header value of Send to the ledger is kept as a secret.", "node_id": "send_ledger" }
  ],
  "workflow": {
    "id": "wf_7Tm4Bx1",
    "object": "workflow",
    "name": "Older claims workflow",
    "status": "draft",
    "version": null,
    "has_draft": true,
    "origin": "import",
    "problems": []
  }
}

Export a workflow in Bynn's format

Changes data

POST/v1/workflows/{workflow_id}/export

The workflow’s saved draft as Bynn’s API returns it, as its editor exports a file, or as Bynn stores it. Secret values go in only when asked for; otherwise each is written as [hidden].

Who may
Owner and Admin
CLI
kontiga workflows export <workflow_id> --shape <api|row|file> [--include-secrets] > workflow.json
MCP tool
export_bynn_workflow
Returns
The JSON text, its file name, and how many secrets it holds.

Parameters

  • workflow_idid (wf_)Required

    The workflow to export. In the path.

  • shapeenumRequired

    api as Bynn’s API returns it, file as its editor exports it, row as Bynn stores it.

  • include_secretsboolean

    Put the secret values in. Each is written as [hidden] otherwise.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/export \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "shape": "file"
  }'

POST /v1/workflows/{workflow_id}/export

Response, 200 OK
{
  "object": "export",
  "filename": "mortgage-review.json",
  "shape": "file",
  "json": "{\"name\":\"Mortgage review\",\"nodes\":[{\"id\":\"start\",\"type\":\"start\"}],\"connections\":[]}",
  "secrets": 1,
  "masked": true
}

Draft a workflow from a description

Changes data

POST/v1/workflows/plan

Turns a few sentences about what should happen to a case into proposed steps, each with its reason. Nothing is saved.

Who may
Owner and Admin
CLI
kontiga workflows plan --description <text> [--language <ISO 639-1 code, e.g. it>] [--language-name <English name>] [--answers <json>]
MCP tool
plan_workflow
Returns
A proposed name, the checklist that starts it and the steps, each with its reason, the questions it has, and any collection it drafted; nothing is saved.

Parameters

  • descriptionstringRequired

    What should happen to a case: what arrives, what is checked, who decides and who is told. At most 2,000 characters.

  • languagestring

    The language of the texts the end customer reads, such as en or pt-BR.

  • language_namestring

    The language’s English name, needed only for a tag that cannot be named.

  • answersrecord

    Answers to the questions an earlier call asked, as {question id: chosen value}. Call again with them.

curl -X POST https://api.kontiga.com/v1/workflows/plan \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "New tenants send their ID and three payslips. Check them, and email the letting team when everything is in.",
    "language": "en"
  }'

POST /v1/workflows/plan

Response, 200 OK
{
  "object": "workflow_proposal",
  "name": "Tenancy check",
  "description": "Checks a new tenant's ID and income, and tells the letting team.",
  "collection_id": null,
  "steps": [
    { "kind": "trigger", "label": "Checklist complete", "detail": "When the tenant has sent everything", "why": "The tenant's documents start the check." },
    { "kind": "check", "label": "Check every document", "detail": "Changes and fraud, with the verdict", "why": "Payslips are the documents most often changed." },
    { "kind": "notify", "label": "Tell the letting team", "detail": "Email lettings@harbourline.example", "why": "You asked for the team to be told." }
  ],
  "notes": ["No checklist matches yet: one is drafted for you below."],
  "definition": { "name": "Tenancy check", "subtitle": "Send us a few documents for your new home.", "nodes": [], "edges": [] },
  "explanations": {},
  "language": "en",
  "language_name": "English",
  "questions": [],
  "new_collections": [
    { "ref": "new:tenant-documents", "name": "Tenant documents", "documents": 2 }
  ]
}

Propose changes to a workflow

Changes data

POST/v1/workflows/{workflow_id}/improve

Turns a request in words into a set of changes to the canvas (steps to add, change, connect or remove), each with its reason. Nothing is saved: the member keeps the changes they want.

Who may
Owner and Admin
CLI
kontiga workflows improve <workflow_id> --request <text> [--nodes <json>] [--edges <json>]
MCP tool
improve_workflow
Returns
The proposed changes, each with its reason; nothing is saved.

Parameters

  • workflow_idid (wf_)Required

    The workflow to change. In the path.

  • requeststringRequired

    What should change, in your own words. At most 2,000 characters.

  • nodesarray of object

    The canvas’s steps with unsaved edits. At most 100 items.

  • edgesarray of object

    The canvas’s connections with unsaved edits. At most 200 items.

curl -X POST https://api.kontiga.com/v1/workflows/wf_3Kd8Pn2/improve \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request": "Email our team when a case needs a person."
  }'

POST /v1/workflows/{workflow_id}/improve

Response, 200 OK
{
  "object": "change_set",
  "summary": "Email the mortgage team when a case needs a person.",
  "changes": [
    {
      "op": "add_node",
      "node": { "id": "notify_team", "type": "email", "position": { "x": 1020, "y": 300 }, "data": { "label": "Tell the team", "parameters": { "recipient": "mortgages@harbourline.example", "subject": "Case {dossierID} needs a person", "body": "Case {dossierID} needs a person to look at it." } } },
      "reason": "You asked for the team to be told."
    },
    { "op": "connect", "source": "decide", "source_handle": "needs_attention", "target": "notify_team", "reason": "Only cases that need a person send the email." }
  ],
  "notes": []
}

Start the workflow planner

Changes data

POST/v1/workflows/planner/sessions

Starts Build with AI (workflow_plan) or Improve with AI (workflow_improve) as a session: it works in steps you can follow, may stop to ask one to four questions, and proposes a workflow or a change set to keep, revise or leave. Nothing is saved until the proposal is kept and the draft saved.

Who may
Owner and Admin
CLI
kontiga workflows planner start --mode <workflow_plan|workflow_improve> --request <text> [--language <tag>] [--language-name <name>] [--workflow-id <wf_id>] [--nodes <json>] [--edges <json>]
MCP tool
start_workflow_planner
Returns
The session, working: its id, its first events and its usage. Read it with workflows.planner_session until it waits, proposes or ends.

Parameters

  • modeenumRequired

    workflow_plan drafts a new workflow; workflow_improve proposes changes to one.

  • requeststringRequired

    What to draft or change, in your own words. At most 4,000 characters.

  • languagestring

    The language of the texts the end customer reads.

  • language_namestring

    The language’s English name.

  • workflow_idid (wf_)

    For workflow_improve: the workflow.

  • nodesarray of object

    For workflow_improve: the canvas’s steps with unsaved edits. At most 100 items.

  • edgesarray of object

    For workflow_improve: the canvas’s connections with unsaved edits. At most 200 items.

curl -X POST https://api.kontiga.com/v1/workflows/planner/sessions \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "workflow_plan",
    "request": "New tenants send their ID and three payslips. Check them, and email the letting team when everything is in.",
    "language": "en"
  }'

POST /v1/workflows/planner/sessions

Response, 201 Created
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "working",
  "revision": 0,
  "events": [
    { "seq": 1, "kind": "start", "text": "Reading the request", "at": "2026-11-27T10:50:01Z" }
  ],
  "questions": null,
  "proposal": null,
  "made": [],
  "usage": { "steps": 1, "max_steps": 30, "input_tokens": 3120, "cached_tokens": 0, "output_tokens": 88, "thought_tokens": 0 },
  "error": null,
  "created_at": "2026-11-27T10:50:01Z",
  "updated_at": "2026-11-27T10:50:02Z"
}

Read a workflow planner session

Reads only

GET/v1/workflows/planner/sessions/{session_id}

Where a workflow planner session stands: working with its progress and usage, waiting on questions, a proposal to review, or ended, with its error when it failed.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows planner get <session_id> [--since <seq>]
MCP tool
get_workflow_planner_session
Returns
Its status, the events after since, the questions while it waits, the proposal, the collections made on keeping it, the usage (steps of at most 30, tokens) and the error.

Parameters

  • session_idid (wfa_)Required

    The session to read. In the path.

  • sinceintegerDefault 0

    Answer only the events after this one.

curl -X GET "https://api.kontiga.com/v1/workflows/planner/sessions/wfa_2Qp8Ld5?since=4" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows/planner/sessions/{session_id}

Response, 200 OK
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "proposed",
  "revision": 1,
  "events": [
    { "seq": 5, "kind": "proposal", "text": "Proposed a workflow of 3 steps", "at": "2026-11-27T10:51:40Z" }
  ],
  "questions": null,
  "proposal": {
    "kind": "workflow",
    "name": "Tenancy check",
    "steps": [
      { "kind": "trigger", "label": "Checklist complete" },
      { "kind": "check", "label": "Check every document" },
      { "kind": "notify", "label": "Tell the letting team" }
    ],
    "new_collections": [{ "ref": "new:tenant-documents", "name": "Tenant documents" }]
  },
  "made": [],
  "usage": { "steps": 5, "max_steps": 30, "input_tokens": 15480, "cached_tokens": 8192, "output_tokens": 1820, "thought_tokens": 0 },
  "error": null,
  "updated_at": "2026-11-27T10:51:40Z"
}

Answer the workflow planner

Changes data

POST/v1/workflows/planner/sessions/{session_id}/answer

Answers the questions a waiting session asked, each with a listed choice or in your own words; the session works on with them.

Who may
Owner and Admin
CLI
kontiga workflows planner answer <session_id> --answers <json>
MCP tool
answer_workflow_planner
Returns
The session, working again with the answers.

Parameters

  • session_idid (wfa_)Required

    A session that is waiting. In the path.

  • answersarray of objectRequired

    One answer per question: {id, choice} with one of its options, or {id, text} in your own words. At most 10 items.

curl -X POST https://api.kontiga.com/v1/workflows/planner/sessions/wfa_2Qp8Ld5/answer \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "answers": [
      {
        "id": "q1",
        "choice": "The letting team decides"
      }
    ]
  }'

POST /v1/workflows/planner/sessions/{session_id}/answer

Response, 200 OK
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "working",
  "revision": 0,
  "events": [
    { "seq": 1, "kind": "start", "text": "Reading the request", "at": "2026-11-27T10:50:01Z" }
  ],
  "questions": null,
  "proposal": null,
  "made": [],
  "usage": { "steps": 1, "max_steps": 30, "input_tokens": 3120, "cached_tokens": 0, "output_tokens": 88, "thought_tokens": 0 },
  "error": null,
  "created_at": "2026-11-27T10:50:01Z",
  "updated_at": "2026-11-27T10:50:02Z"
}

Ask the workflow planner for changes

Changes data

POST/v1/workflows/planner/sessions/{session_id}/revise

Sends a proposal back with what should change; the session works on it and proposes again.

Who may
Owner and Admin
CLI
kontiga workflows planner revise <session_id> --message <text>
MCP tool
revise_workflow_planner
Returns
The session, working again on the revision.

Parameters

  • session_idid (wfa_)Required

    A session that has proposed. In the path.

  • messagestringRequired

    What should change in the proposal. At most 2,000 characters.

curl -X POST https://api.kontiga.com/v1/workflows/planner/sessions/wfa_2Qp8Ld5/revise \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Screen the tenant too."
  }'

POST /v1/workflows/planner/sessions/{session_id}/revise

Response, 200 OK
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "working",
  "revision": 0,
  "events": [
    { "seq": 1, "kind": "start", "text": "Reading the request", "at": "2026-11-27T10:50:01Z" }
  ],
  "questions": null,
  "proposal": null,
  "made": [],
  "usage": { "steps": 1, "max_steps": 30, "input_tokens": 3120, "cached_tokens": 0, "output_tokens": 88, "thought_tokens": 0 },
  "error": null,
  "created_at": "2026-11-27T10:50:01Z",
  "updated_at": "2026-11-27T10:50:02Z"
}

Keep the workflow planner's proposal

Changes data

POST/v1/workflows/planner/sessions/{session_id}/accept

Keeps the proposal and ends the session. The collections a drafted workflow asks for are made now (all of them, or the ones named), and its steps take their ids. Saving the workflow stays the member’s save.

Who may
Owner and Admin
CLI
kontiga workflows planner accept <session_id> [--collection-refs <ref,ref>]
MCP tool
accept_workflow_planner
Returns
The session, finished, with the collections it made and the proposal’s steps naming them.

Parameters

  • session_idid (wfa_)Required

    A session that has proposed. Keeping it saves no workflow: create or save it after. In the path.

  • collection_refsarray of string

    The drafted collections to make now, by their new: reference. Every one when left out. At most 10 items.

curl -X POST https://api.kontiga.com/v1/workflows/planner/sessions/wfa_2Qp8Ld5/accept \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/workflows/planner/sessions/{session_id}/accept

Response, 200 OK
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "finished",
  "events": [
    { "seq": 6, "kind": "accepted", "text": "Proposal kept", "at": "2026-11-27T10:52:15Z" }
  ],
  "made": [{ "ref": "new:tenant-documents", "collection_id": "col_4Dn9Xe3", "name": "Tenant documents" }],
  "error": null,
  "updated_at": "2026-11-27T10:52:15Z"
}

Stop the workflow planner

Changes data

POST/v1/workflows/planner/sessions/{session_id}/cancel

Stops a session that is working, waiting or proposing; a session that has ended stays as it is.

Who may
Owner and Admin
CLI
kontiga workflows planner cancel <session_id>
MCP tool
cancel_workflow_planner
Returns
The session, cancelled (or as it ended).

Parameters

  • session_idid (wfa_)Required

    The session to stop. A session that has ended is answered as it is. In the path.

curl -X POST https://api.kontiga.com/v1/workflows/planner/sessions/wfa_2Qp8Ld5/cancel \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/workflows/planner/sessions/{session_id}/cancel

Response, 200 OK
{
  "id": "wfa_2Qp8Ld5",
  "object": "workflow_planner_session",
  "mode": "workflow_plan",
  "status": "cancelled",
  "events": [
    { "seq": 3, "kind": "cancelled", "text": "Stopped", "at": "2026-11-27T10:50:30Z" }
  ],
  "error": null,
  "updated_at": "2026-11-27T10:50:30Z"
}