Get a library
The library’s parse state, counts, versions and the active parse task. Poll it after adding or refreshing a library. Works for the teamspace’s private and claimed libraries, and for any public library.
1 min read
get/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}
Request example
Response
get/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}
Authorization
Path parameters
Teamspace id (uuid).
First segment of the library id
/owner/repo (for example vercel in /vercel/next.js, websites in /websites/docs_example_com). Case-insensitive.Second segment of the library id
/owner/repo. Case-insensitive.Responses
application/json
The library
Library id,
/owner/repo.Where the library is read from (repository, website, llms.txt or OpenAPI URL).
Default branch (repositories).
One of the teamspace's private sources.
Claimed by the teamspace. Owner operations (config, versions delete, analytics) need it.
Parse state.
processing: a parse runs. finalizing: the new data is ready and cleanup still runs. complete: done. error: the last parse failed, or a first parse ended without a library.Options:
processingfinalizingcompleteerrorLast successful update.
When the last parse ran, successful or not.