Quick Start
1. Get your API key
Create an account and generate an API key from your dashboard.
2. Make your first request
curl -X GET "https://api.contextstream.io/v1/workspaces" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"3. Search your content
curl -X POST "https://api.contextstream.io/v1/search/semantic" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "how do we handle authentication",
"workspace_id": "your-workspace-id",
"limit": 10
}'API Endpoints
Authentication
POST
/v1/auth/registerCreate a new user account
POST
/v1/auth/loginAuthenticate and get tokens
GET
/v1/auth/meGet current user profile
POST
/v1/auth/api-keysCreate a new API key
Workspaces
GET
/v1/workspacesList all workspaces
POST
/v1/workspacesCreate a new workspace
GET
/v1/workspaces/:idGet workspace details
GET
/v1/workspaces/:id/overviewGet workspace summary
Search
POST
/v1/search/semanticSemantic vector search by meaning
POST
/v1/search/hybridCombined semantic + keyword search
POST
/v1/search/keywordTraditional keyword search
POST
/v1/search/patternRegex pattern search
Memory
POST
/v1/memory/eventsStore a memory event
GET
/v1/memory/events/workspace/:idList memory events
POST
/v1/memory/searchSearch memory
GET
/v1/memory/search/timeline/:idGet memory timeline
POST
/v1/memory/nodesCreate knowledge node
GET
/v1/memory/search/decisionsGet decision summaries
Graph & Analysis
POST
/v1/graph/dependenciesQuery code dependencies
POST
/v1/graph/impact-analysisAnalyze change impact
POST
/v1/graph/call-pathsTrace call paths
POST
/v1/graph/knowledge/relatedFind related knowledge nodes
AI Integration
POST
/v1/ai/contextBuild context for LLMs
POST
/v1/ai/context/enhancedEnhanced context with memory
POST
/v1/ai/embeddingsGenerate embeddings
POST
/v1/ai/plan/generateGenerate development plan
MCP Server
For AI tools like Claude, Cursor, and Windsurf, use our MCP server for direct integration.
Installation
npm install -g @contextstream/mcpConfiguration (Claude Desktop)
{
"mcpServers": {
"contextstream": {
"command": "npx",
"args": ["-y", "@contextstream/mcp"],
"env": {
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
"CONTEXTSTREAM_API_KEY": "your-api-key"
}
}
}
}