# publish

URL: /business/nouns/post/publish · Id: `verb:Post.publish` · Call: `await $.Post.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 sends a Post out through its Handle once every claim it states resolves to a live record.

Publish sends a [Post](/business/nouns/post) out through its [Handle](/business/nouns/handle) once every claim it states resolves to a live record.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The Post to publish. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The published Post. |

## Effects
- Emits [`Post.published`](/business/events/Post.published).
- Performed by the [Content Lead](/agents/marketing/content-lead).
- One-way (brand): it waits out its delay window, and runs in the `send` and `do` modes.
- A shared Studio Handle names the Startup the Post speaks for.

## 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. | [Post.publish](/business/nouns/post/publish) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | High: one-way, broad (brand) |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | 1 business day, 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 post.
```

**API**

```bash
curl -X POST https://api.sb/ledgerlark.com/posts/post_1/publish \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/ledgerlark.com",
  "post": {
    "$id": "https://api.sb/ledgerlark.com/posts/post_1",
    "$type": "Post",
    "format": "Example format",
    "status": "draft"
  },
  "action": {
    "$id": "https://api.sb/ledgerlark.com/actions/action_1",
    "operation": "Post.publish",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/ledgerlark.com/actions/action_1"
  }
}
```

**SDK**

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

const post = await $.Post.publish({ post: 'post_1' })
```

**CLI**

```bash
npx startup-builder do Post.publish --json '{"post":"post_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Post.publish({ post: 'post_1' })"
  }
}
```