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

# API Setup Guide

> Complete guide to setting up API access and programmatic signing with MPCVault.

Set up API access, test the token, and connect a client signer for the operations that need one.

## Choose Your Setup

> [card] API Token Only
>
> Query wallets, balances and signing requests. Record eligible API-user approvals without a signer. With full access, create requests on existing app-managed wallets and complete signing in the MPCVault App.

> [card] API Token + Client Signer
>
> Create API wallets and sign requests automatically. Your callback handler controls approval.

## Part 1: Create an API User (Required)

Every API integration starts with creating an API user and obtaining a token.

### Step 1: Create the API user

1. Go to [console.mpcvault.com](https://console.mpcvault.com).
2. Navigate to the **API** page (org admin required).
3. Click **Create an API user**.

![Create API User](https://mintcdn.com/mpcvault-47/du2KZeqk7fBywApH/guides/18-how-to-enable-api/createAPIuser.png?fit=max\&auto=format\&n=du2KZeqk7fBywApH\&q=85\&s=ff72dcc0839eadc56fa07f13b0f97058)

4. Fill in the required fields:

| Field | Description |
| - | - |
| Name | Unique identifier for this API user (must be unique within the organization) |
| Permission | Select which vaults this API user can access |
| IP Whitelist | (Optional) Restrict access to specific IP addresses (up to 3, comma-separated) |

5. Click **Create** to generate the API user.

### Step 2: Save your API token

After creation, a popup displays your API token. **Copy and save it immediately.**

> [!WARNING]
>
> You cannot retrieve the full API token again. If you lose it, you must generate a new one.

### Step 3: Test your token

Verify your token works by making a test request:

```bash theme={null}
curl -X POST https://api.mpcvault.com/v1/getWalletList \
  -H "Content-Type: application/json" \
  -H "x-mtoken: YOUR_API_TOKEN" \
  -d '{"vaultUuid": "your-vault-uuid","page":"0","limit":"10"}'
```

### Token access mode

Full-access tokens can create, execute and reject requests and update wallets within their configured vault access. Read-only tokens can query accessible data and use [ApproveSigningRequest](https://docs.mpcvault.com/api-reference/rest/approve-signing-request.md) for eligible policy-controlled API-user approvals, without signing or a ClientSigner. They cannot retrieve signature bytes. See [Access modes](https://docs.mpcvault.com/api-reference/authentication.md#access-modes).

### What you can do now

Continue with the [integration walkthrough](https://docs.mpcvault.com/api-reference/overview.md#quickstart) and [network examples](https://docs.mpcvault.com/api-reference/supported-networks). [Application examples and SDKs](https://github.com/mpcvault/mpcvaultapis/tree/main/examples) are available on GitHub.

***

## Part 2: Set Up the Client Signer (Optional)

> [!NOTE]
>
> **Skip this section** if you only query existing wallets, record API-user approvals, or use manual signing on app-managed wallets.

The client signer is required for API wallet creation and automated signing. It's a Docker container that runs on your infrastructure and programmatically approves transactions based on your business logic.

> [card] [Client Signer Setup](https://docs.mpcvault.com/guides/18-how-to-enable-api/client-signer.md)
>
> Complete guide to setting up the client signer, including key generation, Docker deployment, and callback handler implementation.

***

## Custom EVM Chains

The [custom EVM tutorial](https://docs.mpcvault.com/api-reference/evm/quickstart.md#use-a-custom-evm-network) covers network setup, transaction parameters, signing, application broadcast and confirmation.

## Troubleshooting

| Issue | Cause | Solution |
| - | - | - |
| `401 Unauthorized` | Invalid or expired token | Regenerate token in console |
| `403 Forbidden` | No access to vault | Check API user permissions |
| `404 Not Found` | Wrong endpoint or resource | Verify API endpoint and IDs |

For client signer troubleshooting, see the [Client Signer Setup](https://docs.mpcvault.com/guides/18-how-to-enable-api/client-signer.md#troubleshooting) guide.


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