Skip to main content
Content-addressed trace libraries (feature-gated: enable_trace_routes)

Endpoints


List libraries

GET /api/v1/libraries List all libraries accessible in the workspace, including global libraries.

Parameters

Responses

200 - List of libraries

Get library by hash

GET /api/v1/libraries/{hash} Get library details by content hash. Accepts 12-character prefix or full 64-character Blake3 hash.

Parameters

Responses

200 - Library details
300 - Ambiguous hash prefix - multiple matches 404 - Library not found

Get library

GET /api/v1/libraries/{id} Returns a library by ID (lib_xxx format) or content hash prefix (minimum 8 characters). When using a hash prefix, if the prefix matches multiple libraries, a 300 Multiple Choices response is returned.

Parameters

Responses

200 - Library details
300 - Multiple choices — hash prefix matches more than one library. Provide a longer prefix. 400 - Invalid request — hash prefix too short (minimum 8 characters)
404 - Library not found