# `bird whatsapp agents allowlist create`

## Usage

```bash
bird whatsapp agents allowlist create <number-id> <phone-number> [flags]
```

## Description

Add a contact to an agent's allowlist

Allow one more contact for the agent on this WhatsApp number to answer while its `ai_audience` is `allowlist`. Use it to try the agent on chosen people before widening the audience to everyone.

Build the request from the &lt;phone\_number> argument, a JSON WhatsAppAgentAllowlistEntryCreate body via
--body-file ("-" reads stdin), or both — an inline value overrides the matching
body field. Run --example to print a ready-to-edit body, or --dry-run to print
the resolved request without sending it.

## Examples

```bash
# print the body shape (no credentials needed)
bird whatsapp agents allowlist create --example

# the body it prints:
```

```json
{
  "phone_number": "+31612340001"
}
```

## Options

#### Request

| Name                | Description                                                  |
| ------------------- | ------------------------------------------------------------ |
| `--body-file`       | Read the JSON request body from this file; "-" reads stdin   |
| `--example`         | Print a complete example request body, then exit             |
| `--dry-run`         | Print the resolved request without sending it, then exit     |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice |

#### Options

| Name                | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--response-schema` | Print the fields this command returns, then exit |

## Related

| Name                                                                                            | Description                                |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [`bird whatsapp agents allowlist delete`](/docs/cli/reference/whatsapp-agents-allowlist-delete) | Remove one of an agent's allowlist entries |
| [`bird whatsapp agents allowlist get`](/docs/cli/reference/whatsapp-agents-allowlist-get)       | Get one of an agent's allowlist entries    |
| [`bird whatsapp agents allowlist list`](/docs/cli/reference/whatsapp-agents-allowlist-list)     | List an agent's allowlist entries          |

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
