Create API key
create_api_keyCreate a long-lived API key (sd_live_…) for scripts and clients that can't refresh OAuth tokens. The full key is returned only now; store it. It's listed under Settings → API, where it can be revoked (keys can't be listed or revoked over MCP). Needs the owner's email confirmed first. Returns { apiKey, id, name, scopes, usage }. Requires scope locations:write (Admin role).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What it's for, e.g. "Yard system" | |
| scopes | No | Scopes to grant, no wider than your own. Omit to copy your current scopes. |