Skip to Content

Jobs and API

All graph work is Workbench2 FastAPI, not the Java Runtime. The SPA uses /api/graphtheory/* with the Workbench JWT. Automation and MCP use the public gateway (:8004) under /public/v1/networks/*.

Browser calls need a Workbench session. Public routes need the gateway scopes (networks:jobs, networks:read, networks:analyze). Mutating MCP tools require confirm.

Operator flow (SPA)

POST /api/graphtheory/graphs → 202 { jobId } GET /api/graphtheory/jobs/{jobId} → status / progress GET /api/graphtheory/jobs/{jobId}/events → SSE GET /api/graphtheory/jobs/{jobId}/result → displayGraph + graphId POST /api/graphtheory/graphs/{graphId}/analyze GET /api/graphtheory/graphs/{graphId}/display

Build is always async + display sample. The result must not include the full analysis edge list.

Cancel: DELETE /api/graphtheory/jobs/{jobId}.

Configs

MethodPathPurpose
GET/api/graphtheory/configsList saved networks
GET/api/graphtheory/configs/{unique_key}Load one
POST/api/graphtheory/configsSave
POST/api/graphtheory/configs/importImport ecosystem-network-v1
DELETE/api/graphtheory/configs/{unique_key}Delete

Mongo: database networks, collection network_configs. Graph job artifacts use ecosystem_graphtheory (graph_node_metrics, graph_analysis_meta).

Public API (gateway)

Same jobs, scoped for integrations:

MethodPathScope
POST/public/v1/networks/jobsnetworks:jobs
GET/public/v1/networks/jobs/{job_id}networks:read
GET/public/v1/networks/jobs/{job_id}/eventsnetworks:read
GET/public/v1/networks/jobs/{job_id}/resultnetworks:read
DELETE/public/v1/networks/jobs/{job_id}networks:jobs
GET/public/v1/networks/graphs/{graph_id}/displaynetworks:read
GET/public/v1/networks/graphs/{graph_id}/metricsnetworks:read
POST/public/v1/networks/graphs/{graph_id}/analyzenetworks:analyze
POST/public/v1/networks/graphs/{graph_id}/temporal/{category}networks:analyze

Job result typically includes graphId, analysisStats, displayGraph, and metricsSummary.

Other graphtheory routes the UI uses

  • Metadata: databases, collections, fetch-data preview
  • Time periods histogram
  • Shortest path, social-analysis, knowledge infer/query/semantic-path
  • Layout, subgraph expand, metrics writeback
  • Temporal: structural-shift, influence, community-evolution, tie-formation, cascade

Limits (server)

CapValue
Display sample1 000 default, 5 000 max
Timeline buckets500
Heavy-algorithm edge hint~100 000
Hard edge ceiling2 000 000

MCP (Workbench)

Dedicated tools on the Workbench MCP server (gateway :8004):

ToolMaps to
networks_jobPOST /public/v1/networks/jobs (confirm required)
networks_job_statusGET …/jobs/{job_id}
networks_job_eventsGET …/jobs/{job_id}/events
networks_job_resultGET …/jobs/{job_id}/result
networks_cancel_jobDELETE …/jobs/{job_id} (confirm required)

Do not send Runtime scoring params here — that contract is POST /invocations only.

Last updated on