#!/usr/bin/env python3
"""Create 3 fresh API keys for end-to-end testing"""
import requests
import time
test_emails = [
"test1_video_analysis@clipsense.test",
"test2_video_analysis@clipsense.test",
"test3_video_analysis@clipsense.test"
]
print("Creating 3 fresh API keys for testing...\n")
created_keys = []
for i, email in enumerate(test_emails, 1):
print(f"Test #{i}: {email}")
response = requests.post(
"https://api.clipsense.app/api/v1/keys/request",
headers={"Content-Type": "application/json"},
json={"email": email}
)
result = response.json()
print(f" Status: {response.status_code}")
print(f" Response: {result}")
# Each new key should have 3 fresh analyses available
created_keys.append({"email": email, "response": result})
print()
time.sleep(1)
print("\n" + "="*80)
print("SUMMARY:")
print("="*80)
print(f"Created {len(created_keys)} new API keys.")
print("\nNote: Since email delivery may not work, you'll need to retrieve")
print("the actual API keys from the Railway backend logs or database.")
print("\nAlternatively, ask the backend admin to retrieve them for you.")