Mint a narrower credential
Least privilege for agents (PLAN §8.2). Hand a subtask a credential that can only do the subtask: an hour of life, one deployment, no spending.
A child can never exceed its parent, on any axis — scopes, lifetime, budget, or which resources it may touch (the monthly budget and resource quotas are axes too). Asking for more is refused with the reason, never silently trimmed.
Over REST the parent is the API key making the call, so its granted scopes are the ceiling; there is no expiry or spend history to clamp to, and the absolute caps apply instead. Minting from an MCP token (via impreza_mint_subcredential) additionally clamps the child to the parent's remaining lifetime and remaining daily budget (and, once released, its remaining monthly budget).
The scope on this route is read, which looks wrong for a write and is not: attenuation is the authority check, and requiring manage would mean only the most powerful credential could ever delegate. Sprawl is bounded by per-parent and per-account limits instead.
The token is returned once. There is no path that reads it back.
Request
- Base URL: https://api.imprezahost.com/v1
- URL: https://api.imprezahost.com/v1/credentials
- Auth: API key in header X-API-Key and API key in header X-API-Secret
Request body
Response
The new credential, with its token (shown once)
Changes
No recorded changes to this operation across all 1 revision of this API.