Skip to main content
post/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/claim
Request example
Response
post/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/claim

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Path parameters

teamspaceIdstringrequired#
Teamspace id (uuid).
ownerstringrequired#
First segment of the library id /owner/repo (for example vercel in /vercel/next.js, websites in /websites/docs_example_com). Case-insensitive.
repostringrequired#
Second segment of the library id /owner/repo. Case-insensitive.

Body

application/json
context7JsonUrlstring#
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).
configSourceenum<string>#
Repositories: where the parser reads settings from after the claim. Default dashboard.
Options:dashboardcontext7json

Responses

application/json
Claimed
successbooleanrequired#
messagestringrequired#
libraryNamestringrequired#
ownershipobjectrequired#