> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# What an automation can do, and approvals

> Each automation has its own allowed actions. Steps that ask first or are destructive pause for an Owner or Admin, for up to 7 days.

> [!TIP]
>
> **Live.** This area is documented as current, user-reliable behavior.

## Goal

Control what an automation may do and approve its paused steps.

## Prerequisites

* Owner or Admin of the team, or the owner of a personal automation.

## Workflow

**Step 1**

In the editor, choose Edit what it can do and pick the actions the automation may use.

**Step 2**

When a run pauses, open it from Runs, Happening now, or Approvals.

**Step 3**

Read the step and its inputs, then choose Approve or Decline. For a destructive step, type the automation’s name to approve.

## What it can do

* An automation can only use the actions on its list. A step outside the list cannot be saved, and at run time fails with Not allowed.
* Only Owners and Admins change the list, and only with actions they hold themselves.
* The person who created an automation can keep editing and running it while they have the Developer role. Other members and Viewers can read it.

## Which steps pause

* Read, write and notify actions run straight away.
* Ask-first and destructive actions pause with Waiting for an Owner or Admin to approve.
* A Test run pauses on the same steps and does the real thing once approved. Decline to stop it there.

## Approving

* Every Owner and Admin gets the request. The first decision settles it.
* Approve from the run page, from Approvals, with stackshift automations approve RUN, or POST /api/v1/automations/runs/\{runId}/approval with decision approved or denied.
* Declining ends the run as declined.
* If nobody decides within 7 days, the run is cancelled: Nobody approved \<step> within 7 days.

## Expected result

> [!TIP]
>
> Allowed steps run on their own, and risky steps wait for a person.

## Related guides

> [card] [Runs and recovery](https://docs.stackshift.cloud/automations/runs-and-recovery.md)
>
> Every run records each step’s input, output and error. Cancel a run, run it again from a step, or rerun every failed run after a fix.

> [card] [Roles](https://docs.stackshift.cloud/team-and-access/roles-and-collaboration.md)
>
> Every person on a team has a role: Owner, Admin, Developer, Viewer or Billing. Developers build and deploy; once Access is switched on, they cannot delete production resources.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.