Raindrop.io API Skill
This skill enables interaction with the Raindrop.io bookmarks service through its REST API. Use
and
for direct REST calls.
Authentication
Token Resolution
Resolve the API token in this order:
- Check environment variable
- Check if the user has provided a token in the conversation context
- If neither is available, use AskUserQuestion to request the token from the user
To verify a token exists in the environment:
bash
[ -n "$RAINDROP_TOKEN" ] && echo "Token available" || echo "Token not set"
Quick setup: For personal use or development, generate a test token at
https://app.raindrop.io/settings/integrations — open your app and copy the "Test token". Test tokens do not expire.
For full OAuth2 flow details, see the
Authentication section below.
Making Authenticated Requests
All requests require the Authorization header with Bearer token:
bash
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/ENDPOINT"
For POST/PUT requests with JSON body:
bash
curl -s -X POST \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key": "value"}' \
"https://api.raindrop.io/rest/v1/ENDPOINT"
Verifying Authentication
Test the token by retrieving the current user:
bash
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/user" | jq '.user.fullName'
Base URL and Conventions
- Base URL:
https://api.raindrop.io/rest/v1/
- Data Format: JSON for all request/response bodies
- Timestamps: ISO 8601 format
- Rate Limit: 120 requests per minute per authenticated user
- CORS: Supported for browser-based apps
Confirmation Requirement
Before executing any destructive action (DELETE, bulk update, move to trash), always ask the user for confirmation using AskUserQuestion. A single confirmation suffices for a logical group of related actions.
Destructive actions include:
- Deleting raindrops, collections, or tags
- Bulk updating or moving raindrops
- Merging or removing tags
- Removing collaborators from shared collections
- Clearing trash
Read-only operations (GET requests) do not require confirmation.
Endpoints Reference
Raindrops (Bookmarks)
Single Raindrop Operations
| Operation | Method | Endpoint |
|---|
| Get raindrop | GET | |
| Create raindrop | POST | |
| Update raindrop | PUT | |
| Remove raindrop | DELETE | |
| Upload file | PUT | |
| Upload cover | PUT | |
| Get permanent copy | GET | |
| Suggest (new URL) | POST | |
| Suggest (existing) | GET | |
Raindrop creation/update fields:
- (string, required for creation) - Bookmark URL
- (string) - Bookmark title
- (string) - Short description
- (string) - User notes (supports Markdown)
- (array of strings) - Tag names
- (object) -
- (string) - , , , , ,
- (boolean) - Mark as favourite
- (number) - Sort order (ascending)
- (array) - Media/thumbnail info
- (array) - Text highlights
- (string) - Cover image URL, or for auto-capture
- (object) - to trigger background metadata parsing
- (string) - ISO 8601 creation date
- (string) - ISO 8601 last update date
- (object) - Reminder settings
Deletion behaviour: Removing a raindrop moves it to Trash (collection ID
). Removing from Trash deletes permanently.
Multiple Raindrop Operations
| Operation | Method | Endpoint |
|---|
| Get raindrops | GET | /raindrops/{collectionId}
|
| Create multiple | POST | |
| Update multiple | PUT | /raindrops/{collectionId}
|
| Remove multiple | DELETE | /raindrops/{collectionId}
|
| Export | GET | /raindrops/{collectionId}/export.{format}
|
collectionId values:
- - All raindrops
- - Unsorted
- - Trash
- Any positive integer - Specific collection
Query parameters for GET /raindrops/{collectionId}:
- - Sort order: (default), , , , , , ,
- - Results per page (max 50)
- - Page number (0-indexed)
- - Search query (see
references/search-operators.md
)
- - Boolean, include child collection bookmarks
Bulk update fields (PUT with
array or
query):
- (boolean)
- (array) - Appends tags; empty array clears all
- (array) - Appends; empty array clears
- (string) - URL or
- (object) - to move
Collections
| Operation | Method | Endpoint |
|---|
| List root collections | GET | |
| List child collections | GET | |
| Get collection | GET | |
| Create collection | POST | |
| Update collection | PUT | |
| Upload cover | PUT | |
| Delete collection | DELETE | |
| Delete multiple | DELETE | |
| Reorder/expand all | PUT | |
| Merge collections | PUT | |
| Remove empty | PUT | |
| Empty trash | DELETE | |
| System collection counts | GET | |
| Search covers/icons | GET | /collections/covers/{text}
|
| Featured covers | GET | |
Collection fields:
- (string) - Collection name
- (string) - Display style: , , ,
- (boolean) - Public accessibility
- (object) -
{"$id": parentCollectionId}
for nesting
- (number) - Sort position
- (array) - Cover image URLs
- (boolean) - Whether subcollections are expanded
- (string) - Collection colour
System collections (non-removable):
- ID - "Unsorted"
- ID - "Trash"
- - Read only
- - Collaborator (write)
- - Collaborator (write + manage)
- - Owner
For sharing/collaborators, see
references/collections-sharing.md
.
Tags
| Operation | Method | Endpoint |
|---|
| Get tags | GET | |
| Rename tag | PUT | |
| Merge tags | PUT | |
| Remove tag(s) | DELETE | |
collectionId: Omit or use
for tags from all collections.
Get tags response:
json
{
"result": true,
"items": [{"_id": "tagname", "count": 42}]
}
Rename tag:
bash
curl -s -X PUT \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"replace": "new-name", "tags": ["old-name"]}' \
"https://api.raindrop.io/rest/v1/tags/0"
Merge tags (same endpoint, multiple tags in array):
bash
curl -s -X PUT \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"replace": "merged-name", "tags": ["tag1", "tag2", "tag3"]}' \
"https://api.raindrop.io/rest/v1/tags/0"
Remove tags:
bash
curl -s -X DELETE \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tags": ["tag-to-remove"]}' \
"https://api.raindrop.io/rest/v1/tags/0"
Highlights
| Operation | Method | Endpoint |
|---|
| Get all highlights | GET | |
| Get collection highlights | GET | /highlights/{collectionId}
|
| Get raindrop highlights | GET | |
| Add highlight | PUT | |
| Update highlight | PUT | |
| Delete highlight | PUT | |
Filters
bash
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/filters/{collectionId}" | jq '.'
Use
for all collections. Returns aggregated counts for broken links, duplicates, favourites, untagged items, tags, and content types.
Query parameters:
- - (default) or (alphabetical)
- - Additional search filter
User
| Operation | Method | Endpoint |
|---|
| Get current user | GET | |
| Update user | PUT | |
Import
| Operation | Method | Endpoint |
|---|
| Parse URL | GET | /import/url/parse?url={url}
|
| Check URL existence | POST | |
| Parse HTML bookmark file | POST | |
Backups
| Operation | Method | Endpoint |
|---|
| List backups | GET | |
| Download backup | GET | |
| Generate new backup | GET | |
Authentication: OAuth2 Flow
For apps accessing other users' data (not personal use), use the full OAuth2 flow:
Step 1: Authorise
Direct users to:
https://raindrop.io/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code
Step 2: Exchange Code for Token
bash
curl -s -X POST "https://raindrop.io/oauth/access_token" \
-H "Content-Type: application/json" \
-d '{
"code": "AUTH_CODE",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"redirect_uri": "YOUR_REDIRECT_URI",
"grant_type": "authorization_code"
}' | jq '.'
Response:
json
{
"access_token": "...",
"refresh_token": "...",
"expires_in": 1209599,
"token_type": "Bearer"
}
Step 3: Refresh Token
Access tokens expire after two weeks. Refresh with:
bash
curl -s -X POST "https://raindrop.io/oauth/access_token" \
-H "Content-Type: application/json" \
-d '{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"refresh_token": "YOUR_REFRESH_TOKEN",
"grant_type": "refresh_token"
}' | jq '.'
Error Handling
Check HTTP status codes:
- - Success
- - Success, no content
- - Bad request
- - Authentication failed (check token)
- - Forbidden (insufficient permissions)
- - Resource not found
- - Rate limited (120 req/min exceeded)
- - Server error
Example with Error Handling
bash
response=$(curl -s -w "\n%{http_code}" \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0")
http_code=$(echo "$response" | tail -1)
body=$(echo "$response" | sed '$d')
if [ "$http_code" -ge 200 ] && [ "$http_code" -lt 300 ]; then
echo "$body" | jq '.'
else
echo "Error: HTTP $http_code"
echo "$body"
fi
Common Patterns
List All Bookmarks in a Collection
bash
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/COLLECTION_ID?perpage=50" | jq '.items[] | {title, link}'
Create a Bookmark
bash
curl -s -X POST \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"link": "https://example.com",
"title": "Example Site",
"tags": ["reference", "example"],
"collection": {"$id": COLLECTION_ID},
"pleaseParse": {}
}' \
"https://api.raindrop.io/rest/v1/raindrop" | jq '.'
Search Bookmarks
bash
# Search across all collections
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0?search=YOUR_QUERY" | jq '.items[] | {title, link}'
# Search with tag filter
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0?search=%23tagname" | jq '.items[] | {title, link}'
See
references/search-operators.md
for the complete search query syntax.
Move Bookmark to a Collection
bash
curl -s -X PUT \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"collection": {"$id": TARGET_COLLECTION_ID}}' \
"https://api.raindrop.io/rest/v1/raindrop/RAINDROP_ID" | jq '.'
Get All Tags
bash
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/tags/0" | jq '.items[] | {tag: ._id, count}'
Create a Collection
bash
curl -s -X POST \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "My Collection", "view": "list"}' \
"https://api.raindrop.io/rest/v1/collection" | jq '.'
List All Collections (Root + Children)
bash
# Root collections
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/collections" | jq '.items[] | {id: ._id, title}'
# Child collections
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/collections/childrens" | jq '.items[] | {id: ._id, title, parent: .parent."$id"}'
Paginate Through All Bookmarks
bash
page=0
while true; do
response=$(curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0?perpage=50&page=$page")
count=$(echo "$response" | jq '.items | length')
echo "$response" | jq '.items[] | {title, link}'
if [ "$count" -lt 50 ]; then
break
fi
page=$((page + 1))
done
Export Bookmarks
bash
# Export all bookmarks as CSV
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0/export.csv" -o bookmarks.csv
# Export as HTML
curl -s -H "Authorization: Bearer $RAINDROP_TOKEN" \
"https://api.raindrop.io/rest/v1/raindrops/0/export.html" -o bookmarks.html
Check if URL Already Saved
bash
curl -s -X POST \
-H "Authorization: Bearer $RAINDROP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://example.com"]}' \
"https://api.raindrop.io/rest/v1/import/url/exists" | jq '.'
Pagination
Raindrop uses page-based pagination (not cursor-based):
- - Page number (0-indexed)
- - Items per page (max 50, default 25 for highlights)
When the number of items returned is less than
, you have reached the last page.
Nested Collection Structure
Collections are organised hierarchically. Reconstructing the full sidebar requires:
- - Returns array with collection ordering
- - Root collections
GET /collections/childrens
- Nested collections
Root collection sort order is persisted in the user's
array. Child collection sort order is stored in the collection's
field.
Additional Reference
For detailed documentation on specific topics, consult:
references/search-operators.md
- Search query syntax and operators
references/collections-sharing.md
- Collection sharing and collaborators
- - Highlight management
Workflow Summary
- Resolve token - Environment, context, or ask user
- Verify authentication - Test with
- Read operations - Execute directly without confirmation
- Write operations - Ask for confirmation before executing
- Handle pagination - Loop with page number until items < perpage
- Parse responses - Use jq to extract and format data