Get component library component details
Returns full details of a component library component including all nested children and metadata.
What are Library Components? Library components are workspace-wide reusable templates (projectId is null). They serve as blueprints that can be imported into projects. Unlike project components, library components contain no live data - no answers to questions, no task connections, and no evaluations.
All ProseMirror editor content (description, internalNote) is converted to HTML format. Only library components (projectId is null) are accessible through this endpoint.
GET
/administration/project-components/componentsDetails/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredComponent UUID
Responses
200
childrenComponentChildrenShortItemDto[]requiredArray of direct children items
Show propertiesHide properties
Array of
ComponentChildrenShortItemDtochildrenComponentChildrenShortItemDto[]requiredNested children items
Show propertiesHide properties
Array of
ComponentChildrenShortItemDtoCircular reference to
ComponentChildrenShortItemDto.conditionsValidbooleanrequiredWhether all conditions are valid
entityUniqueIdstringrequiredEntity unique ID
iconobject | nullrequiredIcon identifier in the format `:icon_name:` (e.g., `:rocket:`, `:check:`, `:star:`). Can be null if no icon is set.
idstringrequiredUnique identifier
namestringrequiredName of the item
questionsCountnumberrequiredCount of questions
taskIdobject | nullrequiredTask ID if linked to a task
taskShortNumberobject | nullrequiredTask short number if linked to a task
testCasesCountnumberrequiredCount of test cases
todosCountnumberrequiredCount of todo items
typestringrequiredType of the component item. Items are the building blocks within components:
- **Epic**: Groups related work packages around a common theme
- **WorkPackage**: Self-contained task that delivers a tangible result
- **TodoList**: Checklist of sub-steps or checkpoints
- **TestSuite**: Formal acceptance tests with test cases
Allowed:
EpicWorkPackageTodoListTestSuitedescriptionstringrequiredComponent description in HTML format
discountAmountnumberrequiredDiscount amount applied to this component. 0 means no discount.
discountTypestringrequiredType of discount: "Fixed" (fixed amount) or "Percentage" (percentage of total price)
Allowed:
FixedPercentageiconobject | nullrequiredIcon identifier (nullable)
idstringrequiredUnique identifier for the component
internalNotestringrequiredInternal note in HTML format
namestringrequiredName of the component
projectIdobject | nullrequiredProject ID (null for library components)
tagsstring[]requiredArray of tags
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"children": [
{
"children": [
null
],
"conditionsValid": true,
"entityUniqueId": "unique-id-123",
"icon": ":check:",
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Login Feature",
"questionsCount": 2,
"taskId": "550e8400-e29b-41d4-a716-446655440002",
"taskShortNumber": 123,
"testCasesCount": 3,
"todosCount": 5,
"type": "Epic"
}
],
"description": "<p>This module handles user authentication and authorization.</p>",
"discountAmount": 10,
"discountType": "Percentage",
"icon": "faBox",
"id": "550e8400-e29b-41d4-a716-446655440000",
"internalNote": "<p>Internal implementation notes.</p>",
"name": "User Authentication Module",
"projectId": null,
"tags": [
"authentication",
"security"
]
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions