# ocloud inbox

Source: https://olef.dev/docs/reference/ocloud/inbox

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Discover inboxes, send/watch messages, publish typed services, and admit outside requests

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud inbox admissions

Messages from outside the org waiting for admission

```bash
ocloud inbox admissions --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |

## ocloud inbox create

A team inbox, `team/name` (team maintainers and org admins)

```bash
ocloud inbox create --help
```

| Argument | Description |
| --- | --- |
| `<address>` | **Required.** Positional argument. |
| `--description` |  |
| `--preset` | private, owner-only, team (default), org or public-submission |

## ocloud inbox ls

Inboxes you can find in the org (yours, your teams', agents')

```bash
ocloud inbox ls --help
```

| Argument | Description |
| --- | --- |
| `--q` | Match the address, name or description |
| `--kind` | personal, team or agent |

## ocloud inbox messages

An inbox's messages, newest first

```bash
ocloud inbox messages --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |
| `--state` | queued, claimed, waiting_input, completed, failed, cancelled, expired, or open (anything not finished) |
| `--limit` |  |

## ocloud inbox publish

Publish the next version of a service: JSON Schemas (draft 2020-12) for requests and responses, and pinned validators

```bash
ocloud inbox publish --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |
| `<name>` | **Required.** Positional argument. |
| `--request-schema` | JSON or @file |
| `--response-schema` | JSON or @file |
| `--validator` | A validator's sha256 (`ocloud validator upload`); repeat |

## ocloud inbox send

Send a message. To an agent: `--text` and `--repo-id` (or `--subject`, a pull request URL) start work; in a thread (`--parent`), `--text` is more instructions

```bash
ocloud inbox send --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |
| `--text` |  |
| `--body` | The body as JSON, or `@file.json` |
| `--title` |  |
| `--type` | request (default), response, notification or event |
| `--parent` | Continue a thread: the message this follows |
| `--repo-id` | For an agent: the GitHub repository id to work on |
| `--subject` | For an agent: the change request to work on, a pull request URL (the repository comes from it). Its thread is inside or outside as the code host says |
| `--base` | For an agent: the base branch (default: the repository's, or the subject's) |
| `--deliver-at` | Deliver later (RFC 3339) |
| `--dedupe` | The same key again returns the first message instead of a copy |

## ocloud inbox services

The typed services an inbox publishes (name@version, schemas)

```bash
ocloud inbox services --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |

## ocloud inbox show

One inbox (an id or an address; old addresses resolve as aliases)

```bash
ocloud inbox show --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | **Required.** Positional argument. |

## ocloud inbox watch

Follow an inbox's changes (or every inbox you can read, without INBOX): one JSON line per change; `--once` returns one page

```bash
ocloud inbox watch --help
```

| Argument | Description |
| --- | --- |
| `<inbox>` | Positional argument. |
| `--after` | Continue after this cursor |
| `--from` | Without --after: new (default), retained, or an RFC 3339 time |
| `--once` | One page, then exit (waits up to --wait-s for the first change) |
| `--wait-s` |  |
