create_api_key
Mint an inbound relay (data-plane) API key for callers to send traffic to this project. Its er_live_ or er_test_ secret authenticates relay requests; it cannot call management MCP or REST. Returns the plaintext exactly once — store it now, it cannot be retrieved later. Editor + owner; subject to the project key policy (see get_key_policy).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | live → paid pool, test → testing pool (rate-limited to the plan's live rate). | |
| name | Yes | Human-readable label, up to 120 characters. | |
| ttlDays | No | Lifetime in days. Omit to use the project's defaultKeyTtlDays from get_key_policy. Null = never expires (owner-only unless editorsMayCreateNonExpiringKeys is set). |