Overview
Theresources.getById endpoint retrieves a specific skill resource by its unique identifier. Resources are files bundled with skills that contain reference documentation, scripts, assets, or other supporting content.
Endpoint
Input Parameters
The UUID of the resource to retrieveExample:
"550e8400-e29b-41d4-a716-446655440000"Response
The endpoint returns aresourceReadOutput object containing the resource data along with parent skill information and rendered content.
The unique UUID identifier for the resource
The UUID of the parent skill that owns this resource
The URL-friendly slug of the parent skill
The display name of the parent skill
The relative path of the resource within the skillExample:
"scripts/setup.sh" or "reference/api-guide.md"The type of resource. One of:
"reference"- Documentation or reference material"script"- Executable script file"asset"- Static asset (images, data files, etc.)"other"- Other resource types
The raw content of the resource (original markdown with mentions)
The content with skill mentions rendered as links. This is the display-ready version with
[[skill-name]] mentions converted to clickable links.Custom metadata stored with the resource as key-value pairsExample:
{ "author": "Alice", "version": "1.0" }Timestamp when the resource was created
Timestamp when the resource was last modified
Example Usage
Access Control
This is a protected endpoint that requires authentication. Users can only access resources from skills in vaults they have read access to.Error Responses
NOT_FOUND
Returned when:
- The resource ID doesn’t exist
- The user doesn’t have access to the parent skill’s vault
Related Endpoints
skills.getById- Get a skill with all its resourcesskills.getResourceByPath- Get a resource by skill slug and pathresources.create- Create a new resourceresources.update- Update an existing resource