Check Domain Availability
GET/api/domains/:domain/available
Check if a domain is available across all tenants for both whitelabel and email usage.
This endpoint checks:
- Whether the exact domain is taken by any tenant for whitelabel hosting
- Whether the root domain is taken by any tenant for email
Args: domain: The domain to check (e.g., "app.example.com")
Returns: DomainAvailabilityResponse with detailed availability information
Example: GET /api/domains/app.example.com/available
Returns: { "whitelabel_domain_available": true, "email_domain_available": false, "domain": "app.example.com", "root_domain": "example.com", "message": "Root domain example.com is already taken for email" }
Request
Responses
- 200
- 422
Successful Response
Validation Error