Multi-Tenant SaaS Subdomain Demos with AgentDomains
Test tenant-per-subdomain routing (acme.tenant-demo.makes.fyi, beta.tenant-demo.makes.fyi) using AgentDomains sub-label DNS records (--host).
One subdomain supports deeper sub-labels like --host acme and --host beta. Test multi-tenant cookies and routing easily.
1. 3-Stage Sequence Diagram
3-stage sequence: AI agent claims tenant-demo.makes.fyi, maps it to 203.0.113.48, and verifies HTTPS 200 OK.
2. 4-Step MCP Tool-Call Transcript
Your agent sends these exact calls to https://mcp.agentdomains.co or local stdio.
{
"tool": "check_availability",
"arguments": {
"label": "tenant-demo",
"domain": "makes.fyi"
}
}
// Response:
{
"fqdn": "tenant-demo.makes.fyi",
"available": true,
"reason": "available"
}
{
"tool": "claim_domain",
"arguments": {
"label": "tenant-demo",
"domain": "makes.fyi",
"email": "ops@example.com"
}
}
// Response:
{
"fqdn": "tenant-demo.makes.fyi",
"status": "claimed",
"confirm_within_days": 30
}
{
"tool": "add_dns_record",
"arguments": {
"label": "tenant-demo",
"domain": "makes.fyi",
"type": "A",
"content": "203.0.113.48"
}
}
// Response:
{
"ok": true,
"id": "rec_01j8x",
"fqdn": "tenant-demo.makes.fyi",
"type": "A",
"content": "203.0.113.48"
}
curl -fsSI https://tenant-demo.makes.fyi
# HTTP/2 200
# content-type: application/json
# strict-transport-security: max-age=31536000
3. Clean Teardown (GitHub Action & CLI)
Deleting the parent label cleans up every tenant sub-label atomically. Delete the DNS mapping before you destroy your cloud server to block dangling takeovers.
name: Teardown tenant-demo
on:
workflow_dispatch:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete AgentDomains hostname before destroying compute
env:
AGENTDOMAINS_API_KEY: ${{ secrets.AGENTDOMAINS_API_KEY }}
run: |
curl -fsSL -X DELETE \
-H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
"https://api.agentdomains.co/v1/subdomains/tenant-demo"
# Or with the Go CLI:
# agentdomains delete tenant-demo
More Workflow Blueprints
AI Voice Agent Webhooks
Host Vapi, Retell, ElevenLabs, or Twilio AI voice agent tool-call webhooks on a low-latency HTTPS domain.
AutomationSelf-Hosted n8n Webhook Endpoints
Give self-hosted n8n on a VPS a clean WEBHOOK_URL=https://n8n-flows.makes.fyi/ so Stripe, Slack, and Google OAuth triggers work smoothly.
Zapier & Make Custom Webhooks
Expose custom Python/Node microservice actions to Zapier Webhooks and Make HTTP modules over reliable HTTPS.
E-CommerceShopify Custom App Development
Keep one fixed HTTPS App URL and OAuth callback for Shopify dev stores across restarts.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.