err:unkey:limits:custom_domain_limit_exceededdomains.createDomain didn’t add another one. You get HTTP 403. Waiting won’t change it.
Subdomains are unlimited, so once api.acme.com is attached, app.acme.com and acme.com never hit this error. The domain you tried to add isn’t under any custom domain your workspace already has.
Example response
How to fix
- Remove a custom domain you no longer use, along with its subdomains, with
domains.deleteDomain, or move to a plan with a higher limit. See Limits and Plans. To see your domain count and limit from code, callworkspace.getLimitswith a root key that hasunkey:v1:{workspace_id}:limits#read. - Create the domain again.
Related errors
err:unkey:data:domain_already_exists: the domain is already attached to this workspace.err:unkey:application:invalid_input: the domain name itself isn’t valid.err:unkey:application:service_unavailable: your workspace’s plan limits aren’t set up (Resource limits are not configured for this workspace.), which support has to fix.