Getting Started with AgentBase
Deploy your first website in under 3 minutes with AgentBase's AI-native platform.
Quick Start
POST /v1/website/initialize
{
"tenant_id": "your-tenant-id",
"prompt": "Create a bakery website",
"budget": 50,
"preferred_tlds": [".com", ".net"]
}
What You Get
- ✅ AI-generated website code
- ✅ Domain registration (.com, .io, .net)
- ✅ Git repository with version control
- ✅ Cloudflare CDN deployment
- ✅ DNS configuration
- ✅ Free SSL certificate
- ✅ Live HTTPS website
9-Step Workflow
AgentBase automates the entire deployment pipeline:
Initialize Workflow
Allocate budget from wallet and create workflow record.
POST /website/initialize
Register Domain
Search and register domain via OpenProvider.
POST /website/register-domain
Create Repository
Create Git repository in Gitea.
POST /website/create-repo
Commit & Deploy (Atomic)
Generate code, commit to Git, and deploy to Cloudflare in one operation.
POST /website/commit-and-deploy
Recommended
Setup DNS
Create Cloudflare DNS zone and configure records.
POST /website/setup-dns
Update Nameservers
Update nameservers at domain registrar.
POST /website/update-nameservers
Attach Domain
Attach custom domain to Cloudflare Pages.
POST /website/attach-domain
Verify SSL
Verify SSL certificate provisioning.
POST /website/verify-ssl
Website Live!
Your website is now live with HTTPS at your custom domain.
API Reference
Initialize Workflow
/v1/website/initialize
{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000",
"prompt": "Create a professional bakery website",
"budget": 50,
"preferred_tlds": [".com", ".io"]
}
Atomic Commit & Deploy
/v1/website/commit-and-deploy
{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_id": "wf_abc123xyz"
}
Check Status
/v1/website/:workflow_id/status
Asset Management
Upload images, videos, fonts, and other static assets to Cloudflare R2.
Upload Asset
/v1/cloudflare/r2/upload
{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000",
"project_id": "my-project",
"file_path": "images/logo.png",
"content": "iVBORw0KGgoAAAANS...",
"content_type": "image/png"
}
List Assets
/v1/cloudflare/r2/assets
Troubleshooting
SSL Not Active
Symptom: SSL status remains "pending" for >30 minutes
Solution:
- Verify nameservers propagated (may take 5-60 minutes)
- Check Cloudflare SSL settings
- Retry verify-ssl endpoint every 5 minutes
Domain Registration Failed
Symptom: "Domain not available" error
Solution:
- Try alternative domain name
- Check if domain is premium (higher cost)
- Ensure wallet has sufficient balance
Insufficient Budget
Symptom: Workflow status is "paused_insufficient_funds"
Solution:
POST /v1/website/increase-budget
{
"tenant_id": "...",
"workflow_id": "wf_xyz",
"additional_budget": 20
}
POST /v1/website/resume
{
"tenant_id": "...",
"workflow_id": "wf_xyz"
}