# Organization

URL: /business/nouns/organization · Id: `noun:organization`

> An Organization is an outside party as one Startup knows it, keyed by its domain, such as an employer or a vendor.

An Organization is an outside party as one [Startup](/business/nouns/startup) knows it, keyed by its domain, such as an employer or a vendor.

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | The name it trades under. |
| `hostname` | `string` | No | The web domain that keys it. |

Inherits from [Party](/business/nouns/party), which adds no properties of its own.

## Object
```json
{
  "$id": "https://api.sb/ledgerlark.com/organizations/organization_1",
  "$type": "Organization",
  "name": "LedgerLark",
  "hostname": "ledgerlark.com"
}
```

## Relationships
- <a id="rel-bills"></a>An Organization **has** many [Bills](/business/nouns/bill): a [Bill](/business/nouns/bill) is owed to one outside Organization, whose page lists every Bill the [Startup](/business/nouns/startup) owes it. `bills`, inverse [`owedTo`](/business/nouns/bill#rel-owed-to).
- <a id="rel-deals"></a>An Organization **has** many [Deals](/business/nouns/deal): each [Deal](/business/nouns/deal) has one buying Organization on the other side. `deals`, inverse [`courts`](/business/nouns/deal#rel-courts).
- <a id="rel-people"></a>An Organization’s **people** are many [Contacts](/business/nouns/contact): a [Contact](/business/nouns/contact) works for one Organization, as this [Startup](/business/nouns/startup) knows it. `people`, inverse [`worksAt`](/business/nouns/contact#rel-works-at).
- <a id="rel-reserved-by"></a>An Organization **is reserved by** one [Partner](/business/nouns/partner): an Organization a [Partner](/business/nouns/partner) reserved before referring it, for the `partner.reservationWindow` [Setting](/business/nouns/setting) (90 days by default); outbound skips it. `reservedBy`, inverse [`reserves`](/business/nouns/partner#rel-reserves).
- <a id="rel-resolves-to"></a>An Organization **resolves to** one [Company](/business/nouns/company): each [Startup](/business/nouns/startup)’s own view of an outside party resolves to the one legal entity behind it. `resolvesTo`, inverse [`knownAs`](/business/nouns/company#rel-known-as).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| [Organization.merge](/business/nouns/organization/merge) | Merge joins a duplicate Organization into another, keeping every Contact, Deal and Event on the one that remains. | [Sales Lead](/agents/sales/sales-lead) | [`Organization.merged`](/business/events/Organization.merged) | One-way: `send`, `do` |
| <a id="create"></a>[Organization.create](/business/nouns/organization/create) | Creates an Organization. Inherited from [Noun](/business/nouns/noun). | None. | `Organization.created` | Two-way: `try`, `send`, `do` |
| <a id="get"></a>[Organization.get](/business/nouns/organization/get) | Returns one Organization by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[Organization.list](/business/nouns/organization/list) | Returns Organizations, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="update"></a>[Organization.update](/business/nouns/organization/update) | Changes the given properties of an Organization. Inherited from [Noun](/business/nouns/noun). | None. | `Organization.updated` | Two-way: `try`, `send`, `do` |
| <a id="delete"></a>[Organization.delete](/business/nouns/organization/delete) | Deletes an Organization; its history is kept. Inherited from [Noun](/business/nouns/noun). | None. | `Organization.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` |
| --- | --- | --- | --- | --- |
| `Organization.create` | Yes | Yes | Yes | No |
| `Organization.get` | Yes | Yes | Yes | Yes |
| `Organization.list` | Yes | Yes | Yes | Yes |
| `Organization.update` | Yes | Yes | Yes | No |
| `Organization.delete` | Yes | Yes | Yes | No |
| `Organization.merge` | Yes | No | No | No |

## Call it

**Ask**

```text
Merge my organization.
```

**API**

```bash
curl -X POST https://api.sb/patentpad.com/organizations/organization_1/merge \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"into":"organization_1"}'
```

```json
{
  "api": "https://api.sb/patentpad.com",
  "organization": {
    "$id": "https://api.sb/patentpad.com/organizations/organization_1",
    "$type": "Organization",
    "name": "PatentPad"
  },
  "action": {
    "$id": "https://api.sb/patentpad.com/actions/action_1",
    "operation": "Organization.merge",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/patentpad.com/actions/action_1"
  }
}
```

**SDK**

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

const organization = await $.Organization.merge({ organization: 'organization_1', into: 'organization_1' })
```

**CLI**

```bash
npx startup-builder do Organization.merge --json '{"organization":"organization_1","into":"organization_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Organization.merge({ organization: 'organization_1', into: 'organization_1' })"
  }
}
```

## Example
To a recruiting-agency [SaaS](/products/templates/saas), the Organization keyed by `northpeak-talent.com` employs four [Contacts](/business/nouns/contact) and is the buyer on one [Deal](/business/nouns/deal).