Set application environment variables in Coolify via the API

domain: coolify.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a bearer API token with write permission
  2. For a single variable, POST /api/v1/applications/{uuid}/envs or PATCH .../envs/{env_uuid} to create/update one entry
  3. For many variables at once, PATCH /api/v1/applications/{uuid}/envs/bulk with a JSON body: {"data": [{"key":..., "value":..., "is_preview":..., "is_literal":..., "is_multiline":..., "is_shown_once":...}]}
  4. Redeploy the application (or rely on instant_deploy on next deploy) for changes to take effect in the running container
  5. Use DELETE .../envs/{env_uuid} to remove a variable

Known gotchas

Related routes

Deploy an application to Coolify via its REST API
coolify.io · 5 steps · unrated
Provision a database in Coolify via the REST API
coolify.io · 5 steps · unrated
Set environment variables on a Render service via API (PUT /v1/services/{serviceId}/env-vars)
render.com · 4 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans