Read complete blocks from one documentation page
Returns complete top-level canonical HTML blocks, a heading outline, or matching blocks with bounded nearby context. Continue with the opaque cursor. A changed content ETag or generation returns HTTP 409.
GET
/projects/documentation/{id}/partialAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstring<uuid>requiredProject documentation page UUID. Folder UUIDs are not valid for body reads.
Query parameters
modestringAllowed:
blocksoutlinematchesquerystringmax length 200
contextnumbermin 0 · max 3 · default: 1
limitnumberMaximum returned items. Blocks and matches permit 20. Outlines permit 100.
min 1 · max 100
cursorstringOpaque cursor from the prior response.
Responses
200
blocksProjectDocumentationPartialBlockDto[]requiredShow propertiesHide properties
Array of
ProjectDocumentationPartialBlockDtohtmlstringrequiredOne complete canonical top-level HTML block.
matchbooleanpositionnumberrequiredZero-based top-level block position.
contentEtagstringrequiredUnquoted SHA-256 content identity for the page content used by this read. Send it unchanged for an exact edit.
contentGenerationnumberrequiredmin 1
modestringrequiredAllowed:
blocksoutlinematchesnextCursorstring | nullrequiredoutlineProjectDocumentationOutlineItemDto[]requiredShow propertiesHide properties
Array of
ProjectDocumentationOutlineItemDtolevelnumberrequiredpositionnumberrequiredtextstringrequiredHTML-escaped heading text.
pageIdstringrequired400Invalid page identifier, mode, query, context, limit, cursor, or an oversized page.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
One of:
string
stringobject
objectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
One of:
string
stringstring[]
Array of
stringstringobject
objectstatusCodenumberrequiredHTTP status code for this response.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404The page does not exist or is not accessible.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
One of:
string
stringobject
objectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
One of:
string
stringstring[]
Array of
stringstringobject
objectstatusCodenumberrequiredHTTP status code for this response.
409The page content changed after the cursor was issued.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
One of:
string
stringobject
objectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
One of:
string
stringstring[]
Array of
stringstringobject
objectstatusCodenumberrequiredHTTP status code for this response.
Request
curl -X GET "https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/partial" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/partial", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/partial",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"blocks": [
{
"html": "string",
"match": true,
"position": 0
}
],
"contentEtag": "8e2ffa0587a5c9e89d3a5228fc2b6693b8941588d06a249dd7bfb6b7e8d871a1",
"contentGeneration": 1,
"mode": "blocks",
"nextCursor": "string",
"outline": [
{
"level": 0,
"position": 0,
"text": "string"
}
],
"pageId": "string"
}{
"error": "string",
"message": "string",
"statusCode": 0
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
{
"error": "string",
"message": "string",
"statusCode": 0
}{
"error": "string",
"message": "string",
"statusCode": 0
}