# inboxjot api

Make an authenticated request to the Inboxjot API.

## api

Make an authenticated request to the Inboxjot API.

```sh
inboxjot api <PATH> [options]
```

| Argument | Description                                                                                       |
| -------- | ------------------------------------------------------------------------------------------------- |
| `PATH`   | API path, such as /v1/domains, with the HTTP method first if you like: GET /v1/domains. Required. |

| Option                        | Description                                                                   |
| ----------------------------- | ----------------------------------------------------------------------------- |
| `-X, --method <METHOD>`       | HTTP method; defaults to GET, or POST when you add fields or input.           |
| `-f, --raw-field <KEY=VALUE>` | Add a string field; repeat for each field.                                    |
| `-F, --field <KEY=VALUE>`     | Add a typed field: number, true, false, null or @file; repeat for each field. |
| `--input <FILE>`              | File with the raw request body, or - for stdin.                               |
| `-H, --header <HEADER>`       | Add a request header as 'Name: value'; repeat for each header.                |
| `--paginate`                  | Follow next_cursor and merge the data of every page.                          |
| `-i, --include`               | Print the status line and response headers first.                             |

```sh
inboxjot api /v1/domains --paginate
inboxjot api /v1/contacts -F email=riti@example.com -F subscribed=true
```
