Vercel DNS Records icon

Vercel DNS Records

Manage Vercel DNS records via the Vercel REST API

Create DNS Record

AI-generated

Summary

Create a DNS record on a Vercel-managed domain by POSTing to the Vercel v2 domains records endpoint, once per input item.

Inputs

  • Domain Name (required) — Domain to add the record to (e.g., example.com). URL-encoded into the request path.
  • Record Name (required) — Name of the record (the subdomain/host part) sent as name.
  • Record Type — DNS record type: A, AAAA, CNAME, TXT, MX or SRV. Defaults to A.
  • Record Value (required) — Value of the record (e.g., IP address, hostname, or text), sent as value.
  • TTL (seconds) — Time to live in seconds. Defaults to 60.

Output shape

One output item per input item, whose json is the Vercel API response for the created record (typically including its record identifier, usable as Record ID in update/delete).

Requires the vercelApi credential (access token, optional team ID, optional base URL). The team ID from the credential is sent as a teamId query parameter. The source reads a teamIdOverride parameter that is not declared in the UI, so it defaults to empty. MX and SRV records have no separate priority/port fields; only name, type, value and ttl are sent. With Continue On Fail enabled, failed items return json { error: message } instead of stopping the workflow.

Examples

Example 1: Point a subdomain to a server IP

Domain Name: example.com; Record Name: api; Record Type: A; Record Value: 203.0.113.10; TTL: 60

Example 2: Add a domain verification TXT record

Domain Name: example.com; Record Name: _verify; Record Type: TXT; Record Value: verification-token-123; TTL: 300

Example 3: Create a CNAME alias for www

Domain Name: example.com; Record Name: www; Record Type: CNAME; Record Value: cname.vercel-dns.com; TTL: 60

Links

Discussion