Nodes

Read an exact line range from a node's content

get/api/v1/nodes/{nodeId}/lines

Request

  • Base URL: https://api-docs.busabase.com
  • URL: https://api-docs.busabase.com/api/v1/nodes/{nodeId}/lines
  • Auth: none declared

Path parameters

nodeIdstring required

Query parameters

startLineinteger required

First line to read. 1-indexed, and INCLUSIVE.

endLineinteger required

Last line to read, INCLUSIVE. A range wider than 2000 lines is silently narrowed to the first 2000 rather than rejected — the response reports lineCountCapped when that happened, so check it before concluding the file ends there.

Response

Lines [startLine, endLine] (range capped at 2000 lines / ~2MB response) from any node type that stores content — doc, html, whiteboard, workflow. The follow-up to a Unified Grep match with source: "nodes", so an agent can read just the lines around a match instead of nodes.get's entire document. Line numbers mean whatever they mean for that node type: real source lines for doc/html, positions within the extracted text for the JSON-backed types. Replaces GET /docs/{nodeId}/lines, which resolved doc nodes only.

linesstring[] required
totalLinesinteger required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.