# 1. OAuth Client Credentials → Bearer JWT
TOKEN=$(curl -s -X POST https://auth.cplugin.net/connect/token \
-d 'grant_type=client_credentials&scope=webapi' \
-d "client_id=$CPLUGIN_CLIENT_ID" \
-d "client_secret=$CPLUGIN_CLIENT_SECRET" \
| jq -r .access_token)
# 2. List your trade platforms
curl -H "Authorization: Bearer $TOKEN" \
https://cloud.mywebapi.com/api/TradePlatforms
# 3. Ping one of them
curl -H "Authorization: Bearer $TOKEN" \
https://cloud.mywebapi.com/api/TradePlatforms/$ID/Ping
One source of truth, ReDoc
Full MT4 / MT5 ManagerAPI surface — Organizations, TradePlatforms, MT4ManagerAPI, MT5ManagerAPI. Same docs apply to Production and Sandbox environments.
RESTful WebAPI · ReDoc
Browse endpoints with request / response schemas, types, examples.
Swagger UI remains available, deprecated and slated for removal. · Test methods (no auth) ↗
Two environments, one API
Same surface, same OAuth flow, just different hosts. Sandbox is fully separated — no billing, no SLA, safe to break.
- REST cloud.mywebapi.com
- Auth auth.cplugin.net
- Hub /hubs/mt4/v1
- Manage toolbox.cplugin.com
Multi-region cloud (m2 / m3 / m4 / m9), DNS traffic manager routes to the nearest instance. Your pricing in Toolbox ↗
- REST pre.mywebapi.com
- Auth pre.auth.cplugin.net
- Hub /hubs/mt4/v1
- Manage pre.toolbox.cplugin.com
Fully separated environment with its own Toolbox for client and MT4 / MT5 connection management. No charges, no SLA, may be reset without notice. Use for integration testing before pointing at Production.
Realtime over SignalR
Hub /hubs/mt4/v1. Subscribe to ticks, margins, trade events. WebSockets / Long Polling / SSE — same code path. Auto-reconnect, bearer auth, typed contracts.
Working examples
Full source for download. Plug in your credentials, run, ship.