Add a GitLab repository
Submit a GitLab repository for documentation processing. Supports private repos via a gitToken or by connecting your GitLab account at https://context7.com/add-library.
1 min read
post/v2/add/repo/gitlab
Request example
Response
post/v2/add/repo/gitlab
Authorization
Body
application/jsonThe repository URL
Personal access token for private repositories. If not provided, the token from your OAuth connection at https://context7.com/add-library is used.
Whether the repository is private
Skip filtering out version-specific documentation pages
Generate documentation from the repository source code. Applies to private repository submissions.
Responses
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). See Library ID format.Human-readable success message