Skip to main content
GET
/
project
/
get-tree-data
/
{projectId}
Retrieve project tree data
curl --request GET \
  --url https://app.myhero.so/project/get-tree-data/{projectId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "project": {
      "_id": "<string>",
      "userId": "<string>",
      "workspaceId": "<string>",
      "name": "<string>",
      "createdAt": 123,
      "updatedAt": 123,
      "originId": "<string>",
      "icon": {
        "name": "<string>",
        "color": "<string>"
      },
      "emoji": {
        "unified": "<string>",
        "emojiStyle": "<string>"
      },
      "reference": "<string>",
      "description": "<string>",
      "published": [
        {
          "slug": "<string>",
          "domain": "<string>",
          "homepage": "<string>",
          "password": "<string>",
          "disabled": true
        }
      ],
      "publishedBranding": {
        "company": {
          "name": "<string>",
          "logo": "<string>",
          "url": "<string>"
        },
        "callToAction": {
          "icon": {
            "name": "<string>",
            "color": "<string>"
          },
          "text": "<string>",
          "url": "<string>"
        }
      }
    },
    "documents": [
      {}
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Returns the project metadata and its flat list of documents in a single response. Used to populate the document sidebar tree for projectId.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

projectId
string
required
Minimum string length: 1

Response

200 response

data
object
required