Create an API key
create_api_keyMint a new squirrelscan API key for this organization (requires credentials carrying the keys:write scope, which OAuth sign-in grants). The key is returned EXACTLY ONCE: show it to the user immediately and suggest saving it as the SQUIRRELSCAN_API_KEY environment variable for the CLI, CI, and MCP. Minted keys cannot themselves mint keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable label shown in the dashboard, e.g. "ci" or "claude-code". | |
| scopes | No | Scopes to grant (default: audits:write, audits:read, credits:read, org:read). Grantable: audits:write, audits:read, credits:read, org:read, org:write. | |
| expires_in_days | No | Expire the key after this many days (default: never expires). |