Skip to main content
GET
/
api
/
data-platform
/
workflows
/
active
List active workflows with flow definitions and resolved credentials
curl --request GET \
  --url https://app.solya.app/api/data-platform/workflows/active \
  --header 'Authorization: Bearer <token>'
{
  "credentials": {
    "cred-uuid-1": {
      "id": "cred-uuid-1",
      "payload": {
        "token": "***REDACTED***"
      },
      "type": "BEARER_TOKEN"
    }
  },
  "workflows": [
    {
      "flowDefinition": {
        "edges": [
          {
            "source": "node-1",
            "target": "node-2"
          }
        ],
        "nodes": [
          {
            "data": {
              "actionType": "ADD_ITEMS_TO_PLAN",
              "nodeType": "ACTION",
              "planType": "RESTOCK",
              "shopId": "shop-uuid-1"
            },
            "id": "node-1"
          },
          {
            "data": {
              "actionType": "CALL_WEBHOOK",
              "credentialId": "cred-uuid-1",
              "nodeType": "ACTION",
              "url": "https://hooks.example.com/notify"
            },
            "id": "node-2"
          }
        ]
      },
      "id": "workflow-uuid-1",
      "name": "Nightly restock run",
      "organizationId": "org-uuid-1"
    },
    {
      "flowDefinition": {
        "edges": [],
        "nodes": [
          {
            "data": {
              "actionType": "ADD_ITEMS_TO_PLAN",
              "markdownActiveWindow": true,
              "markdownCalendarConfigured": true,
              "nodeType": "ACTION",
              "planType": "MARKDOWN",
              "shopId": "shop-uuid-2"
            },
            "id": "node-1"
          }
        ]
      },
      "id": "workflow-uuid-2",
      "name": "Weekly markdown run",
      "organizationId": "org-uuid-1"
    }
  ]
}

Authorizations

Authorization
string
header
required

Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.

Query Parameters

organizationId
string

Scopes the response to workflows belonging to this organization; omit to return active workflows across all organizations

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true