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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_api_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. |