Inspect an App
GET https://repopack.com/api/v0/projects/<key>/apps/<app>
Authorization: Bearer <token>
<app> is the name in the project, not its host. app.read permits regular App inspection; app.preview permits inspection of a task preview only when that task is visible. JSON contains project, app, selected unit, units, deployment, runtime_status, address, pending_address, trigger_changes and trigger_deliveries. Missing project returns 401, denied access 403, missing App 404. Application configuration is not a safe secret dump: env values cannot be read back.
Update, deploy or delete
PATCH the same URL with Content-Type: application/json and an object containing optional source_ref, name, or trigger_branch requires app.write. Change the name separately from source/trigger, and source separately from trigger (400 if combined). Configuring trigger_branch additionally requires app.operate; it can delegate deployment to whoever advances that protected branch. Success returns {app, units}. Rename does not change the host; old name-based links may stop resolving.
POST the same URL with JSON {} is a legacy configured-source deploy requiring app.operate and an existing unit; it returns {deployment_number}. Prefer the explicit deployment route, which returns both deployment_id and deployment_number and supports a verified full-SHA rollback. Neither success means the runtime is healthy. DELETE the App URL requires app.delete, a visible configurable App and human confirmation; the confirmed result is {ok:true}. A busy App can reject deletion with 409. Inspect the action and App before retrying. App deletion does not free a globally reserved host label.