create_api_key
Create an API key optionally scoped to a product. The plaintext secret is returned once; store it immediately.
Instructions
Create a new API key. The plaintext secret is returned ONCE — store it now. Optionally scope it to a single product with senderId (omit for a tenant-wide key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label for the key. | |
| scopes | No | Optional permission scopes. | |
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| senderId | No | Optional product/sender id to scope the key to. |