Import a library bundle
Import pre-parsed libraries into an airgapped on-premise install, as a JSON body or a Context7 Cloud export file
1 min read
posthttps://your-instance.example.com/api/import-libraries
Request example
Response
posthttps://your-instance.example.com/api/import-libraries
Authorization
Query parameters
Overwrite libraries that already exist. Handy when posting a piped export body, which carries no
force field. Without it, existing libraries are skipped.Default: false
Body
application/json · multipart/form-dataThe libraries to import. Each carries its full snippet content; embeddings are recomputed on this install.
Show child attributesHide child attributes
Library identifier, e.g.
/your-org/your-repoSource type of the library (e.g.
repo, website, openapi)Responses
application/json
Libraries accepted and queued for import
Human-readable error description
Human-readable error description
Human-readable error description
Human-readable error description