The FuzeKeys API now includes comprehensive Swagger/OpenAPI documentation with interactive API exploration, detailed examples, and enhanced developer experience.
http://localhost:8000/docs
Features:
- 🎮 Interactive API testing
- 📝 Request/response examples
- 🔧 Built-in request builder
- 📊 Response visualization
- 🔐 API key authentication testing
http://localhost:8000/redoc
Features:
- 📖 Clean, readable documentation
- 🎨 Beautiful UI design
- 📱 Mobile-friendly
- 🔍 Advanced search capabilities
- 📋 Code samples
title: "FuzeKeys API"
version: "2.0.0"
description: "Intelligent Identity & Account Management System"- 🔐 Credentials: Secure credential management
- 🤖 LLM Scraper: AI-powered scraper generation
- 👤 Identities: Digital identity management
- 📱 Accounts: Website account management
- 📧 Infrastructure: Email, SMS, mobile services
- 🔒 Authentication: User auth and authorization
- 📝 Detailed Descriptions: Each endpoint has comprehensive docs
- 💡 Use Cases: Real-world usage examples
- 🔒 Security Notes: Security considerations and requirements
- 📊 Response Examples: Sample responses with realistic data
⚠️ Error Handling: All possible error responses documented
The documentation includes proper authentication setup for testing:
# Scraper Service
X-API-Key: scraper-key-12345
# Mobile Service
X-API-Key: mobile-key-12345
# Automation Service
X-API-Key: automation-key-12345- Open Swagger UI at
/docs - Click the 🔒 "Authorize" button
- Enter your API key in the
X-API-Keyfield - Click "Authorize"
- Test endpoints directly in the browser!
- Endpoint:
POST /api/credentials/request-identity-credentials - Interactive Examples: Complete with sample identity data
- Response Preview: Shows generated credentials structure
- Use Cases: Automated signup, testing, development
- Endpoint:
POST /api/credentials/request-account-credentials - Security Notes: Logs access and updates timestamps
- Field Filtering: Documentation shows credential type options
- Endpoint:
POST /api/credentials/store-account-credentials - Encryption Details: Documents security features
- Metadata Support: Shows optional metadata structure
- Endpoint:
POST /api/credentials/validate-credentials - Site Rules: Documents validation rules per site
- Response Examples: Shows validation success/failure
- Scraper Generation: Interactive docs for AI scraper creation
- Docker Execution: Container isolation documentation
- Continuous Improvement: AI iteration process docs
- Production Deployment: Automated deployment pipeline
All endpoints include relevant emojis for quick identification:
- 🔐 Credential management
- 🤖 AI/LLM features
- 📱 Mobile integration
- 💾 Data storage
- ✅ Validation
- 🏥 Health checks
- 🟢 200: Success responses
- 🟡 401: Authentication errors
- 🔴 404: Not found errors
- 🟠 500: Server errors
-
Start Server:
cd backend uvicorn app.main:app --reload -
Open Swagger:
http://localhost:8000/docs -
Test Credentials API:
- Add API key:
scraper-key-12345 - Try "Generate Credentials for Identity"
- Use identity_id:
1, site_name:github
- Add API key:
// 1. Generate credentials
POST /api/credentials/request-identity-credentials
{
"identity_id": 1,
"site_name": "github",
"action_type": "signup",
"credential_types": ["email", "password", "username"]
}
// 2. Store credentials after signup
POST /api/credentials/store-account-credentials
{
"account_id": 1,
"credentials": {
"email": "john.doe.1703123456@example.com",
"password": "JohnDoePass123!",
"username": "johndoe_a1b2"
}
}
// 3. Retrieve stored credentials
POST /api/credentials/request-account-credentials
{
"account_id": 1,
"credential_types": ["email", "password"]
}Swagger UI provides automatic code generation in multiple languages:
- Python:
requestslibrary examples - cURL: Command-line testing
- JavaScript:
fetchAPI examples - Postman: Import collection
Interactive form builder for each endpoint:
- ✅ Required field validation
- 📝 Auto-completion
- 🎯 Example value injection
- 🔄 Response preview
Documented health check endpoints:
- General:
GET /health - Credentials:
GET /api/credentials/health - LLM Service:
GET /api/llm-scraper/health
- Request/response logging
- Performance metrics
- Error rate tracking
- Authentication audit trails
The Swagger documentation includes links to:
- Credentials API Guide: Comprehensive usage guide
- GitHub Repository: Source code and examples
- Support Contact: Help and questions
Both Swagger UI and ReDoc are fully responsive:
- 📱 Mobile testing capabilities
- 💻 Desktop development workflow
- 🖥️ Large screen optimization
- Clone the repository
- Start the development server
- Open
/docsfor interactive exploration - Use
/redocfor comprehensive reading
- Review the
/docsfor endpoint details - Get your API key from the admin
- Test endpoints directly in Swagger UI
- Generate client code for your language
- Use health check endpoints for monitoring
- Export Postman collection from Swagger
- Set up automated API testing
- Monitor performance metrics
- ✅ All endpoints have summaries
- ✅ Response codes documented
- ✅ Request/response examples provided
- ✅ Error scenarios covered
- ✅ Authentication requirements clear
- 🎯 RESTful endpoint structure
- 🔐 Consistent authentication
- 📊 Proper HTTP status codes
- 🎨 Logical grouping with tags
- 📝 Clear parameter descriptions
You now have production-quality API documentation with:
✅ Interactive Swagger UI for testing and exploration
✅ Beautiful ReDoc interface for comprehensive reading
✅ Enhanced credentials API with detailed examples
✅ Complete LLM scraper documentation with AI features
✅ Authentication testing built into the interface
✅ Mobile-friendly design for any device
✅ Code generation for multiple programming languages
✅ Health monitoring endpoints documented
Start exploring: http://localhost:8000/docs 🚀