domain_verification
Creates, updates, deletes, gets or lists a domain_verification resource.
Overview​
| Name | domain_verification |
| Type | Resource |
| Id | vercel.domains.domain_verification |
Fields​
The following fields are returned by SELECT queries:
- get
Returns the TXT record needed to verify domain ownership.
| Name | Datatype | Description |
|---|---|---|
txt_record | string | (wire: txtRecord) |
verification_domain | string | (wire: verificationDomain) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain | team_id, slug | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
domain | string | The domain name to get the verification record for |
slug | string | The Team slug to perform the request on behalf of. |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
SELECT examples​
- get
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 }}'
;