create_api_key
Create a new API key for your organization and retrieve the raw_key value, shown only once. Set an optional expiry and device limit to control access.
Instructions
Create a new API key for the current organization and return its raw_key value exactly once — it is never shown again, so store it immediately. expires_at optionally sets an ISO-8601 expiry and device_limit caps how many devices the key may register (validated against the plan ceiling, invalid_device_limit on excess). Key creation is rate-limited per organization (api_key_create_rate_limited). Use list_api_keys to see existing keys and revoke_api_key to retire one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Human-readable label identifying the key's purpose. | |
| expires_at | No | Optional ISO-8601 expiry timestamp for the key. | |
| device_limit | No | Optional per-key device cap; must not exceed the plan ceiling. |