# replay

URL: /business/nouns/watch/replay · Id: `verb:Watch.replay` · Call: `await $.Watch.replay({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Replay redelivers a Watch’s Events from a chosen point, signed as they were the first time.

Replay redelivers a [Watch](/business/nouns/watch)’s [Events](/business/nouns/event) from a chosen point, signed as they were the first time.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `watch` | [Watch](/business/nouns/watch) | Yes | The Watch to replay. |
| `from` | `datetime` | Yes | Where the replay starts. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `watch` | [Watch](/business/nouns/watch) | Yes | The Watch, replaying. |

## Effects
- Emits [`Watch.replayed`](/business/events/Watch.replayed).
- Performed by the [Quality Lead](/agents/quality/quality-lead).

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The input does not match the schema of the operation. | [`invalid-input`](/code/api/errors/invalid-input) | Read the schema of the operation, then send every required field with the right type. | [Watch.replay](/business/nouns/watch/replay) |
| 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. | [Watch.replay](/business/nouns/watch/replay) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Replay the latest watch.
```

**API**

```bash
curl -X POST https://api.sb/petpantry.shop/watches/watch_1/replay \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"2026-10-22T12:00:00Z"}'
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "watch": {
    "$id": "https://api.sb/petpantry.shop/watches/watch_1",
    "$type": "Watch",
    "selector": "Example selector",
    "url": "https://petpantry.shop"
  },
  "action": {
    "$id": "https://api.sb/petpantry.shop/actions/action_1",
    "operation": "Watch.replay",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/actions/action_1"
  }
}
```

**SDK**

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

const watch = await $.Watch.replay({ watch: 'watch_1', from: '2026-10-22T12:00:00Z' })
```

**CLI**

```bash
npx startup-builder do Watch.replay --json '{"watch":"watch_1","from":"2026-10-22T12:00:00Z"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Watch.replay({ watch: 'watch_1', from: '2026-10-22T12:00:00Z' })"
  }
}
```