Intelligence APIs
Causality Graph
Analyze cause-and-effect relationships from a given URL or file, and return a structured causality graph.
POST
Analyze cause-and-effect relationships from a URL or uploaded file (PDF, Markdown). Returns nodes (concepts/events) and directed edges (causal relationships) that can be used to visualize cause-and-effect chains.
Endpoints
| Method | Path | Input |
|---|---|---|
POST | /api/v1/causality-graph | JSON body with url |
POST | /api/v1/causality-graph/file | multipart/form-data with file |
POST /api/v1/causality-graph
Request Body
URL of the page or document to extract causal relationships from.
Language for the extracted node and edge labels (e.g.
english, korean). Node id values remain in English/ASCII for graph integrity. Defaults to English.Maximum number of nodes to extract. Range: 1–100. Edge count is naturally bounded by node count.
POST /api/v1/causality-graph/file
Request Body (multipart/form-data)
PDF or Markdown file to extract causal relationships from.
Response
List of concept or event nodes in the graph.
List of directed causal relationships between nodes.

