Pass the key on every request as:
Generating an API key
- Sign in at HERO.
- Open Settings and click Generate new API key.
- Choose a name, workspace scope (all of your workspaces, or specific ones), and an expiry. Copy the key — it’s shown once.
- Use it in any
Authorization: Bearer <key>header.
Revoking a key from the same settings page invalidates it immediately.
Using the same key for MCP
Yourhero_ak_* API key also authenticates MCP clients (Cursor, VS Code, Claude Desktop, Claude Code) — see MCP authentication for client-config snippets and the OAuth alternative. Tokens issued from the MCP settings page (hero_at_* prefix) work the same way; the two settings pages are just convenience for the two surfaces.