Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/minimal.so/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
Requires authentication via session cookie.Headers
Request Body
Response
Always
true on successID of the group where bookmarks were imported
Name of the import group (“Imported - Browser”)
Number of bookmarks successfully imported
Number of bookmarks skipped (duplicates or errors)
Whether the input was truncated due to exceeding the 2,000 limit
Maximum number of bookmarks allowed (2,000)
Optional breakdown of errors encountered
Number of bookmarks with invalid URLs
Number of duplicate URLs within the import batch
Number of URLs already in the import group
Number of bookmarks that failed to insert
Example
Behavior
Import Limits
- Maximum 2,000 bookmarks per request
- Requests exceeding 2,000 bookmarks are truncated
- Bookmarks are inserted in chunks of 500 for performance
Destination Group
All imported bookmarks go to a group named “Imported - Browser”:- Created automatically if it doesn’t exist
- Uses color
#6366f1 - Reused for subsequent imports
Deduplication
Within the import batch:- URLs are normalized before comparison
- Duplicate URLs in the same batch are skipped
- Only the first occurrence is imported
- URLs already in the “Imported - Browser” group are skipped
- No cross-group duplicate detection
URL Validation
URLs are validated and normalized:- Must be valid HTTP or HTTPS URLs
- Non-HTTP(S) protocols are rejected
- Invalid URLs are counted in
errorSummary.invalidUrl
Error Handling
- Individual bookmark failures don’t abort the entire import
- Chunk insert failures are logged and counted
- The response includes a detailed error summary
Schema
Error Responses
Performance
- Batched inserts (500 bookmarks per chunk) for optimal database performance
- Single query to fetch existing bookmarks in the group
- URL normalization uses in-memory Set for O(1) deduplication
- Average import time logged for monitoring
Use Cases
- Import bookmarks from browser HTML export
- Migrate from another bookmark service
- Bulk add URLs from a reading list
- Restore bookmarks from backup
Constants
Source
- Implementation:
app/api/extension/import/route.ts:33 - Schema:
route.ts:18-25