HackMD User Folders API

Operations related to a user's personal folders.

Operations 7

GET /folders #
POST /folders #
GET /folders/folder-order #
PUT /folders/folder-order #
GET /folders/{folderId} #
PATCH /folders/{folderId} #
DELETE /folders/{folderId} #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hackmd-user-folders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hackmd-user-folders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HackMD Open History User Folders API
  version: 1.0.0
  description: HackMD OpenAPI
  license:
    name: UNLICENSED
  contact:
    name: HackMD Team
    email: support@hackmd.io
servers:
- url: /v1
  description: API Server
tags:
- name: User Folders
  description: Operations related to a user's personal folders.
paths:
  /folders:
    get:
      operationId: ListFolders
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiFolder'
                type: array
      description: List all folders in the current user's workspace
      tags:
      - User Folders
      security:
      - token: []
      parameters: []
    post:
      operationId: CreateFolder
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema: {}
      description: Create a new folder in the current user's workspace
      tags:
      - User Folders
      security:
      - token: []
      parameters: []
      requestBody:
        description: The folder properties.
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserFolderBody'
              description: The folder properties.
  /folders/folder-order:
    get:
      operationId: GetFolderOrder
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiFolderOrder'
      description: 'Get your personal folder ordering for this workspace (parent folder id or `root` → ordered child folder ids).

        Uses the same folder UUIDs as    (not internal Yjs clientIds).'
      tags:
      - User Folders
      security:
      - token: []
      parameters: []
    put:
      operationId: UpdateFolderOrder
      responses:
        '204':
          description: No content
          content:
            application/json:
              schema: {}
      description: Replace your personal folder ordering for this workspace.
      tags:
      - User Folders
      security:
      - token: []
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFolderOrderBody'
  /folders/{folderId}:
    get:
      operationId: GetFolder
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/ApiFolder'
                - {}
      description: Get a single folder in the current user's workspace
      tags:
      - User Folders
      security:
      - token: []
      parameters:
      - description: The ID of the folder to retrieve.
        in: path
        name: folderId
        required: true
        schema:
          type: string
    patch:
      operationId: UpdateFolder
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema: {}
      description: Update a folder in the current user's workspace
      tags:
      - User Folders
      security:
      - token: []
      parameters:
      - description: The ID of the folder to update.
        in: path
        name: folderId
        required: true
        schema:
          type: string
      requestBody:
        description: The properties to update.
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserFolderBody'
              description: The properties to update.
    delete:
      operationId: DeleteFolder
      responses:
        '204':
          description: No content
      description: Delete a folder in the current user's workspace
      tags:
      - User Folders
      security:
      - token: []
      parameters:
      - description: The ID of the folder to delete.
        in: path
        name: folderId
        required: true
        schema:
          type: string
components:
  schemas:
    FolderIconCodepoint:
      type: string
      example: 1F525
      description: "Folder icon as an emoji unified codepoint string.\nExamples: `1F525` (\uD83D\uDD25), `2764-FE0F` (❤️)."
    UpdateFolderOrderBody:
      properties:
        order:
          $ref: '#/components/schemas/ApiFolderOrder'
      required:
      - order
      type: object
      additionalProperties: false
    CreateUserFolderBody:
      properties:
        color:
          $ref: '#/components/schemas/FolderColorHex'
        icon:
          $ref: '#/components/schemas/FolderIconCodepoint'
        description:
          type: string
        parentFolderId:
          type: string
        name:
          $ref: '#/components/schemas/FolderName'
      type: object
    FolderColorHex:
      type: string
      example: '#FF6B6B'
      description: 'Folder display color in hexadecimal format.

        Accepts `#RGB`, `#RGBA`, `#RRGGBB`, or `#RRGGBBAA`.'
    UpdateUserFolderBody:
      properties:
        parentFolderId:
          type:
          - string
          - 'null'
        color:
          allOf:
          - $ref: '#/components/schemas/FolderColorHex'
        icon:
          allOf:
          - $ref: '#/components/schemas/FolderIconCodepoint'
        description:
          type:
          - string
          - 'null'
        name:
          $ref: '#/components/schemas/FolderName'
      type: object
    ApiFolderOrder:
      description: 'Per-user display order of folders: maps each parent folder id (or `root`) to

        an ordered list of child folder ids. Keys and values use the same UUIDs as

        {@link ApiFolder.id} (not Yjs clientIds stored internally in preferences).'
      properties: {}
      type: object
      additionalProperties:
        items:
          type: string
        type: array
    ApiFolder:
      properties:
        id:
          type: string
        name:
          $ref: '#/components/schemas/FolderName'
        description:
          type:
          - string
          - 'null'
        icon:
          allOf:
          - $ref: '#/components/schemas/FolderIconCodepoint'
        color:
          allOf:
          - $ref: '#/components/schemas/FolderColorHex'
        parentFolderId:
          type:
          - string
          - 'null'
        createdAt:
          type: number
          format: double
        updatedAt:
          type: number
          format: double
      required:
      - id
      - name
      - description
      - icon
      - color
      - parentFolderId
      - createdAt
      - updatedAt
      type: object
      additionalProperties: false
    FolderName:
      type: string
      example: Engineering
      description: Folder name.
  securitySchemes:
    token:
      type: http
      scheme: bearer