Sign in

Create environment variables

documented

Create one or more environment variables for a project.

POST /v10/projects/{idOrName}/envProjectsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.vercel.com/v10/projects/{{$idOrName}}/env?upsert={{upsert}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"key": "{{$key}}", "value": "{{$value}}", "type": "{{$type}}", "target": ["{{$target1}}", "{{$target2}}"], "gitBranch": "{{$gitBranch}}", "comment": "{{$comment}}", "customEnvironmentIds": ["{{$customEnvironmentId}}"]}'