Skip to main content
POST
/
block
/
get-blocks
Retrieve multiple blocks
curl --request POST \
  --url https://app.myhero.so/block/get-blocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    "<string>"
  ]
}
'
{
  "data": [
    {
      "_id": "<string>",
      "properties": {
        "attributes": {},
        "content": [
          {
            "id": "<string>",
            "type": "<string>",
            "text": "<string>",
            "marks": [
              {
                "type": "<string>",
                "attributes": {}
              }
            ]
          }
        ],
        "marks": [
          {
            "type": "<string>",
            "attributes": {}
          }
        ]
      },
      "nodeId": "<string>",
      "userId": "<string>",
      "projectId": "<string>",
      "workspaceId": "<string>",
      "createdAt": 123,
      "updatedAt": 123,
      "originId": "<string>",
      "parentId": "<string>",
      "isDeleted": false
    }
  ]
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
data
string[]
required
Minimum array length: 1
Minimum string length: 1

Response

200 response

data
object[]
required