Teamspace Libraries

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.

get/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}

Request

  • Base URL
    https://context7.com/api
  • URL
    https://context7.com/api/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}
  • Auth
    HTTP bearer

Response

The library

idstring required

Library id, /owner/repo.

titlestring
descriptionstring
type'repo' | 'llmstxt' | 'website' | 'openapi' | 'pdf' | 'docx' | 'file' | 'confluence' | 'notion'

Source type.

sourceUrlstring

Where the library is read from (repository, website, llms.txt or OpenAPI URL).

branchstring

Default branch (repositories).

privateboolean required

One of the teamspace's private sources.

ownedboolean required

Claimed by the teamspace. Owner operations (config, versions delete, analytics) need it.

state'processing' | 'finalizing' | 'complete' | 'error' required

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.

lastUpdateDatestring date-time

Last successful update.

totalTokensinteger
totalSnippetsinteger
totalPagesinteger
benchmarkScorenumber

Context7's benchmark score of the library's docs, 0 to 100.

lastRunDatestring date-time

When the last parse ran, successful or not.

Example response

{
  "id": "/acme/internal-docs",
  "versions": [
    {
      "name": "v14.0.0"
    }
  ],
  "task": {
    "progress": "Processing 45/120 files, 3/8 chunks"
  }
}

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property / to the response with the status