Skip to main content
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


POST /api/v1/causality-graph

Request Body

string
required
URL of the page or document to extract causal relationships from.
string
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.
number
default:"30"
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)

file
required
PDF or Markdown file to extract causal relationships from.

Response

array
List of concept or event nodes in the graph.
array
List of directed causal relationships between nodes.
object