VIBN Frontend for Coolify deployment
This commit is contained in:
43
TEST_SESSION_API.md
Normal file
43
TEST_SESSION_API.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Test Your API Key
|
||||
|
||||
## Quick Test
|
||||
|
||||
Replace `YOUR_API_KEY` with your actual API key and run:
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:3000/api/sessions/track \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"apiKey": "YOUR_API_KEY",
|
||||
"sessionData": {
|
||||
"startTime": "2025-01-15T10:30:00.000Z",
|
||||
"endTime": "2025-01-15T11:00:00.000Z",
|
||||
"duration": 1800,
|
||||
"model": "claude-sonnet-4",
|
||||
"tokensUsed": 45000,
|
||||
"cost": 1.35,
|
||||
"filesModified": ["/src/components/Button.tsx", "/src/utils/api.ts"],
|
||||
"conversationSummary": "Added new Button component and refactored API utilities"
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
## Expected Response
|
||||
|
||||
If successful, you'll see:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"sessionId": "abc123...",
|
||||
"message": "Session tracked successfully"
|
||||
}
|
||||
```
|
||||
|
||||
## What This Means
|
||||
|
||||
✅ Your extension can now send session data to Vibn
|
||||
✅ Each coding session will be tracked automatically
|
||||
✅ You'll see real-time cost tracking
|
||||
✅ All data is stored securely in Firebase
|
||||
|
||||
Reference in New Issue
Block a user