Repository navigation
Document IP allowlisting for API keys - #769
Conversation
Add a Limit a key to your IP ranges section with the source_ip condition: what it restricts, how it evaluates (CIDR-only values, audited 403 with the client IP, edge-proxy-reported address), and adding or changing rules on an existing key without rotating its credential. The update section covers replacing permissions in place, and the permissions reference gains a Conditions section with the condition fields and the delegation rule. Note the hosted MCP caveat while MCP support is pending.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4e45add. Configure here.
| </CodeGroup> | ||
|
|
||
| ## Rename or delete an API key | ||
| ## Rename, update permissions, or delete an API key |
There was a problem hiding this comment.
Renamed heading drops previous anchor
Low Severity
The heading was retitled, so its hash is no longer rename-or-delete-an-api-key. Moved headings keep a hidden anchor stub so existing hash links keep resolving; this retitle does not add one.
Reviewed by Cursor Bugbot for commit 4e45add. Configure here.


Summary
The
source_ipcondition shipped on the API (create + in-place update). These are the prose docs for it:403 insufficient_scoperecorded in audit logs with the client IP, edge-proxy-reported address not client-supplied, per-statement narrowing), and a Add an IP allowlist to an existing key subsection with the in-placepolicyupdate in TypeScript + Python. Retitled Rename, update permissions, or delete an API key, documented full replacement + ~10s cache propagation + no un-restrict path, extended the troubleshooting table with the condition 400s, and added a Note on the hosted-MCP caveat.key/operator/values), the evaluation rules including the delegation rule (a scoped key can't delegate a wider condition), and the cross-link to the in-place update.The generated reference pages (
api-reference/api-keys/*) carry the same story via the endpoint descriptions in kernel/kernel #5610.No
docs.jsonchanges; navigation entries for both pages already exist.Test evidence
docs.jsonvalidates as JSON.info/); no build step exists for this Mintlify repo. Examples use real parameter values per the style guide.Note
Low Risk
Prose and MDX documentation only; no runtime or API behavior changes in this diff.
Overview
Documents the
source_ippolicy condition for scoped API keys: statements can narrow allowed requests to 1–16 CIDR networks, with validation and403 insufficient_scopebehavior called out.On
info/api-keys.mdx, adds Limit a key to your IP ranges (when to use IP pinning, CIDR rules, edge-reported client IP, audit logging), Add an IP allowlist to an existing key with in-placepolicyupdate examples (TypeScript/Python), full policy replacement and ~10s cache propagation, and a hosted MCP caveat. The rename/delete section is retitled to cover update permissions without rotation, and troubleshooting now includes malformed-condition400s.On
info/api-key-permissions.mdx, adds a Conditions section (fields table, per-statement semantics, delegation narrowing, link to in-place updates) and ties conditions into the policy overview.Reviewed by Cursor Bugbot for commit 4e45add. Bugbot is set up for automated code reviews on this repo. Configure here.