Skip to main content

domain_verification

Creates, updates, deletes, gets or lists a domain_verification resource.

Overview​

Namedomain_verification
TypeResource
Idvercel.domains.domain_verification

Fields​

The following fields are returned by SELECT queries:

Returns the TXT record needed to verify domain ownership.

NameDatatypeDescription
txt_recordstring (wire: txtRecord)
verification_domainstring (wire: verificationDomain)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomainteam_id, slugGet the TXT verification record needed to claim ownership of a domain for the authenticated team. The caller must add this TXT record to _vercel.{domain} in their DNS configuration, then call POST /domains/:domain/claim to complete the ownership transfer.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainstringThe domain name to get the verification record for
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples​

Get the TXT verification record needed to claim ownership of a domain for the authenticated team. The caller must add this TXT record to _vercel.{domain} in their DNS configuration, then call POST /domains/:domain/claim to complete the ownership transfer.

SELECT
txt_record,
verification_domain
FROM vercel.domains.domain_verification
WHERE domain = '{{ domain }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;