list_branches
List ephemeral branch configs (per-PR / preview environments) across an application, or just those forked from one environment. Names, parents, and expiry only — never values. Use it before delete_branch to find a branch slug, or to spot branches that have already expired. Returns Environment rows with parentEnvironmentId set: [{ id, name, slug, parentEnvironmentId, expiresAt, createdAt }] — expiresAt is null for a branch with no TTL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Application slug or id, as returned by list_apps (e.g. "storefront"). | |
| env | No | Optional environment slug or id to narrow to branches forked from that one environment. Omit to list every branch in the application. | |
| org | No | Organization slug or id. Omit it when the credential can reach exactly one org — that org is used automatically. With several, the error names every slug you may pass; list them yourself with list_orgs. |