add-domain
Add a custom domain to your project, receive DNS setup instructions for automatic HTTPS via Let's Encrypt.
Instructions
Add a custom domain to a sota.io project. Each project supports up to 5 custom domains with automatic HTTPS via Let's Encrypt. Returns DNS setup instructions: for apex domains (example.com), add an A record pointing to 23.88.45.28; for subdomains (app.example.com), add a CNAME record pointing to {slug}.sota.io. Domain statuses: pending (waiting for DNS) → verified (SSL provisioning) → active (live with HTTPS). After DNS is configured, verification and SSL provisioning happen automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to add (e.g. "app.example.com" or "example.com") | |
| project_id | Yes | Project ID (UUID) to add the domain to. Use list-projects to find the ID |