Skip to main content
err:unkey:data:domain_already_exists
The domain you tried to add is already attached to your workspace, maybe on a different environment. You get HTTP 409. It says nothing about whether another workspace uses the domain.
Example response

Likely causes

  • You already added this domain, on this environment or another one.
  • You added the domain earlier and it isn’t verified yet.

How to fix

  1. Look the domain up with domains.getDomain or domains.listDomains.
  2. If it’s on the wrong environment, delete it there and create it on the right one.
  3. If it’s there but not verified, call domains.verifyDomain instead of creating it again.
Last modified on October 6, 2026