Add Domain
AI-generatedSummary
Adds a domain to a Vercel project by POSTing to the Vercel API (v10 projects/{project}/domains), optionally configuring a redirect for the domain.
Inputs
- Domain Name (required) — Domain to add, e.g. example.com. Sent as
namein the request body. - Project ID or Name (required) — Project to attach the domain to. URL-encoded into the request path.
- Redirect URL — If set, sent as
redirectso the domain redirects to this target. Omitted when empty. - Redirect Status Code — One of None (0), 301, 302, 307 or 308. Sent as
redirectStatusCodeonly when not None. Only meaningful alongside a Redirect URL.
Output shape
One output item per input item, with the Vercel API response as the item JSON (the added project-domain record). Each output item is paired to its input item.
Uses the credential's access token, base URL and optional team ID (sent as the teamId query string). With Continue On Fail enabled, a failed item returns { error: message } instead of stopping the workflow. The source also reads a
teamIdOverrideparameter that isn't declared in the node's properties, so it always falls back to the credential's team ID.
Examples
Example 1: Attach a custom domain to a project.
Domain Name = example.com, Project ID or Name = my-site, leave redirect fields empty.
Example 2: Add a www domain that permanently redirects to the apex domain.
Domain Name = www.example.com, Project = my-site, Redirect URL = https://example.com, Redirect Status Code = 308 (Permanent).
