> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bronto.io/llms.txt
> Use this file to discover all available pages before exploring further.

# bronto api-keys

> Manage API keys

Manage API keys

> [!TIP]
>
> * **Platform docs:** [docs.bronto.io/Account-Management/API-Keys](https://docs.bronto.io/Account-Management/API-Keys.md)
> * **API reference:** [docs.bronto.io/api-reference/api-keys/retrieve-a-list-of-api-keys](https://docs.bronto.io/api-reference/api-keys/retrieve-a-list-of-api-keys.md)

```sh theme={"dark"}
bronto api-keys <command> [flags]
```

#### Subcommands

| Command | Description |
| - | - |
| [`bronto api-keys create`](https://docs.bronto.io/cli/reference/commands/api-keys#bronto-api-keys-create) | Create an API key |
| [`bronto api-keys delete`](https://docs.bronto.io/cli/reference/commands/api-keys#bronto-api-keys-delete) | Delete an API key |
| [`bronto api-keys list`](https://docs.bronto.io/cli/reference/commands/api-keys#bronto-api-keys-list) | List API keys |
| [`bronto api-keys update`](https://docs.bronto.io/cli/reference/commands/api-keys#bronto-api-keys-update) | Update an API key |

Also accepts the [global flags](https://docs.bronto.io/cli/reference/commands/global-flags.md).

## bronto api-keys create

Create an API key

```sh theme={"dark"}
bronto api-keys create [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](https://docs.bronto.io/cli/reference/commands/global-flags.md).

#### Examples

```sh theme={"dark"}
bronto api-keys create -f name=<name> -f 'roles=["IngestionApi"]'
bronto api-keys create --input body.json
```

## bronto api-keys delete

Delete an API key

```sh theme={"dark"}
bronto api-keys delete <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--yes` | | bool | | skip the confirmation prompt |

Also accepts the [global flags](https://docs.bronto.io/cli/reference/commands/global-flags.md).

#### Examples

```sh theme={"dark"}
bronto api-keys delete <id> --yes
```

## bronto api-keys list

List API keys

```sh theme={"dark"}
bronto api-keys list [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--reveal` | | bool | | show full secret values instead of masking them |

Also accepts the [global flags](https://docs.bronto.io/cli/reference/commands/global-flags.md).

#### Examples

```sh theme={"dark"}
bronto api-keys list
```

## bronto api-keys update

Update an API key

```sh theme={"dark"}
bronto api-keys update <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](https://docs.bronto.io/cli/reference/commands/global-flags.md).

#### Examples

```sh theme={"dark"}
bronto api-keys update <id> -f name=<name>
bronto api-keys update <id> --input body.json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.