Messaging · Workflow Blueprint

WhatsApp Cloud API Webhooks with AgentDomains

Verify Meta’s WhatsApp Business Cloud API webhook challenge over trusted HTTPS without wrestling with Nginx cert chains.

Example Host wa-agent.agentdomains.co
MCP Flow 4 Tool Steps
HTTPS Mode Edge Proxy
Teardown GitHub Action

Meta strictly enforces valid CA-signed TLS certificates for WhatsApp webhook subscriptions and message status callbacks.

1. 3-Stage Sequence Diagram

1. AI Agent / CI MCP Client or CLI 2. AgentDomains Edge wa-agent.agentdomains.co 3. Your Origin wa-agent.up.railway.app 1. check_availability → free 2. claim_domain → claimed 3. set_proxy (HTTPS Edge) Forward HTTPS / DNS traffic 4. HTTP/2 200 OK · Valid TLS

3-stage sequence: AI agent claims wa-agent.agentdomains.co, maps it to wa-agent.up.railway.app, 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.

STEP 1check_availability
REQ → check_availability("wa-agent") RES ← available: true
MCP Call → check_availability
{
  "tool": "check_availability",
  "arguments": {
    "label": "wa-agent",
    "domain": "agentdomains.co"
  }
}
// Response:
{
  "fqdn": "wa-agent.agentdomains.co",
  "available": true,
  "reason": "available"
}
STEP 2claim_domain
REQ → claim_domain("wa-agent") RES ← status: "claimed"
MCP Call → claim_domain
{
  "tool": "claim_domain",
  "arguments": {
    "label": "wa-agent",
    "domain": "agentdomains.co",
    "email": "ops@example.com"
  }
}
// Response:
{
  "fqdn": "wa-agent.agentdomains.co",
  "status": "claimed",
  "confirm_within_days": 30
}
STEP 3set_proxy
REQ → set_proxy("wa-agent.up.railway.app") RES ← ok: true
MCP Call → set_proxy
{
  "tool": "set_proxy",
  "arguments": {
    "label": "wa-agent",
    "domain": "agentdomains.co",
    "origin": "wa-agent.up.railway.app"
  }
}
// Response:
{
  "ok": true,
  "fqdn": "wa-agent.agentdomains.co",
  "origin": "wa-agent.up.railway.app",
  "https": "https://wa-agent.agentdomains.co"
}
STEP 4Verify Live HTTPS (200 OK)
REQ → HEAD https://wa-agent.agentdomains.co RES ← HTTP/2 200 OK
Verify live HTTPS response
curl -fsSI https://wa-agent.agentdomains.co
# HTTP/2 200
# content-type: application/json
# strict-transport-security: max-age=31536000

3. Clean Teardown (GitHub Action & CLI)

Unsubscribe your app in Meta Developer Console before deleting the webhook domain. Delete the DNS mapping before you destroy your cloud server to block dangling takeovers.

.github/workflows/teardown-domain.yml
name: Teardown wa-agent
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/wa-agent?domain=agentdomains.co"
      # Or with the Go CLI:
      # agentdomains delete wa-agent --domain agentdomains.co
Configure Your MCP Client → Check Live DNS & ACME

More Workflow Blueprints

CI / CD

CI/CD Branch Preview Domains

Provision deterministic per-branch URLs (feat-auth.makes.fyi) directly from GitHub Actions or GitLab CI using the AgentDomains Go CLI.

Mobile Dev

iOS & Android Backend Dev URLs

Pass iOS ATS and Android TLS rules with a real HTTPS API domain during mobile builds.

IoT & Edge

IoT & Hardware Device Callbacks

Give ESP32 and Raspberry Pi devices a fixed DNS name. Never reflash firmware when your server IP changes.

SaaS Architecture

Multi-Tenant SaaS Subdomain Demos

Test tenant-per-subdomain routing (acme.tenant-demo.makes.fyi, beta.tenant-demo.makes.fyi) using AgentDomains sub-label DNS records (--host).

30 Days Free · No Card Required

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.