Search documentation in one project
Searches indexed page titles, tags, and plain-text bodies. Results include ranked full tree paths, short escaped excerpts, and the current content identity.
GET
/projects/documentation/searchAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredQuery parameters
projectIdstringrequiredProject UUID or short identifier, such as RHEIN-2.
querystringrequiredmax length 200
pageanymin 1 · default: 1
pageSizeanymin 1 · max 50 · default: 20
Responses
200
itemsProjectDocumentationSearchItemDto[]requiredShow propertiesHide properties
Array of
ProjectDocumentationSearchItemDtocontentEtagstringrequiredUnquoted SHA-256 content identity for the matched page. Send it unchanged for an exact edit.
contentGenerationnumberrequiredmin 1
excerptstringrequiredShort HTML-escaped plain-text excerpt.
idstringrequiredpathstringrequiredFull folder and page path.
tagsstring[]requiredtitlestringrequiredpagenumberrequiredpageSizenumberrequiredtotalnumberrequired400Invalid project identifier, query, or pagination value.
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 project 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.
Request
curl -X GET "https://leadtime.app/api/public/projects/documentation/search?projectId=RHEIN-2&query=string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/documentation/search?projectId=RHEIN-2&query=string", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/projects/documentation/search?projectId=RHEIN-2&query=string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"items": [
{
"contentEtag": "8e2ffa0587a5c9e89d3a5228fc2b6693b8941588d06a249dd7bfb6b7e8d871a1",
"contentGeneration": 1,
"excerpt": "string",
"id": "string",
"path": "string",
"tags": [
"string"
],
"title": "string"
}
],
"page": 0,
"pageSize": 0,
"total": 0
}{
"error": "string",
"message": "string",
"statusCode": 0
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
{
"error": "string",
"message": "string",
"statusCode": 0
}