# Startup Template

URL: /business/nouns/startup-template · Id: `noun:startup-template`

> A Startup Template is an operating model, one or more Product Templates, and the Motions they sell through, which a new Startup starts from.

A Startup Template is an operating model, one or more [Product Templates](/business/nouns/product-template), and the [Motions](/business/nouns/motion) they sell through, which a new [Startup](/business/nouns/startup) starts from.

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `slug` | `string` | Yes | The argument to `create --template` and the page path under `/start/templates`. |
| `operatingModel` | `string` | Yes | The human and Agent mix: `autonomous`, `single-human`, or `multi-human`. |
| `motions` | `string[]` | Yes | The Motions its Offers sell through, such as `b2b` or `b2a`. |
| `extends` | [Startup Template](/business/nouns/startup-template) | No | The base Startup Template whose Product Templates, Systems, Processes, and Roles it inherits. |

## Object
```json
{
  "$id": "https://api.sb/tutorloop.com/startup-templates/startup_template_1",
  "$type": "StartupTemplate",
  "slug": "tutor-loop",
  "operatingModel": "autonomous",
  "motions": [
    "Example motions"
  ],
  "extends": "startup_template_1"
}
```

## Relationships
- <a id="rel-combines"></a>A Startup Template **combines** many [Product Templates](/business/nouns/product-template): a Startup Template combines one or more [Product Templates](/business/nouns/product-template), each one kind of [Product](/business/nouns/product) its [Startups](/business/nouns/startup) sell. `combines`, inverse [`combinedIn`](/business/nouns/product-template#rel-combined-in).
- <a id="rel-extended-by"></a>A Startup Template **is extended by** many [Startup Templates](/business/nouns/startup-template): a Startup Template inherits its base’s [Product Templates](/business/nouns/product-template), [Systems](/business/nouns/system), [Processes](/business/nouns/process) and [Roles](/business/nouns/role), and overrides what differs. `extendedBy`, inverse `extends`.
- <a id="rel-extends"></a>A Startup Template **extends** one [Startup Template](/business/nouns/startup-template): a Startup Template inherits its base’s [Product Templates](/business/nouns/product-template), [Systems](/business/nouns/system), [Processes](/business/nouns/process) and [Roles](/business/nouns/role), and overrides what differs. `extends`, inverse `extendedBy`.
- <a id="rel-sells-through"></a>A Startup Template **sells through** many [Motions](/business/nouns/motion): a Startup Template names the [Motions](/business/nouns/motion) its [Startups](/business/nouns/startup) sell through, such as b2b or b2a. `sellsThrough`, inverse [`soldThroughBy`](/business/nouns/motion#rel-sold-through-by).
- <a id="rel-startups"></a>A Startup Template **has** many [Startups](/business/nouns/startup): a [Startup](/business/nouns/startup) inherits a Startup Template’s definition, pinned to a [Version](/business/nouns/version) it upgrades through a [Change](/business/nouns/change). `startups`, inverse [`extends`](/business/nouns/startup#rel-extends).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| [StartupTemplate.extend](/business/nouns/startup-template/extend) | Extend adds a Startup Template to a Startup’s bases, pinned to a Version, so the Startup inherits its definition. | [Founder](/agents/founding/founder) | [`StartupTemplate.extended`](/business/events/StartupTemplate.extended) | Two-way: `try`, `send`, `do` |
| [StartupTemplate.promote](/business/nouns/startup-template/promote) | Promote moves one Startup’s refinement into a Startup Template, so every Startup that extends it inherits the refinement. | [Product Lead](/agents/product/product-lead) | [`StartupTemplate.promoted`](/business/events/StartupTemplate.promoted) | Two-way: `try`, `send`, `do` |
| [StartupTemplate.upgrade](/business/nouns/startup-template/upgrade) | Upgrade moves a Startup to a newer Version of a Startup Template it extends, through a Change it can review. | [Engineering Lead](/agents/engineering/engineering-lead) | [`StartupTemplate.upgraded`](/business/events/StartupTemplate.upgraded) | Two-way: `try`, `send`, `do` |
| <a id="create"></a>[StartupTemplate.create](/business/nouns/startup-template/create) | Creates a Startup Template. Inherited from [Noun](/business/nouns/noun). | None. | `StartupTemplate.created` | Two-way: `try`, `send`, `do` |
| <a id="get"></a>[StartupTemplate.get](/business/nouns/startup-template/get) | Returns one Startup Template by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[StartupTemplate.list](/business/nouns/startup-template/list) | Returns Startup Templates, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="update"></a>[StartupTemplate.update](/business/nouns/startup-template/update) | Changes the given properties of a Startup Template. Inherited from [Noun](/business/nouns/noun). | None. | `StartupTemplate.updated` | Two-way: `try`, `send`, `do` |
| <a id="delete"></a>[StartupTemplate.delete](/business/nouns/startup-template/delete) | Deletes a Startup Template; its history is kept. Inherited from [Noun](/business/nouns/noun). | None. | `StartupTemplate.deleted` | One-way: `send`, `do` |

## Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.

| Operation | `owner` | `admin` | `member` | `viewer` |
| --- | --- | --- | --- | --- |
| `StartupTemplate.create` | Yes | Yes | Yes | No |
| `StartupTemplate.get` | Yes | Yes | Yes | Yes |
| `StartupTemplate.list` | Yes | Yes | Yes | Yes |
| `StartupTemplate.update` | Yes | Yes | Yes | No |
| `StartupTemplate.delete` | Yes | Yes | Yes | No |
| `StartupTemplate.extend` | Yes | Yes | Yes | No |
| `StartupTemplate.promote` | Yes | Yes | Yes | No |
| `StartupTemplate.upgrade` | Yes | Yes | Yes | No |

## Call it

**Ask**

```text
Extend the latest startup template with a startup.
```

**API**

```bash
curl -X POST https://api.sb/ledgerlark.com/startup-templates/startup_template_1/extend \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"startup":"startup_1"}'
```

```json
{
  "api": "https://api.sb/ledgerlark.com",
  "startup": {
    "$id": "https://api.sb/ledgerlark.com/startups/startup_1",
    "$type": "Startup",
    "name": "LedgerLark"
  },
  "startupTemplate": {
    "$id": "https://api.sb/ledgerlark.com/startup-templates/startup_template_1",
    "$type": "StartupTemplate",
    "slug": "ledger-lark",
    "operatingModel": "autonomous",
    "motions": [
      "Example motions"
    ]
  },
  "action": {
    "$id": "https://api.sb/ledgerlark.com/actions/action_1",
    "operation": "StartupTemplate.extend",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/ledgerlark.com/actions/action_1"
  }
}
```

**SDK**

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

const { startup, startupTemplate } = await $.StartupTemplate.extend({ startupTemplate: 'startup_template_1', startup: 'startup_1' })
```

**CLI**

```bash
npx startup-builder do StartupTemplate.extend --json '{"startupTemplate":"startup_template_1","startup":"startup_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.StartupTemplate.extend({ startupTemplate: 'startup_template_1', startup: 'startup_1' })"
  }
}
```

## Example
The `autonomous-data-api` Startup Template starts a permit-status API with the [Dataset API](/products/templates/dataset-api) Product Template, usage pricing and its default [Roles](/business/nouns/role) awake. The founder fills in the founding [Hypothesis](/business/nouns/hypothesis), and the rest is inherited.