{
  "info": {
    "name": "ArtificialFlow HTTP API",
    "description": "Generated from docs/openapi.yaml on release/v1.2.0 (OpenAPI 1.2.0). Recommended base is http://localhost:9100/api/v1.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:9100/api/v1"
    },
    {
      "key": "bearerToken",
      "value": ""
    },
    {
      "key": "idempotencyKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Operations",
      "item": [
        {
          "name": "Check command service health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ]
            }
          }
        },
        {
          "name": "List incidents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/incidents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "incidents"
              ]
            }
          }
        },
        {
          "name": "Resolve an incident",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/incidents/{key}/resolve",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "incidents",
                ":key",
                "resolve"
              ]
            }
          }
        },
        {
          "name": "Read engine operational counters",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/internal/metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "internal",
                "metrics"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Identity",
      "item": [
        {
          "name": "Inspect the authenticated principal",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/identity/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "identity",
                "me"
              ]
            }
          }
        },
        {
          "name": "Read non-secret IAM deployment configuration",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/identity/config",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "identity",
                "config"
              ]
            }
          }
        },
        {
          "name": "Console sign-in when no IAM provider is used",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/identity/login",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "identity",
                "login"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Workflows",
      "item": [
        {
          "name": "List authoritative workflow definitions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/workflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "workflows"
              ]
            }
          }
        },
        {
          "name": "Deploy a BPMN 2.0 workflow",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/workflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "workflows"
              ]
            }
          }
        },
        {
          "name": "Get a workflow definition by key or BPMN process id",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/workflows/{id}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "workflows",
                ":id"
              ]
            }
          }
        },
        {
          "name": "Delete a workflow definition",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/workflows/{id}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "workflows",
                ":id"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Decisions",
      "item": [
        {
          "name": "List deployed decisions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/decisions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "decisions"
              ]
            }
          }
        },
        {
          "name": "Deploy a JSON decision table",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/decisions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "decisions"
              ]
            }
          }
        },
        {
          "name": "Evaluate the latest version of a decision",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/decisions/{id}/evaluate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "decisions",
                ":id",
                "evaluate"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Instances",
      "item": [
        {
          "name": "List active instances from the command store",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances"
              ]
            }
          }
        },
        {
          "name": "Start a workflow instance",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances"
              ]
            }
          }
        },
        {
          "name": "List completed instance history",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances/history/completed",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                "history",
                "completed"
              ]
            }
          }
        },
        {
          "name": "Get authoritative instance details",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id"
              ]
            }
          }
        },
        {
          "name": "Cancel and delete an instance",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id"
              ]
            }
          }
        },
        {
          "name": "Merge variables into an instance",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/variables",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "variables"
              ]
            }
          }
        },
        {
          "name": "Validate a bounded process-instance migration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/migration/dry-run",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "migration",
                "dry-run"
              ]
            }
          }
        },
        {
          "name": "Atomically apply a validated bounded process-instance migration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/migration",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "migration"
              ]
            }
          }
        },
        {
          "name": "Complete an instance step by BPMN step id",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "complete"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Tasks",
      "item": [
        {
          "name": "List user tasks for an instance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "tasks"
              ]
            }
          }
        },
        {
          "name": "Claim a user task for an end user",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/tasks/{executionId}/claim",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "tasks",
                ":executionId",
                "claim"
              ]
            }
          }
        },
        {
          "name": "Complete a user task for the end user who claimed it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/tasks/{executionId}/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "tasks",
                ":executionId",
                "complete"
              ]
            }
          }
        },
        {
          "name": "Search user tasks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tasks"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Jobs",
      "item": [
        {
          "name": "List jobs belonging to an instance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/instances/{id}/jobs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "instances",
                ":id",
                "jobs"
              ]
            }
          }
        },
        {
          "name": "Read worker protocol capabilities",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/jobs/capabilities",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                "capabilities"
              ]
            }
          }
        },
        {
          "name": "Activate and lock available jobs",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Workflow-Worker-Protocol-Version",
                "value": "v1"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/jobs/activate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                "activate"
              ]
            }
          }
        },
        {
          "name": "Complete an activated job",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Workflow-Worker-Protocol-Version",
                "value": "v1"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{idempotencyKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/jobs/{key}/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                ":key",
                "complete"
              ]
            }
          }
        },
        {
          "name": "Fail an activated job",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Workflow-Worker-Protocol-Version",
                "value": "v1"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{idempotencyKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/jobs/{key}/fail",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                ":key",
                "fail"
              ]
            }
          }
        },
        {
          "name": "Extend an activated job lock",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Workflow-Worker-Protocol-Version",
                "value": "v1"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{idempotencyKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/jobs/{key}/extend-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                ":key",
                "extend-lock"
              ]
            }
          }
        },
        {
          "name": "Administratively retry a failed job",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Workflow-Worker-Protocol-Version",
                "value": "v1"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{idempotencyKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/jobs/{key}/retry",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "jobs",
                ":key",
                "retry"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Events",
      "item": [
        {
          "name": "Publish a BPMN signal",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/signals",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "signals"
              ]
            }
          }
        },
        {
          "name": "Correlate and publish a BPMN message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages"
              ]
            }
          }
        },
        {
          "name": "Publish a BPMN escalation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/escalations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "escalations"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Query",
      "item": [
        {
          "name": "Check query service health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/query/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query",
                "health"
              ]
            }
          }
        },
        {
          "name": "Inspect the query-service principal",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/query/identity/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query",
                "identity",
                "me"
              ]
            }
          }
        },
        {
          "name": "Search projected workflow instances",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/query/instances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query",
                "instances"
              ]
            }
          }
        },
        {
          "name": "Get a projected instance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/query/instances/{id}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query",
                "instances",
                ":id"
              ]
            }
          }
        },
        {
          "name": "Search projected workflow definitions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/query/workflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query",
                "workflows"
              ]
            }
          }
        }
      ]
    }
  ]
}
