Start proving ownership of a domain

start_domain_verification

Begins the ownership check for a domain before it is attached to a site, returning one TXT record to add.

Scopeconfig:writeMakes changes

It requires a paid plan, the Manage domains permission, room on the site for another custom domain, up to 10, and a domain that does not already belong to this site or to another site in this workspace. A domain a site in another workspace has can be verified here, and verify_domain then moves it to this site. A domain another site is only waiting to verify does not block it. add_custom_domain starts this same check by itself when a domain needs proof of ownership, see One site per domain.

Pass a bare hostname. A value with http:// or https://, a path, or fewer than 4 or more than 253 characters is refused with the same messages as the Custom Domain field. A leading www. is dropped, so www.example.com verifies example.com.

A site has one pending verification at a time, so starting one for another domain replaces the earlier one, while starting it again for the same domain keeps the same record. The answer carries the record to add as verificationTxtName, which is _modulify-verification. followed by the domain, and verificationTxtValue. That name is the full DNS name, while many DNS hosts expect only the part in front of the zone, such as _modulify-verification, so the tool tells the client to say which form your host wants and never to let the zone appear twice. Once it is in place, verify_domain is the step that actually adds the domain, and cancel_domain_verification abandons the attempt. See A domain waiting on verification.

Inputs

Input Type Required Description
projectId string Yes The site id.
domain string Yes The bare hostname to prove ownership of, for example example.com.