GET /mindmaps/{id}

Gets a complete mindmap by its ID.

Path parameters

  • id string Required

Responses

  • 200 application/json

    success

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data object

      Mindmap response schema

      Hide data attributes Show data attributes object
      • id string

        Unique identifier for the mindmap

      • title string

        Title of the mindmap (or the filename)

      • description string | null

        Description of the mindmap

      • nodes array[object]

        Array of nodes in the mindmap

        Union type representing any node in the mindmap

        Union type representing any node in the mindmap

        One of:
      • edges array[object]
        Hide edges attributes Show edges attributes object
        • id string

          The unique identifier for the edge

        • type string

          The type of the edge

      • createdAt string(date-time)

        Timestamp when the mindmap was created

      • updatedAt string(date-time)

        Timestamp when the mindmap was last updated

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
GET /mindmaps/{id}
curl \
 --request GET 'http://localhost:8080/api/mindmaps/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": {
    "id": "string",
    "title": "string",
    "description": "string",
    "nodes": [
      {
        "id": "string",
        "type": "mindmapTextNode",
        "content": "string"
      }
    ],
    "edges": [
      {
        "id": "string",
        "type": "string"
      }
    ],
    "createdAt": "2025-08-30T10:30:00Z",
    "updatedAt": "2025-08-30T15:45:00Z"
  }
}
Response examples (404)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}