Teamspace Libraries

Read the published context7.json. When its url and public_key match, the library becomes owned by this teamspace. Libraries on shared hosting platforms cannot be claimed automatically.

post/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/claim

Request

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

Request body

context7JsonUrlstring uri

URL of the published file. Required for hostedFile, and for a repository on a host other than GitHub, GitLab or Bitbucket (the raw file URL).

configSource'dashboard' | 'context7json'

Repositories: where the parser reads settings from after the claim. Default dashboard.

Response

Claimed

successboolean required
messagestring required
libraryNamestring required

Changes