Skip to main content
This walkthrough uses leader account 139682 and follower account 146502. The values are illustrative.
1

Create or register the accounts

If an account does not exist in MT5, create it with POST /api/v1/mam/accounts/create. If it already exists, use POST /api/v1/mam/accounts/add.When importing an existing leader, set can_be_leader=true. The required history synchronization is created automatically:
Call GET /api/v1/mam/accounts/139682/history-sync until you receive COMPLETED. A follower with can_be_leader=false is available immediately. If you later enable it as a leader through PATCH /api/v1/mam/accounts/{account_login}, its history begins importing at that time.
2

Wait for the imported leader history

This step applies only to leaders that already existed in MT5. Until their history import is complete, the API responds with 409 when you attempt to create a subscription. If the import fails or is canceled, retry it before receiving investors.
3

Enable and publish the leader

Confirm can_be_leader=true on the operational account and create the profile.
Store the returned leader_id and payment_account_login.
4

Fund and validate the follower

Deposit with an idempotent key and then retrieve eligibility.
5

Create the allocation

Send the limit authorized by your CRM product in this request.
6

Activate and monitor

Change the status to ACTIVE with PATCH /api/v1/mam/allocations/{allocation_id}. Retrieve metrics, history, and subscribers as required by your product.
7

Terminate correctly

Use POST /api/v1/mam/allocations/{allocation_id}/unsubscribe. If you receive an in-progress status, monitor it until CANCELLED.
Do not terminate an active allocation with a direct PATCH to CANCELLED. The unsubscribe endpoint applies the configured policy and coordinates pending obligations.
Last modified on August 24, 2026