> ## Documentation Index
> Fetch the complete documentation index at: https://docs.palpluss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP keys and approvals

> Give AI tools limited access to your PalPluss account, with permissions, payout limits and approvals enforced by PalPluss itself.

# MCP keys and approvals

A **standard** API key has full access to your account. It belongs on your own server. For AI tools such as Claude Code, Cursor or an AI app builder, create an **MCP key** instead. PalPluss enforces its limits on every request, so they hold no matter which tool uses the key.

## Create an MCP key

In the [console](https://console.palpluss.com), open **API Keys → Create new key**, choose **AI tools (MCP)**, then set:

* **Permissions.** Only what you switch on works.
* **Payout limits**, if the key may send payouts.
* **Approvals.** Choose whether payouts and channel changes wait for you.
* **Expiry**, and optionally **allowed IP addresses**.

You can change all of these later. Changes apply from the next request.

An account can have up to **10 API keys**, counting standard keys, MCP keys, revoked keys and connected apps. To add another once you reach the limit, delete a key you no longer use under **API Keys**. Deleting a key stops it working immediately.

### Permissions

| Permission | Allows |
| - | - |
| `transactions:read` | `GET /transactions`, `GET /transactions/{id}` |
| `wallets:read` | Wallet balances and `GET /wallets/history` |
| `wallets:topup` | Service and B2C wallet top-ups |
| `payments:stk` | `POST /payments/stk` |
| `paylinks:read` | `GET /payment-links` |
| `paylinks:write` | Create and disable payment links |
| `channels:read` | List and view payment channels |
| `channels:write` | Create, change and remove payment channels |
| `payouts:write` | `POST /b2c/payouts` |

A request without the right permission returns `403 INSUFFICIENT_SCOPE`. `GET /api-key`, `GET /fees/estimate` and `GET /approvals` need no permission.

### Payout limits

* **Largest payout**: the most a single payout can be.
* **Per day, total** and **payouts per day**: counted per key over the Nairobi calendar day. Payouts waiting for approval count, so they can't be used to go over the limit.
* **Only pay these numbers**: optional. When set, payouts to any other number are refused.

A payout that would break a limit is refused before anything happens, with `PAYOUT_ABOVE_KEY_LIMIT`, `PAYOUT_DAILY_TOTAL_REACHED`, `PAYOUT_DAILY_COUNT_REACHED` or `PAYOUT_RECIPIENT_NOT_ALLOWED`.

## Approvals

When approvals are on, a payout or channel change made with the key doesn't happen right away. The API answers `202 Accepted`:

```json theme={null}
{
  "success": true,
  "data": {
    "status": "PENDING_APPROVAL",
    "approvalId": "8f8c57e1-5a15-44a0-9538-f0545ca9fa74",
    "action": "PAYOUT",
    "expiresAt": "2026-11-15T12:15:00.000Z",
    "approveUrl": "https://console.palpluss.com/approvals?request=8f8c57e1-…",
    "message": "Waiting for the merchant to approve this in the PalPluss console. Nothing has been done yet."
  }
}
```

The request appears in the console under **Approvals**, with the amount, the full recipient number and the key that asked. Then:

* **Approve**: PalPluss runs the request straight away.
* **Reject**: nothing happens. You can give a reason, which is returned to the app.
* **No decision within 15 minutes**: the request expires and nothing happens.

Follow the outcome with [`GET /approvals/{id}`](https://docs.palpluss.com/api-reference/approvals/get). Its final `status` is `EXECUTED` (with the API response in `result`), `REJECTED`, `EXPIRED` or `FAILED` (with the reason in `error`).

Send an `Idempotency-Key` header with payouts. Repeating a request with the same key returns the same approval rather than creating a second one, and an approved payout can never be paid twice.

## Check a key from code

`GET /api-key` returns the calling key's kind, mode, permissions, limits and today's payout usage:

```bash theme={null}
curl https://api.palpluss.com/v1/api-key -u "$PALPLUSS_API_KEY:"
```

## Connected apps (sign in with PalPluss)

Apps that support MCP sign-in can connect to PalPluss' hosted MCP server at `https://api.palpluss.com/mcp`. You sign in to the console, choose the permissions and limits, and allow access. The app then appears under **API Keys** as a connected app. Change its settings there, or revoke it to disconnect the app immediately. See [AI Tools (MCP)](https://docs.palpluss.com/sdks/mcp.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.