# permission_denied: HTTP 403
URL: https://emailforagents.ai/docs/errors/permission_denied
Summary: The credential resolved to a valid principal, and that principal's current authority does not include the action you asked for. What triggers it in the implementation, and how to resolve it.

## permission_denied

HTTP 403 Don’t retry REST and MCP

The credential resolved to a valid principal, and that principal's current authority does not include the action you asked for.

### How to fix it

1. Call GET /me and compare the scopes it reports against the one the route needs. The response is the recomputed set, which is the set that will actually be used.
2. If the credential was fine yesterday, check whether the human who created it lost a role. Authority is intersected with that person's current grant on every request.
3. When creating a key, request only scopes you hold yourself. The check runs at creation, so a key that was minted successfully never carries a scope its creator lacked.
4. For an approval failure, send again for a fresh approval. An approval binds to the exact content and to the agent that asked, and expires after 7 days. If the approval was already consumed, its message went out; check the inbox before sending again.

### Which rule fired

Authority is recomputed on every request. The bearer token is a lookup handle, not a claim set: the server re-reads the credential's scopes from current database state and intersects them with the current grant of the human who authorised it, so revoking a person's access takes effect on the next request made by every credential they created. The single most common trigger is the scope check, which compares the required scope against that recomputed set. The most surprising ones are the creation-time checks on new credentials, which refuse to mint authority the creator does not already hold.

| In error.message | Means |
| --- | --- |
| `This credential cannot perform that action.` | The recomputed scope set does not contain the scope the route requires. There are 32 scopes and each route names the one it needs. |
| `Only a human member can perform this action.` | A route that only a human member may call was reached by an API key or a connection grant. |
| `Credential environment does not match the inbox.` | The credential's environment does not match the target inbox's environment. |
| `Sending is paused or the resource is inactive.` | A send meets a workspace whose sending is switched off or under abuse review, or an inbox or project that is not active. |
| `Sending is paused for this workspace.` | Reserving an upload in a live project while the workspace is not active, has sending switched off, or is suspended. |
| `Inbox is not active.` | Sending from an inbox whose status is not active. |
| `Sending domain is not ready.` | A live send whose sending domain is not ready: your own domain must be verified, attached and ready to send, and the platform domain active and ready to send. |
| `Project is not active.` | Creating an inbox in a project that is not active, such as one being deleted. Previewing, attaching or verifying a domain in a project that is not active. The project stops being active while a live inbox is being created on the platform domain. |
| `Approval is expired, consumed, or no longer valid.` | Sending against an approval that is expired, already consumed, bound to a different payload hash, or requested by a different principal. |
| `This approval cannot be used.` | Approving an approval that was rejected, invalidated or has expired. |
| `Approval is not pending.` | Rejecting an approval that is no longer pending. |
| `A credential cannot grant permissions its creator does not hold.` | Creating a credential that requests a scope the creator does not hold. A credential cannot exceed its creator, and this fails at creation rather than later at use. |
| `A scoped credential must choose allowed inboxes.` | A credential limited to some inboxes creates a key without naming inbox_ids. |
| `A credential must expire before its parent and in the future.` | Creating a credential whose expiry is in the past or later than the parent credential's own expiry. |
| `A credential cannot cross test/live environments.` | A non-human principal creating a credential for the other environment. An efa_test_ key cannot mint an efa_live_ one. |
| `Workspace key administration requires workspace access.` | Revoking a workspace-wide key, one tied to no project, with a credential limited to some projects. |
| `Cannot administer a broader credential.` | Revoking a key that holds a scope the caller does not hold. |
| `Cannot administer an unrestricted credential.` | Revoking a key with no inbox restriction, using a credential limited to some inboxes. |
| `Only a current workspace owner or administrator can change these controls.` | Saving an inbox's sending rules, or enabling, disabling or rotating a webhook, as a member who is not a workspace owner or administrator. |
| `Webhook endpoint is not active.` | Sending a test event to a webhook endpoint that is not active, such as a disabled one. |
| `This connection cannot use that tool.` | A tools/call naming a tool that the connection's scopes do not cover. The same filter that builds tools/list re-runs on the call. |
| `Not a member of this workspace.` | A signed-in person names a workspace in X-EFA-Workspace-Id that they are not a member of. |
| `Identity disabled.` | A signed-in person whose account has been disabled. |
| `This identity has reached the limit of five active owned workspaces.` | Creating a workspace when the signed-in person already owns five that are not deleted. |
| `This workspace is being deleted. API access is tombstoned.` | A signed-in member calls any route but the deletion routes for a workspace that is being deleted. Access is tombstoned rather than partially served; its keys and connections stop resolving and get unauthenticated. |
| `Checkout for this plan is not enabled.` | Starting checkout for a plan other than Builder or Team, or while checkout is switched off on this deployment. |
| `A subscription already exists. Manage the existing subscription instead.` | Starting checkout for a workspace that already has a subscription: active, trialing, past due, incomplete or unpaid. |
| `An existing checkout uses a different offer. Finish or expire it before starting this purchase.` | Starting checkout while an unexpired checkout for the workspace was opened for a different plan, price or terms version. |
| `This checkout action is no longer available.` | The workspace's pending checkout expired or was replaced before the new checkout session could be saved. |
| `Billing account environment mismatch.` | Starting checkout when the workspace's billing account was created in the other Stripe mode, test or live, than this deployment uses. |
| `Stripe environment mismatch.` | Starting checkout, Stripe created the customer in the other mode, test or live, than this deployment uses. |

**Why it works this way:** A key carries the people behind it. On every request its scopes are intersected with the current grant of each person in its parent chain, and with the connection it was minted from, so a key can never outlive or outgrow the people who authorised it. That is why a key loses a scope the moment the person behind it does.

### Example

POST /v1/projects/{project_id}/inboxes/{inbox_id}/messages → 403

```
{
  "error": {
    "code": "permission_denied",
    "message": "This credential cannot perform that action.",
    "request_id": "req_8Kd2x91",
    "retryable": false,
    "details": {}
  }
}
```

The MCP server answers with this body when it refuses a call itself. Inside a tool call it comes back as text in a result marked `isError: true`, without the code.

#### Where it appears

- Every /v1 route
- `GET /me`
- `POST /projects/{project_id}/keys`
- `POST /keys/{key_id}/revoke`
- `POST /projects/{project_id}/inboxes/{inbox_id}/messages`
- `POST /projects/{project_id}/approvals/{approval_id}/approve`
- `PUT /projects/{project_id}/inboxes/{inbox_id}/policy`
- `POST https://mcp.emailforagents.ai/mcp`

Paths are relative to `https://api.emailforagents.ai/v1`.

### Often confused with

[policy_denied](https://emailforagents.ai/docs/errors/policy_denied) [unauthenticated](https://emailforagents.ai/docs/errors/unauthenticated) [not_found](https://emailforagents.ai/docs/errors/not_found)
