# Create a collection
curl -X POST "https://api.nebulacloud.app/v1/collections" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"name": "my_notes", "description": "Personal notes"}'
# Store a memory
curl -X POST "https://api.nebulacloud.app/v1/memories" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"collection_ref": "my_notes",
"engram_type": "document",
"raw_text": "JavaScript is great for web development",
"metadata": {"topic": "programming", "language": "javascript"}
}'
# Search memories
curl -X POST "https://api.nebulacloud.app/v1/retrieval/search" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"query": "web development",
"collection_ids": ["my_notes"],
"limit": 10
}'