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

# API Reference

> Explore Portal's three REST APIs for MPC wallet operations, client-side actions, and custodian management.

Portal exposes three REST APIs, each serving a different role in the wallet lifecycle. All APIs use bearer token authentication via the `Authorization` header.

<Card title="Enclave MPC API" icon="key" href="/apis/enclave-mpc/api-reference-link">
  **Base URL:** `https://mpc-client.portalhq.io`

  Core cryptographic operations — wallet generation, backup, recovery, and transaction signing. This is the lowest-level API and handles all MPC operations directly.

  * **Wallet Management** — Generate, backup, and recover wallets
  * **Signing** — Send assets, sign messages, and presign transactions
</Card>

<Card title="Client API" icon="user" href="/apis/client/api-reference-link">
  **Base URL:** `https://api.portalhq.io/api/v3`

  Everything a client (end user) can do with their wallet — view balances, send transactions, manage shares, swap tokens, and more.

  * **Clients** — Client details and eject
  * **Transactions** — Build, broadcast, simulate, and fund
  * **Wallet Metadata** — Assets, NFTs, and transaction history
  * **Wallet Shares** — Signing and backup share management
  * **Delegations** — EVM and Solana delegation operations
  * **Session Keys** — Add and revoke session keys
  * **EIP-7702** — Account type and authorization transactions
  * **Li.Fi** — Cross-chain routing and bridging
  * **0x** — Token swap quotes and pricing
  * **Yield.xyz** — Yield positions and actions via Yield.xyz
  * **Blockaid** — Transaction and address security scanning
  * **Hypernative** — Threat detection for transactions, addresses, and URLs
</Card>

<Card title="Custodian API" icon="building" href="/apis/custodian/api-reference-link">
  **Base URL:** `https://api.portalhq.io/api/v3`

  Manage clients and their wallets on their behalf — create clients, build transactions, configure alerts, and sponsor gas.

  * **Clients** — Create clients, sessions, and web OTPs
  * **Transactions** — Build transactions on behalf of clients
  * **Wallet Metadata** — View client assets and NFTs
  * **Wallet Shares** — Enable and prepare eject for clients
  * **Delegations** — View delegation status and transfer
  * **Alert Webhooks** — Configure and manage alert delivery
  * **Gas Sponsorship** — View and update gas sponsor settings
</Card>
