> ## 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.

# Retrieve a clause block

> Looks up the clause block associated with a clause reference, first by block ID and then by the reference's `hierarchy` string.

Returns the `clauseBlockResults` array and the `clauseReferenceRecord`.

Responds with HTTP 404 when the block is not found but still includes a placeholder entry with `isNotFound: true`.



## OpenAPI

````yaml get /clause-reference/get-clause/{clauseReferenceId}
openapi: 3.1.0
info:
  title: HERO API
  version: current
  description: |-
    The HERO REST API.

    See https://developers.myhero.so for the rendered docs.
servers:
  - url: https://app.myhero.so
security: []
paths:
  /clause-reference/get-clause/{clauseReferenceId}:
    get:
      tags:
        - Clauses
      summary: Retrieve a clause block
      description: >-
        Looks up the clause block associated with a clause reference, first by
        block ID and then by the reference's `hierarchy` string.


        Returns the `clauseBlockResults` array and the `clauseReferenceRecord`.


        Responds with HTTP 404 when the block is not found but still includes a
        placeholder entry with `isNotFound: true`.
      operationId: getClauseBlockByIdOrHierarchy
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: clauseReferenceId
          in: path
      responses:
        '200':
          description: 200 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      clauseBlockResults:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                _id:
                                  type: string
                                originId:
                                  type: string
                                type:
                                  type: string
                                  enum:
                                    - clauseBlock
                                    - clauseReference
                                    - placeholderNode
                                    - globalReferenceNode
                                    - termDefinition
                                    - imageBlock
                                properties:
                                  type: object
                                  properties:
                                    attributes:
                                      type: object
                                      additionalProperties: {}
                                    content:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                          type:
                                            type: string
                                          text:
                                            type: string
                                          marks:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                type:
                                                  type: string
                                                attributes:
                                                  type: object
                                                  additionalProperties:
                                                    type: string
                                              required:
                                                - type
                                                - attributes
                                    marks:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          type:
                                            type: string
                                          attributes:
                                            type: object
                                            additionalProperties:
                                              type: string
                                        required:
                                          - type
                                          - attributes
                                nodeId:
                                  type: string
                                parentId:
                                  type: string
                                userId:
                                  type: string
                                projectId:
                                  type: string
                                workspaceId:
                                  type: string
                                createdAt:
                                  type: number
                                updatedAt:
                                  type: number
                                isDeleted:
                                  type: boolean
                                  example: false
                              required:
                                - _id
                                - type
                                - properties
                                - nodeId
                                - userId
                                - projectId
                                - workspaceId
                                - createdAt
                                - updatedAt
                            - type: object
                              properties:
                                isNotFound:
                                  type: boolean
                                  enum:
                                    - true
                              required:
                                - isNotFound
                              additionalProperties: {}
                      clauseReferenceRecord:
                        type: object
                        properties:
                          _id:
                            type: string
                          originId:
                            type: string
                          blockId:
                            type: string
                          documentId:
                            type: string
                          workspaceId:
                            type: string
                          hierarchy:
                            type: string
                          createdAt:
                            type: number
                          updatedAt:
                            type: number
                          isDeleted:
                            type: boolean
                            example: false
                        required:
                          - _id
                          - blockId
                          - documentId
                          - workspaceId
                          - hierarchy
                          - createdAt
                          - updatedAt
                    required:
                      - clauseBlockResults
                      - clauseReferenceRecord
                required:
                  - data
        '400':
          description: 400 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: |-
                      Error class name (e.g.

                      ValidationError, NotFound)
                  message:
                    type: string
                    description: Human-readable error message
                  details:
                    type: array
                    items: {}
                required:
                  - error
                  - message
        '403':
          description: 403 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: |-
                      Error class name (e.g.

                      ValidationError, NotFound)
                  message:
                    type: string
                    description: Human-readable error message
                  details:
                    type: array
                    items: {}
                required:
                  - error
                  - message
        '404':
          description: 404 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      clauseBlockResults:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                _id:
                                  type: string
                                originId:
                                  type: string
                                type:
                                  type: string
                                  enum:
                                    - clauseBlock
                                    - clauseReference
                                    - placeholderNode
                                    - globalReferenceNode
                                    - termDefinition
                                    - imageBlock
                                properties:
                                  type: object
                                  properties:
                                    attributes:
                                      type: object
                                      additionalProperties: {}
                                    content:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                          type:
                                            type: string
                                          text:
                                            type: string
                                          marks:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                type:
                                                  type: string
                                                attributes:
                                                  type: object
                                                  additionalProperties:
                                                    type: string
                                              required:
                                                - type
                                                - attributes
                                    marks:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          type:
                                            type: string
                                          attributes:
                                            type: object
                                            additionalProperties:
                                              type: string
                                        required:
                                          - type
                                          - attributes
                                nodeId:
                                  type: string
                                parentId:
                                  type: string
                                userId:
                                  type: string
                                projectId:
                                  type: string
                                workspaceId:
                                  type: string
                                createdAt:
                                  type: number
                                updatedAt:
                                  type: number
                                isDeleted:
                                  type: boolean
                                  example: false
                              required:
                                - _id
                                - type
                                - properties
                                - nodeId
                                - userId
                                - projectId
                                - workspaceId
                                - createdAt
                                - updatedAt
                            - type: object
                              properties:
                                isNotFound:
                                  type: boolean
                                  enum:
                                    - true
                              required:
                                - isNotFound
                              additionalProperties: {}
                      clauseReferenceRecord:
                        type: object
                        properties:
                          _id:
                            type: string
                          originId:
                            type: string
                          blockId:
                            type: string
                          documentId:
                            type: string
                          workspaceId:
                            type: string
                          hierarchy:
                            type: string
                          createdAt:
                            type: number
                          updatedAt:
                            type: number
                          isDeleted:
                            type: boolean
                            example: false
                        required:
                          - _id
                          - blockId
                          - documentId
                          - workspaceId
                          - hierarchy
                          - createdAt
                          - updatedAt
                    required:
                      - clauseBlockResults
                      - clauseReferenceRecord
                required:
                  - data
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: HERO personal access token

````