Create API Key
create_api_keyCreate an ActivitySmith API key for code that calls the ActivitySmith API, such as a CI job, server, or script. The secret is returned once. Store it directly in the user's secret manager or a git-ignored environment file, never commit it or print it in chat, and tell the user where you saved it. Keys keep working after this MCP connection is disconnected; the user can delete them in the ActivitySmith web app. Use scope_mode "channels" with channel_slugs only when the key should reach a subset of recipients. Requires the "Manage API keys" permission, which the user grants on the ActivitySmith approval screen.
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 | Descriptive name, such as "GitHub Actions deploy" or "Production server". | |
| scope_mode | No | all (default) lets the key deliver to every device in the account. channels limits it to the channels in channel_slugs or channel_public_ids. | all |
| channel_slugs | No | Channel slugs from list_channels, used when scope_mode is channels. | |
| channel_public_ids | No | Channel public IDs from list_channels, used when scope_mode is channels. Combined with channel_slugs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| message | Yes |