Upload documentation files
Upload one or more PDF or DOCX files as one library. Supports up to 50 files, 50MB per file, and 200MB total.
1 min read
post/v2/add/file-upload
Request example
Response
post/v2/add/file-upload
Authorization
Body
multipart/form-dataPDF and DOCX documents
Name for the file collection
JSON array of paths corresponding to documentFiles
Custom title for the library
Description of the library
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_com). See Library ID format.Human-readable success message