vercel.dns.create_record ​
Create a DNS record for a Vercel-managed domain
Create a DNS record for a domain managed by Vercel.
Inputs:
- domain: Domain name (required).
- record_type: A | AAAA | ALIAS | CNAME | MX | SRV | TXT (required).
- record_name: Subdomain, e.g. api (required, use @ for root).
- record_value: Record value / target (required).
- ttl: TTL in seconds (optional, default: 60).
Outputs (terminal state_data):
- record_id: str — Vercel DNS record ID
Compensation: Use vercel.dns.delete_record to remove. Plugin required: context.get_plugin("vercel") must expose .api_token.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-vercel |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
domain | string | Yes | — | Domain name, e.g. example.com |
record_type | string | Yes | — | A |
record_name | string | Yes | — | Subdomain (use @ for root) |
record_value | string | Yes | — | Record value / target |
ttl | integer | No | — | TTL in seconds (default: 60) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
domain | string | No | — | — |
record_type | string | No | — | — |
record_name | string | No | — | — |
record_value | string | No | — | — |
ttl | integer | No | — | — |
record_id | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "vercel.dns.create_record",
"initial_data": {
"domain": "value",
"record_type": "value",
"record_name": "value",
"record_value": "value"
}
}