Add a library
Submit a source for parsing;
source selects its kind. Any member can add a public source; it does not join the teamspace. A private source (private: true, Confluence, Notion) joins this teamspace and needs the owner or admin role. The call returns once the parse has started (up to about 30 seconds); poll the library details for its state.1 min read
post/v2/teamspaces/{teamspaceId}/libraries
Request example
Response
post/v2/teamspaces/{teamspaceId}/libraries
Authorization
Path parameters
Teamspace id (uuid).
Body
application/jsonResponses
application/json
Library submitted successfully for processing
The library identifier assigned — the URL path of the library on context7.com.
/owner/repo for GitHub repositories, or /<source>/<id> for other sources (e.g., /vercel/next.js, /websites/uploadcare_com). See Library ID format.Only for websites: the version the URL was added as, when it is a version of an existing library. Request it as
<libraryName>/<version>.Human-readable success message