Create an API key
The secret is returned exactly once. The key is always minted into the calling key’s workspace. Pass scopes to narrow what the key may do; omit it for the default set (runs:write, runs:read, vault:read, vault:write, verify). Add mcp explicitly for a key a headless agent will present to the MCP server; it is never in the default set and admin does not imply it. Add admin:read — alone, on a key named operator-diagnostics — for the operator diagnostic read (GET /v1/admin/runs*); it grants no write and no health, billing or backfill endpoint, and admin implies it. A key form should show the scopes before minting: production minted write access to runs and the vault from a form that named none of it (E2E3-14).
Request
- Base URL: https://api.hyperresearch.ai
- URL: https://api.hyperresearch.ai/v1/keys
- Auth: one of:
- HTTP bearer
- API key in cookie hr_session
Request body
Example request
{
"scopes": [
"runs:read",
"vault:read"
]
}Response
Created
Example response
{
"id": "key_01J9ZQ7V6H0000000000000000",
"masked": "hr_live_7Qa1bC3dE5f9…",
"secret": "hr_live_7Qa1bC3dE5f9…"
}Changes
No recorded changes to this operation across all 1 revision of this API.