#!/usr/bin/env python3
"""Reset API key usage for testing"""
import requests
import os
# This script resets usage by calling an admin endpoint
# For now, we'll create 3 new API keys for testing since we can't access the DB directly
test_emails = [
"test1@clipsense-testing.local",
"test2@clipsense-testing.local",
"test3@clipsense-testing.local"
]
print("Creating fresh API keys for testing...\n")
for email in test_emails:
response = requests.post(
"https://api.clipsense.app/api/v1/keys/request",
headers={"Content-Type": "application/json"},
json={"email": email}
)
print(f"Email: {email}")
print(f"Response: {response.json()}")
print()
print("\nNote: API keys were created but emails may not be delivered.")
print("You can retrieve the keys from the Railway database console.")
print("\nAlternatively, use these test scenarios with mock data to demonstrate the system.")