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

# PAMM API Integration

> Connect an external CRM to Codench for Masters, Investors, subscriptions, funding, and performance fees.

<div className="codench-hero">
  <div className="codench-kicker">Codench Social Trading</div>
  <h2>Operate the complete PAMM lifecycle from your CRM</h2>

  <p>
    Provision MT5 accounts, subscribe Investors to Masters, move capital safely,
    and reconcile every performance fee through a server-to-server API.
  </p>
</div>

This portal is for backend teams integrating an external CRM with the Codench PAMM engine. Your CRM remains responsible for customers, KYC, internal wallets, products, and its own accounting records.

<CardGroup cols={2}>
  <Card title="Understand the model" icon="network" href="/getting-started/integration-model">
    Separate CRM, PAMM, and MT5 responsibilities before moving funds.
  </Card>

  <Card title="Implement the lifecycle" icon="workflow" href="/guides/end-to-end">
    Follow the recommended sequence from account creation to reconciliation.
  </Card>

  <Card title="Manage subscriptions" icon="link" href="/guides/subscriptions">
    Assign and unassign Investors while respecting asynchronous states.
  </Card>

  <Card title="Reconcile fees" icon="receipt-text" href="/guides/performance-fees">
    Track fees by Investor and by the Master's payment account.
  </Card>
</CardGroup>

<Warning>
  The CRM API key and all MT5 passwords are backend-only secrets. Never expose them in a browser, mobile application, client-side log, or analytics platform.
</Warning>

## Integration surface

| Area             | What the API provides                             | What your CRM retains                         |
| ---------------- | ------------------------------------------------- | --------------------------------------------- |
| Accounts         | Create or register MT5 Masters and Investors      | Customer ownership and product mapping        |
| Subscriptions    | Assign an Investor and coordinate controlled exit | Customer intent and workflow status           |
| Funds            | Deposit to and withdraw from Investor accounts    | Internal ledger and transaction authorization |
| Performance fees | Configure rates and expose executed fee records   | Commercial distribution and reconciliation    |

<CardGroup cols={1}>
  <Card title="Next: Overview" icon="arrow-right" href="/getting-started/overview">
    See the complete integration at a glance.
  </Card>
</CardGroup>
