Skip to main content
GET
/
hub
/
workflows
/
{collection_topic}
/
{flow_topic}
Get a workflow
curl --request GET \
  --url https://api.quiva.ai/hub/workflows/{collection_topic}/{flow_topic} \
  --header 'Authorization: Bearer <token>'
{
  "subject": "ms.hub.config.workflow.1234567890.98765432",
  "name": "MyWorkflow",
  "description": "Workflow description",
  "config": {
    "nodes": [
      {
        "data": {
          "id": "start",
          "name": "Start",
          "node_type": "map",
          "payload": {
            "message": "Start of workflow"
          }
        }
      },
      {
        "data": {
          "id": "process",
          "name": "Process",
          "node_type": "function",
          "subject": "quiva-function.process-function",
          "payload": {
            "input": "{start}"
          }
        }
      }
    ],
    "edges": [
      {
        "source": "start",
        "target": "process",
        "id": "edge1"
      }
    ],
    "result": "process"
  },
  "modified": 1651395678
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Path Parameters

collection_topic
string
required

The topic is a hash of the name that was used when a collection was created

flow_topic
string
required

Flow topic - hash of the names the node was created with

Query Parameters

draft
boolean

Draft flag

Response

Workflow retrieved successfully

subject
string

Subject identifier for the workflow

name
string

Name of the workflow

description
string

Description of the workflow

config
object
modified
integer

Timestamp of last modification