25017: The email domain is unverified
ERROR
This error occurs when you try to create or invite a user with an email address from a domain that your Twilio Organization has not verified. You must verify domain ownership before you can invite users from that domain, and you cannot add users while the domain is unverified or awaiting re-validation.
- You tried to create or invite a managed user before verifying the domain that owns the user's email address in your organization.
- The domain verification process has not finished yet. After you add the DNS record or HTML verification file, DNS propagation can take up to 72 hours and Twilio might not mark the domain as verified immediately.
- The domain was previously verified, but Twilio's periodic ownership check could no longer validate it. Until the domain is re-validated, you cannot add users from that domain.
- The email address uses a common domain such as Gmail or Hotmail. Common domains cannot be verified for Twilio Organizations user invitations.
- Add your company domain on the Domains page and verify it by using either the DNS method or the HTTPS method before you create or invite users from that domain.
- If you use DNS verification, create the required
TXTrecord with the_twilioname and thetwilio-domain-verification=<32-hexadecimal-characters>value, then check verification again after DNS has propagated. - If the domain lost verification, restore the required DNS record or HTML verification file and complete domain verification again. Twilio re-checks ownership every 24 hours.
- If the person is not part of your company and does not use a domain you own, invite them as an external user to the specific account instead of adding them as a managed user in the organization.
- Use an email address from a company-owned domain that you can verify. Do not use a common consumer email domain for organization user invitations.