Api keys: create
api_keys_createCreate a scoped API key with optional expiry and permissions; the raw key is shown once and cannot be retrieved later.
Instructions
Create an API key. The raw key is shown once and never retrievable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the API key (e.g. "github-actions", "backup-script") | |
| save_as | No | Save the new key directly into a CLI profile instead of printing it | |
| expires_in | No | Days until the key expires (default: 90, max: 365 unless --no-expiry-cap) | |
| permissions | No | Comma-separated permission names, e.g. "data:read,data:create" | |
| no_expiry_cap | No | Allow --expires-in greater than 365 days (use sparingly) |