{
  "opencollection": "1.0.0",
  "info": {
    "name": "Ask Sage Server Admin Agent Builder API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-access-tokens",
      "value": "{{x-access-tokens}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Agent Builder",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/create-workflow",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new workflow for the agent builder"
        },
        {
          "info": {
            "name": "Get workflow",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/get-workflow",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get workflow by ID"
        },
        {
          "info": {
            "name": "Get workflow (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/get-workflow",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get workflow by ID"
        },
        {
          "info": {
            "name": "List workflows",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/list-workflows",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List workflows for user with pagination"
        },
        {
          "info": {
            "name": "List workflows (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/list-workflows",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List workflows for user with pagination"
        },
        {
          "info": {
            "name": "Delete workflow (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/delete-workflow",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Soft delete a workflow"
        },
        {
          "info": {
            "name": "Delete workflow",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{baseUrl}/server/delete-workflow",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Soft delete a workflow"
        },
        {
          "info": {
            "name": "Save workflow version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/save-workflow-version",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Save a new version of workflow DSL"
        },
        {
          "info": {
            "name": "Get workflow version",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/get-workflow-version",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get workflow version DSL by version_id or workflow_id"
        },
        {
          "info": {
            "name": "Get workflow version (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/get-workflow-version",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get workflow version DSL by version_id or workflow_id"
        },
        {
          "info": {
            "name": "List workflow versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/list-workflow-versions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List all versions of a workflow"
        },
        {
          "info": {
            "name": "List workflow versions (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/list-workflow-versions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List all versions of a workflow"
        },
        {
          "info": {
            "name": "Create agent",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/create-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new agent for the agent builder"
        },
        {
          "info": {
            "name": "Get agent",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/get-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get agent by ID"
        },
        {
          "info": {
            "name": "Get agent (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/get-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get agent by ID"
        },
        {
          "info": {
            "name": "Update agent (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/update-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update agent configuration (creates new version)"
        },
        {
          "info": {
            "name": "Update agent",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{baseUrl}/server/update-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update agent configuration (creates new version)"
        },
        {
          "info": {
            "name": "Delete agent (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/delete-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Soft delete an agent"
        },
        {
          "info": {
            "name": "Delete agent",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{baseUrl}/server/delete-agent",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Soft delete an agent"
        },
        {
          "info": {
            "name": "List node templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/list-node-templates"
          },
          "docs": "List available node templates for the workflow builder. Templates are dynamically generated from registered node classes."
        },
        {
          "info": {
            "name": "List executions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/list-executions",
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "query",
                "description": "Filter by workflow ID"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by execution status"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List workflow execution history with optional filters and pagination"
        },
        {
          "info": {
            "name": "List executions (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/list-executions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List workflow execution history"
        },
        {
          "info": {
            "name": "Get execution details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{baseUrl}/server/get-execution-details",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get execution details with node logs"
        },
        {
          "info": {
            "name": "Get execution details (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/get-execution-details",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get execution details with node logs"
        },
        {
          "info": {
            "name": "Update workflow metadata (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{baseUrl}/server/update-workflow-metadata",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update workflow metadata"
        },
        {
          "info": {
            "name": "Update workflow metadata",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{baseUrl}/server/update-workflow-metadata",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update workflow metadata (name, description, publish status, visibility). Does NOT update DSL - use /save-workflow-version for that."
        }
      ]
    }
  ],
  "bundled": true
}