POST /mindmaps

Creates a new mindmap with default structure.

application/json

Body

  • title string

    The title of the mindmap

    Minimum length is 1, maximum length is 200.

  • nodes array[object]

    Union type representing any node in the mindmap

    Union type representing any node in the mindmap

    One of:

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

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
POST /mindmaps
curl \
 --request POST 'http://localhost:8080/api/mindmaps' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"title":"My First Mindmap","nodes":[{"id":"string","type":"mindmapTextNode","content":"string"}]}'
Request examples
{
  "title": "My First Mindmap",
  "nodes": [
    {
      "id": "string",
      "type": "mindmapTextNode",
      "content": "string"
    }
  ]
}
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 (500)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}