Content Calendar Analysis API

This API provides content calendar analysis using Google's Gemini AI. It includes:

  • Lead capture with session management
  • Content analysis storage with UUID tracking
  • Swagger documentation for easy API exploration

Features

  • Lead Management: Capture and store user information with secure session cookies
  • Content Analysis: Generate content calendars using Gemini AI
  • Persistent Storage: Save analyses with unique identifiers
  • API Documentation: Interactive Swagger UI for testing endpoints

API Endpoints

  • POST /api/auth/register - Register a new lead
  • POST /api/auth/login - Login with existing credentials
  • GET /api/auth/session - Check current session status
  • POST /api/analysis/generate - Generate a new content calendar analysis
  • GET /api/analysis/:id - Retrieve a specific analysis by UUID
  • GET /api/analysis - List all analyses for the authenticated user

Technologies

  • Hono.js for API routing
  • SQLite for database storage
  • Google Gemini AI for content analysis
  • Swagger UI for API documentation
  • UUID for unique analysis identification

Getting Started

  1. Access the API documentation at /api/docs
  2. Register a new lead to get a session cookie
  3. Generate content analyses using the provided endpoints