Skip to main content
GET
Get claim instructions

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required.

Path Parameters

teamspaceId
string<uuid>
required

Teamspace id (uuid).

owner
string
required

First segment of the library id /owner/repo (for example vercel in /vercel/next.js, websites in /websites/docs_example_com). Case-insensitive.

repo
string
required

Second segment of the library id /owner/repo. Case-insensitive.

Response

Claim instructions

libraryName
string
required
Example:

"/acme/docs"

claimed
boolean
required

Some teamspace has claimed the library.

ownedByTeamspace
boolean
required

This teamspace has claimed it.

method
enum<string>
required

repository: commit the file to the root of the repository's default branch. hostedFile: host it anywhere under hostUnder (websites, llms.txt, OpenAPI).

Available options:
repository,
hostedFile
publicKey
string
required

The teamspace's public key.

fileName
enum<string>
required
Available options:
context7.json
fileContent
string
required

The file to publish, as text.

Example:

"{\n \"url\": \"https://context7.com/acme/docs\",\n \"public_key\": \"pk_...\"\n}"

repositoryUrl
string

The repository to commit to (repository).

hostUnder
string

The file's URL must start with this URL (hostedFile).