> ## 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.

# Authentication

> How to authenticate with the MPCVault API.

All API requests require the `x-mtoken` header with your API token.

## Getting Your Token

1. Log in to your MPCVault Dashboard
2. Navigate to **Settings > API**
3. Generate a new API token
4. Store it securely - it won't be shown again

## Using Your Token

Include the token in the `x-mtoken` header:

```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"}'
```

## Security Best Practices

* **TLS Required** - All requests must use TLS 1.2+
* **IP Allowlist** - Restrict API access to specific IPs in the Dashboard
* **Token Safety** - Never expose tokens in client-side code or version control
* **Rotate Regularly** - Generate new tokens periodically and revoke old ones
