Add project source
POST/api/v1/projects/:slug/sources/
Upload files, URLs, sitemaps, or complete websites to a specific project. All sources are indexed for AI-powered search and chat.
Upload types:
- Individual files: Upload documents (PDF, MD, TXT, DOCX, XLSX, CSV) for indexing
- URLs: Add web pages to crawl and index
- Sitemaps: Bulk import pages from XML sitemaps
- Hosted sites: Upload complete websites as ZIP files for hosting and indexing
Required permission: project_sources_create
File requirements:
- Supported formats: PDF, MD, TXT, DOCX, XLSX, CSV
- Maximum file size: 10 MB per file
- Files are stored securely and processed for search indexing
Hosted site requirements:
- Supported format: ZIP file containing a complete website
- Maximum size: 50 MB per ZIP file
- Must include HTML files for indexing
- Site is hosted securely with access token authentication
- Individual HTML pages appear as separate sources in the project
- Original URLs are preserved in source listings while hosted URLs are used for parsing
Request
Responses
- 200
- 400
- 403
Source added successfully
Bad request - invalid files or data
Forbidden - missing permissions