# Action methods: resume, retry, undo

URL: /code/sdk/action/verbs-resume · Id: `page:code/sdk/action/verbs-resume`

> The Action Verbs resume, retry, undo as typed SDK methods, with inputs, result, refusals and an example.

Reference for [Action](/business/nouns/action), one group of [Action methods](/code/sdk/action).

### Action.resume
Resume ends a pause and lets the Action run as reviewed, or reopen what remained of its delay window. [Verb page](/business/nouns/action/resume?interface=sdk).

```ts
interface ActionVerbs {
  resume(input: ActionResumeInput, options?: SB.CallOptions): SB.Call<Action>
}
```

Emits [`Action.resumed`](/business/events/Action.resumed).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | [Action](/business/nouns/action) | Yes | The paused Action. |
| `reason` | `text` | Yes | Why it may proceed. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | [Action](/business/nouns/action) | Yes | The resumed Action. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const action = await $.Action.resume({ action: 'act_br07HsG8MG', reason: 'Example reason' })
```

### Action.retry
Retry runs a failed Action again as a new Action linked to the one that failed. [Verb page](/business/nouns/action/retry?interface=sdk).

```ts
interface ActionVerbs {
  retry(input: ActionRetryInput, options?: SB.CallOptions): SB.Call<Action>
}
```

Emits [`Action.retried`](/business/events/Action.retried).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | [Action](/business/nouns/action) | Yes | The failed Action. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `retry` | [Action](/business/nouns/action) | Yes | The new Action. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const retry = await $.Action.retry({ action: 'act_br07HsG8MG' })
```

### Action.undo
Undo reverses a done Action: it deletes the records the Action created and restores what it changed, each restorable. [Verb page](/business/nouns/action/undo?interface=sdk).

```ts
interface ActionVerbs {
  undo(input: ActionUndoInput, options?: SB.CallOptions): SB.Call<Action>
}
```

Emits [`Action.undone`](/business/events/Action.undone).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | [Action](/business/nouns/action) | Yes | The done Action to undo. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | [Action](/business/nouns/action) | Yes | The undone Action, linked to the records it removed and restored. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const action = await $.Action.undo({ action: 'act_br07HsG8MG' })
```