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

Follow [API Setup](https://docs.mpcvault.com/guides/18-how-to-enable-api/index.md#part-1-create-an-api-user-required) to create an API user, configure vault access and test the token.

## Using Your Token

REST sends the token in the HTTP header; gRPC sends it as request metadata:

```http theme={null}
x-mtoken: <API_TOKEN>
```

## Access modes

Vault access remains limited to the API user's configured organization and vault permissions.

| Operation | Token access |
| - | - |
| Query wallets, balances and accessible signing requests | Full access or read-only |
| Record an eligible API-user approval with [ApproveSigningRequest](https://docs.mpcvault.com/api-reference/rest/approve-signing-request.md) | Full access or read-only, subject to the request's approval policy |
| Create requests or wallets, execute wallet signing, reject requests, or update wallets | Full access |
| Read complete signature bytes or an available signed transaction | Full access; `signedTransaction` on a SigningRequest is available only from GetSigningRequestDetails |

Read-only tokens do not receive `signatures` or signed transaction bytes. The approval method is a policy-controlled exception: it records this API user's approval without signing or requiring a ClientSigner. A returned [pending operation](https://docs.mpcvault.com/api-reference/signing-request.md#pending-operation) does not grant permission to perform its action.

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


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