Create Domain

Add a new custom domain

POST/domains
Requires Bearer authentication

Add a new custom domain to your organization. After creation, you'll need to configure DNS records and verify ownership.

Body Parameters

domainstringrequired

The domain name to add (e.g., app.example.com).

POST/domains
curl -X POST "https://api.vastal.agency/v1/domains" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "domain": "app.example.com"
}'
201Created
{
"success": true,
"data": {
  "id": "dom_xyz789",
  "domain": "app.example.com",
  "status": "pending",
  "verification": {
    "type": "CNAME",
    "name": "_vastal-verify.app.example.com",
    "value": "verify.vastal.agency"
  }
}
}