This document explains the one-time setup required to enable automatic API documentation deployment from the faxbot repo to faxbot.net/api/v1.
- 🔄 Auto-triggers on push to development branch when API files change
- 📝 Generates fresh OpenAPI spec from FastAPI code
- 🎨 Builds beautiful Redocly documentation with faxbot branding
- 🚀 Deploys to faxbot.net/api/v1 automatically
- 📱 Creates API landing page at faxbot.net/api/
# Generate SSH key pair
ssh-keygen -t ed25519 -C "faxbot-api-docs-deploy" -f ~/.ssh/faxbot_net_deploy_key
# Copy public key
cat ~/.ssh/faxbot_net_deploy_key.pub- Go to https://github.com/dmontgomery40/faxbot.net/settings/keys
- Click "Add deploy key"
- Title:
API Docs Auto-Deploy - Paste the public key from step 1
- ✅ Check "Allow write access"
- Click "Add key"
- Go to https://github.com/dmontgomery40/faxbot/settings/secrets/actions
- Click "New repository secret"
- Name:
FAXBOT_NET_DEPLOY_TOKEN - Value: Copy the private key:
cat ~/.ssh/faxbot_net_deploy_key - Click "Add secret"
Push any change to the development branch in the api/ directory, or manually trigger:
- Go to https://github.com/dmontgomery40/faxbot/actions
- Click "Generate and Deploy API Documentation"
- Click "Run workflow" → "Run workflow"
After setup, every push to development branch will automatically:
- ✅ Generate fresh API docs at faxbot.net/api/v1/
- ✅ Create API index page at faxbot.net/api/
- ✅ Professional Redocly styling with faxbot branding
- ✅ Interactive API explorer with "Try it out" buttons
- ✅ Search functionality
- ✅ Mobile-responsive design
Workflow fails with "Permission denied":
- Check that deploy key has write access enabled
- Verify private key was copied correctly to secrets
No documentation generated:
- Check that FastAPI app imports correctly
- Verify requirements.txt includes all dependencies
Documentation looks broken:
- Check browser console for errors
- Verify Redocly config is valid YAML
- Workflow:
.github/workflows/api-docs.yml - Generated docs:
faxbot.net/api/v1/index.html - API index:
faxbot.net/api/index.html - This setup guide:
API_DOCS_SETUP.md
- ✅ Zero maintenance - fully automated
- ✅ Always up-to-date - syncs with latest API changes
- ✅ Professional appearance - matches faxbot.net branding
- ✅ SEO optimized - static HTML for fast loading