# api-keys Detailed flag specifications for `resend api-keys` commands. --- ## api-keys list List all API keys (IDs, names, `created_at`, and `last_used_at` — tokens never included). **Output:** `{"object":"list","data":[{"id":"...","name":"...","created_at":"...","last_used_at":"..."|null}]}` --- ## api-keys create | Flag | Type | Required | Description | |------|------|----------|-------------| | `--name ` | string | Yes (non-interactive) | Key name (max 50 chars) | | `--permission ` | string | No | `full_access` (default) \| `sending_access` | | `--domain-id ` | string | No | Restrict `sending_access` to one domain | **Output:** `{"id":"...","token":"re_..."}` — token shown once only. --- ## api-keys delete **Argument:** `` — API key ID | Flag | Type | Required | Description | |------|------|----------|-------------| | `--yes` | boolean | Yes (non-interactive) | Skip confirmation | **Alias:** `rm`