Claude Admin API permission_error — Admin Key Required, Not Regular API Key
Claude Admin API returned 403 permission_error because you're calling admin endpoints (workspaces, members, usage) with a regular API key. Admin API requires a separate admin key generated by the organization owner. This page maps the key hierarchy and least-privilege patterns for production admin flows.
Regular API keys (sk-ant-api03-) call /messages, /files, /batches. Admin API (workspaces, members, usage) requires an admin key (sk-ant-admin-) generated in Console → Settings → Admin Keys by an org owner. Never use admin keys in application runtime — only in operator-controlled contexts like dashboards, provisioning scripts, or CI/CD. Verify key prefix at client init.
The Error Messages You're Seeing
# Regular key against admin endpoint:
HTTP/1.1 403 Forbidden
{
"type": "error",
"error": {
"type": "permission_error",
"message": "This endpoint requires an admin API key. Regular API keys
cannot access organization management endpoints."
}
}
# Admin key lacking a specific scope:
{
"type": "error",
"error": {
"type": "permission_error",
"message": "This admin key does not have permission to modify workspace
settings. Required scope: workspace:write."
}
}
# Wrong org:
{
"type": "error",
"error": {
"type": "not_found_error",
"message": "Organization org_01ABC not found or admin key does not have access."
}
}
API Key Types & Capabilities (Nov 2026)
| Key type | Prefix | Can call | Who creates |
|---|---|---|---|
| Regular API key | sk-ant-api03- | /messages, /files, /batches, /count_tokens | Any workspace member |
| Admin key (org) | sk-ant-admin- | All admin endpoints + /messages (not recommended) | Organization owner only |
| Workspace admin key | sk-ant-admin-ws- | Admin ops within a single workspace | Workspace admin (paid tiers) |
Admin Endpoint Coverage
| Endpoint | Purpose | Required scope |
|---|---|---|
| GET /v1/organizations/{id}/workspaces | List workspaces | workspace:read |
| POST /v1/organizations/{id}/workspaces | Create workspace | workspace:write |
| GET /v1/organizations/{id}/members | List members | members:read |
| POST /v1/organizations/{id}/invites | Invite member | members:write |
| GET /v1/organizations/{id}/api_keys | List keys | api_keys:read |
| POST /v1/organizations/{id}/api_keys/{id}/revoke | Revoke key | api_keys:write |
| GET /v1/organizations/{id}/usage_report | Usage / spend | usage:read |
What Actually Causes This Error
Fixes That Work (Tested Nov 2026)
1Create a Scoped Admin Key (Console)
2Route Requests to the Right Key (Dual Client)
3Rotate Admin Keys Automatically
Preventing This Error Going Forward
- Segregate keys by purpose. Regular for /messages, admin for org management. Never mix.
- Never embed admin keys in customer-facing runtime. Backend jobs, dashboards, CI/CD only.
- Store in secret manager, not env files or code. Auditable access and rotation.
- Use least-privilege scoped admin keys. Read-only where possible; reduces blast radius.
- Rotate admin keys every 90 days. Automate creation before revoking current.
- Verify key prefix at client init. Catches wrong-key-in-wrong-slot bugs at boot.
- Monitor admin key usage in audit logs. Alert on unexpected patterns.
Researcher · AI Error Hub
Frequently Asked Questions
No. Admin endpoints require an admin key with the sk-ant-admin- prefix. This is a security boundary — regular keys, which get distributed to team members or embedded in production apps, can't accidentally manage the organization.
Only users with the organization owner role in the Anthropic Console. Regular members and workspace admins can't create org-level admin keys. On Enterprise plans, admin-key creation can be delegated to specific SSO groups.
Admin keys share the org's billing account. Usage via admin key for /messages (not recommended) bills to the org's default workspace. Admin-only endpoints (list workspaces, view usage) have no per-call cost — metadata ops are free.
Anthropic Console → Audit Log shows every admin API call with actor, endpoint, timestamp, and result. Filter by admin key ID to see one key's history. Export as CSV for compliance retention. On Enterprise, stream actions to your SIEM.
Yes on paid tiers via workspace admin keys (prefix sk-ant-admin-ws-). These have admin scope within a single workspace only — cannot create workspaces, invite members to the org, or see other workspaces.
Related Errors
Secure Your Claude Org
Weekly playbooks on API key management, admin operations, audit logging, and org governance. 12,000+ operators subscribe.
Subscribe Free →