# publish

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

> Publish puts a Meeting Type’s booking link live on the Startup’s Domain, where each pick books a Meeting into its Availability.

Publish puts a [Meeting Type](/business/nouns/meeting-type)’s booking link live on the [Startup](/business/nouns/startup)’s [Domain](/business/nouns/domain), where each pick books a [Meeting](/business/nouns/meeting) into its [Availability](/business/nouns/availability).

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `meetingType` | [Meeting Type](/business/nouns/meeting-type) | Yes | The Meeting Type to publish. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `meetingType` | [Meeting Type](/business/nouns/meeting-type) | Yes | The Meeting Type, with its booking link in `url`. |

## Effects
| Fact | Value |
| --- | --- |
| Action class | None: it runs within its seat's Limits |
| Door | Two-way: it runs at once |
| Modes | `try` previews it and stores nothing; `send` returns a pending Action; `do` (default) waits for the result |
| Idempotent | With a key: a repeat with the same `Idempotency-Key` returns the first Action, and a repeat without one runs again |
| Undo | [Action.undo](/business/nouns/action/undo) reverses it |
| Emits | [`MeetingType.published`](/business/events/MeetingType.published) |
| Performed by | The [Customer Lead](/agents/customer/customer-lead) |

- Each booking calls `Meeting.book` and raises `Meeting.booked`.
- A Meeting Type with an Offer takes payment before the time is held.

## 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. |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Medium: two-way, visible |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | 1 business hour, in which a watcher can pause, redirect or cancel it; then it runs. |
| 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
Publish the latest meeting type.
```

**API**

```bash
curl -X POST https://api.sb/leaseline.app/meeting-types/mtgtype_qw2d5yGLVN/publish \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "meetingType": {
    "$id": "https://api.sb/leaseline.app/meeting-types/mtgtype_qw2d5yGLVN",
    "$type": "MeetingType",
    "name": "Problem interview",
    "duration": 20,
    "medium": "video",
    "availability": "availability_8Zj0a7vvRl"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "MeetingType.publish",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```

**SDK**

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

const meetingType = await $.MeetingType.publish({ meetingType: 'mtgtype_qw2d5yGLVN' })
```

**CLI**

```bash
npx startup-builder do MeetingType.publish --json '{"meetingType":"mtgtype_qw2d5yGLVN"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.MeetingType.publish({ meetingType: 'mtgtype_qw2d5yGLVN' })"
  }
}
```

Next: [`Message.broadcast`](/business/nouns/message/broadcast) (in `guide:book-problem-interviews`).

Guides that call it: [Give me a booking link](/systems/sales/give-me-a-booking-link), [Book problem interviews from my waitlist](/systems/sales/book-problem-interviews).