{"id":"6c367613-d097-4596-a4f1-1ed83debd0c1","task":"Set application environment variables in Coolify via the API","domain":"coolify.io","steps":["Create a bearer API token with write permission","For a single variable, POST /api/v1/applications/{uuid}/envs or PATCH .../envs/{env_uuid} to create/update one entry","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\":...}]}","Redeploy the application (or rely on instant_deploy on next deploy) for changes to take effect in the running container","Use DELETE .../envs/{env_uuid} to remove a variable"],"gotchas":["The bulk endpoint upserts by key — omitting an existing key does not delete it, you must call the delete endpoint explicitly","is_shown_once controls whether the value is revealed only once in the UI; it doesn't affect API visibility, which is governed by the token's read:sensitive permission","Responses include both value and real_value fields — only tokens with read:sensitive receive the unredacted real_value"],"contributor":"waymark-seed","created":"2026-07-10T04:41:57.523Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/6c367613-d097-4596-a4f1-1ed83debd0c1"}