# inboxjot logs

Inspect and follow API requests.

## logs list

List API requests.

```sh
inboxjot logs list [options]
```

| Option                | Description                                                                     |
| --------------------- | ------------------------------------------------------------------------------- |
| `--outcome <OUTCOME>` | Show only requests with this outcome. One of `succeeded`, `failed`.             |
| `--api-key <KEY_ID>`  | Show only requests made with this API key.                                      |
| `--query <QUERY>`     | Show requests whose method and path contain this text, or with this request ID. |
| `-n, --limit <LIMIT>` | Show at most this many rows. Default: `50`.                                     |
| `--all`               | Show every row, one page after another.                                         |
| `--after <CURSOR>`    | Show the rows after this cursor.                                                |
| `--before <CURSOR>`   | Show the rows before this cursor.                                               |

```sh
inboxjot logs list --outcome failed
```

## logs inspect

Show an API request with its bodies.

```sh
inboxjot logs inspect <REQUEST_ID>
```

| Argument     | Description           |
| ------------ | --------------------- |
| `REQUEST_ID` | Request ID. Required. |

```sh
inboxjot logs inspect 5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90
```

## logs tail

Print new API requests as they arrive.

```sh
inboxjot logs tail [options]
```

| Option                | Description                                                                     |
| --------------------- | ------------------------------------------------------------------------------- |
| `--outcome <OUTCOME>` | Show only requests with this outcome. One of `succeeded`, `failed`.             |
| `--api-key <KEY_ID>`  | Show only requests made with this API key.                                      |
| `--query <QUERY>`     | Show requests whose method and path contain this text, or with this request ID. |
| `--timeout <TIMEOUT>` | Stop after this long, such as 10m.                                              |

```sh
inboxjot logs tail
inboxjot logs tail --outcome failed
```
