provision_domain
Create a custom domain mapping for a deployed AI-generated site or app. Returns a claim URL for payment and DNS setup; the domain activates after completion.
Instructions
Provision a new custom domain for an AI-generated site or app.
Call this when a user wants their deployed site accessible at a custom domain. This creates the domain mapping and returns a claim_url where the user completes payment ($8/mo) and DNS setup. The domain is NOT immediately active — the user must visit the claim_url first.
Args: domain: The custom domain to provision (e.g., "mysite.com", "portfolio.dev") origin_url: The current URL where the site is hosted (e.g., "https://myapp.vercel.app") user_email: The end user's email address for billing and notifications idempotency_key: Optional key to prevent duplicate provisions on retry
Returns: provision_id: Unique ID to track this domain (use with check_domain_status) status: Current provisioning status enum (pending_payment, pending_dns, pending_ssl, active, failed, released) dns_instructions: Structured DNS record the user needs to create, plus a human_readable summary claim_url: URL to send the user to for payment and DNS setup walkthrough expected_completion_seconds: Estimated time for full provisioning after payment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| origin_url | Yes | ||
| user_email | Yes | ||
| idempotency_key | No |