Vercel
@goodcraft/vercelv2026.06.14.4
01README
Vercel DNS — list the account's domains, list a domain's records, idempotently upsert records (skip when an identical type+name+value exists), and delete records by id; enough to cleanly re-point an apex from Vercel to an external server.
02Models
@goodcraft/vercelv2026.06.14.4vercel.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | |
| teamId? | string | |
| baseUrl | string |
fn sync()
List the domains managed in the Vercel account (read-only)
fn listRecords(domain: string)
List a domain's DNS records (read-only)
| Argument | Type | Description |
|---|---|---|
| domain | string |
fn deleteRecord(domain: string, recordId: string, dryRun: boolean)
Delete a DNS record by its id (find ids via listRecords). dryRun=true (default) plans without deleting; a missing record is reported as absent.
| Argument | Type | Description |
|---|---|---|
| domain | string | |
| recordId | string | |
| dryRun | boolean |
fn upsertRecord(domain: string, type: string, name: string, value: string, ttl: number, mxPriority?: number)
Idempotently ensure a DNS record exists (skip if an identical type+name+value record is already present). Adds alongside Vercel's default records (which the API cannot delete) — never removes them; for an apex pointing off-Vercel, prefer a subdomain since your record coexists with Vercel's default A. For MX records, pass mxPriority (Vercel requires it).
| Argument | Type | Description |
|---|---|---|
| domain | string | |
| type | string | |
| name | string | |
| value | string | |
| ttl | number | |
| mxPriority? | number |
Resources
domains(infinite)— Snapshot of the domains managed in the Vercel account
recordUpsert(infinite)— Result of the last upsertRecord call
records(infinite)— Snapshot of a domain's DNS records
recordDelete(infinite)— Result of the last deleteRecord call
03Previous Versions
2026.06.14.3Jun 14, 2026
Modified 1 models
2026.06.14.2Jun 14, 2026
2026.06.14.1Jun 14, 2026
04Stats
A
100 / 100
Downloads
0
Archive size
7.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels