Skip to content

Mind Map

The mind map endpoint returns all of your ideas and their relations as a graph structure, ready for visualization.

GET /api/v1/map

Returns the complete graph containing nodes (ideas) and edges (relations).

Terminal window
curl https://neuralrepo.com/api/v1/map \
-H "X-API-Key: nrp_YOUR_KEY"

Response 200 OK

{
"nodes": [
{
"id": 42,
"title": "Add dark mode support",
"status": "exploring",
"tags": ["ui", "feature-request"]
},
{
"id": 18,
"title": "Theme customization options",
"status": "building",
"tags": ["ui"]
},
{
"id": 7,
"title": "Implement design tokens",
"status": "captured",
"tags": ["ui", "backend"]
}
],
"edges": [
{
"id": 1,
"source": 42,
"target": 18,
"relation_type": "related",
"note": "Both deal with theming"
},
{
"id": 2,
"source": 7,
"target": 42,
"relation_type": "blocks",
"note": null
}
]
}

Each node represents an idea in the graph.

FieldTypeDescription
idnumberIdea identifier
titlestringIdea title
statusstringCurrent status
tagsstring[]Associated tag names

Each edge represents a relation between two ideas.

FieldTypeDescription
idnumberRelation identifier
sourcenumberSource idea ID
targetnumberTarget idea ID
relation_typestringrelated, parent, blocks, inspires, duplicate, supersedes
notestring | nullOptional description

The map endpoint is read-only. To create, update, or delete relations, use the Relations endpoints:

  • POST /api/v1/map/relations — Create a relation
  • PATCH /api/v1/map/relations/:id — Update a relation
  • DELETE /api/v1/map/relations/:id — Delete a relation
  • Use the node tags and status fields to filter or color-code nodes in your visualization.
  • The relation_type on edges can be used to style different connection types (e.g., dashed lines for related, solid arrows for blocks).
StatusMeaning
200 OKGraph data returned
401 UnauthorizedMissing or invalid auth