Request an API key (human-gated)
request_api_keyRequest an API key for a specific scope. Submits a pending approval that a human must approve; once approved, returns a demo key. Use 'status:' to check an existing request.
Instructions
Request an API key for a given scope. This does NOT mint a key: it files a pending approval request that a human operator must approve out-of-band by running the companion CLI (npm run approve -- <id>). Approved requests carry a demo key in the deliberately fake sk-ant-demo-... format. If a request for the same scope was already approved, the existing demo key is returned. Pass an existing request id via scope prefixed with 'status:' to check status (e.g. scope='status:apprq_1234abcd').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | What the key is for, e.g. 'messages:write' or 'usage:read'. Or 'status:<request_id>' to check an earlier request. | |
| justification | Yes | Why the key is needed — shown to the human approver. |