Unit environment bindings
GET https://repopack.com/api/v0/projects/<key>/apps/<app>/units/<unit>/env
Authorization: Bearer <token>
With app.read returns {env:[...]} containing keys only, never secret values. POST this URL with Content-Type: application/json and {"key":"API_KEY"} binds a previously defined App env key; DELETE with the same JSON unbinds it. Both require app.write and return {ok:true,key}. Binding a nonexistent App key returns 400. No env mutation updates an existing container retroactively.
Persistent volume mounts
GET /api/v0/projects/<key>/apps/<app>/units/<unit>/volumes with Authorization: Bearer <token> and app.read returns {volumes:[...]}. POST the same URL with JSON {"name":"data","mount_path":"/data"} creates or updates a named unit mount with app.write, returning {ok:true,volume:{name,mount_path}}; invalid names/paths return 400, conflicting mount path 409. DELETE with JSON {"name":"data"} removes that unit mount from future deployments, returning {ok:true,name}; it does not delete stored volume data. A missing unit is 404. Check bindings and deployment configuration before changing a persistent mount.