Vercel Env Variables icon

Vercel Env Variables

Manage Vercel environment variables via the Vercel REST API

Create Env Variables (Bulk)

AI-generated

Summary

Creates multiple environment variables in a Vercel project with one POST request to the Vercel API (/v10/projects/{project}/env). Variables come from a UI list or a JSON array.

Inputs

  • projectIdOrName (required) — Vercel project ID or name; URL-encoded into the request path.
  • bulkInputMode — 'manual' (default) uses the Env Variables assignment list. 'json' uses a JSON array.
  • envVarsBulk — Manual mode: list of name/value assignments, each becoming one variable (name is the key). At least one is required.
  • envTypeBulk — Manual mode: type applied to all variables (encrypted default, secret, plain, sensitive, system).
  • envTargetBulk — Manual mode: targets applied to all variables (production, preview, development; all three by default).
  • jsonInput — JSON mode: non-empty array of objects. Each needs key and value. type defaults to encrypted and target defaults to all three environments. Optional per-item gitBranch.
  • gitBranch — Git branch to scope the variables to. In JSON mode it is used only for items without their own gitBranch.

Output shape

One output item per input item, containing the parsed JSON response from Vercel's create-env endpoint for the submitted array.

Invalid JSON, a non-array, an empty list, or a JSON item missing key or value throws an error. With Continue On Fail enabled, the item returns {error: message}. The team ID comes from the credentials, but the source reads a 'teamIdOverride' parameter that this operation doesn't declare, so it falls back to '' there. The operation runs once per input item, so N input items send N bulk requests. Empty-string values are rejected in JSON mode, since the check is !v.value.

Examples

Example 1: Add several plain config values to all environments of a project.

Input Mode: Manual; add assignments such as API_URL and REGION; Env Type: plain; Target: production, preview, development.

Example 2: Push mixed secrets with different targets from a previous node.

Input Mode: JSON; jsonInput as an expression producing [{key, value, type:'secret', target:['production']}, ...].

Links

Discussion