cURL
curl --request POST \ --url https://context7.com/api/v2/add/website \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "websiteUrl": "https://docs.example.com" } '
200
Example
{ "libraryName": "/owner/repo", "message": "Repository submitted successfully" }
Submit a website URL for documentation processing.
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.
The website URL to process
Base URL to limit crawling scope. Only pages starting with this URL will be indexed.
Library submitted successfully for processing
Response after successfully submitting a library
The library identifier assigned (e.g., /owner/repo)
Human-readable success message
Was this page helpful?