Create API Key
create_api_keyCreate a new API key in one of your workspaces. Requires admin access in that workspace. The plaintext key is shown exactly once in the response. It is never retrievable again after this call, so save it immediately.
Not available when this MCP connection is itself authenticated with an API key (headless mode): a leaked agent key must not be able to mint more keys. Mint keys from an interactive (OAuth) session or the console instead.
workspace: optional workspace id, workspace name, or org-name/workspace-name
when the same name occurs in two of your orgs (defaults to your default;
use list_workspaces to discover them).
name: a label for the key, shown in the workspace's key list later.
scopes: key capabilities: ["ingest"] (default) to send telemetry, add "read"
(["ingest", "read"] or ["read"]) for a key that can also be used as the
Authorization bearer for headless MCP connections.
The alert-management capabilities (alerts:manage, channels:manage) are
deliberately NOT mintable here — an admin issues those in the console,
because a key minted by an agent never expires by default and would be
an unbounded credential to leak.
Example:
Create an API key so this agent can send traces.
{ "name": "create_api_key", "arguments": { "name": "my-agent" } }Give it a key that can also read traces over MCP.
{ "name": "create_api_key", "arguments": { "scopes": ["ingest", "read"] } }Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | glassflow-connect-agent | |
| scopes | No | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |