Accounts
Connect and manage MT5 accounts. Each account occupies one slot of its tier.
- Stop disconnects the terminal but keeps the account, its stored credentials and its slot; start reconnects it. Use these to pause an account without losing your setup.
- Delete removes the account and frees its slot. A stopped account still occupies its slot and is still billed.
List accounts
/v1/accountsPaginated list of connected accounts with live data when running.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number (default 1). |
limit | integer | No | Items per page (default 25, max 100). |
curl https://api.metakit.cloud/v1/accounts \
-H "Authorization: Bearer stk_live_..."{
"data": [
{
"id": 1,
"created_at": "2026-07-10T12:00:00.000Z",
"updated_at": "2026-07-10T12:05:00.000Z",
"platform": "mt5",
"type": "full",
"account_name": "My Account",
"account_number": 40317,
"broker_id": 210,
"server": "itexsys-Platform",
"status": "connected",
"last_ping": "2026-07-10T12:05:00.000Z",
"client_name": null,
"mode": "demo",
"leverage": 100,
"currency": "USD",
"balance": 100000,
"credit": 0,
"equity": 99850,
"free_margin": 98500,
"used_margin": 1350,
"open_trades": 2,
"pending_orders": 0,
"daily_profit": -150,
"weekly_profit": 320,
"monthly_profit": 1240,
"total_profit": 8420
}
],
"page": 1, "limit": 25, "total": 1, "total_pages": 1
}Get account
/v1/accounts/{id}A single account by its numeric id.
curl https://api.metakit.cloud/v1/accounts/123 \
-H "Authorization: Bearer stk_live_..."{ "id": 1, "platform": "mt5", "type": "full", "status": "connected", "balance": 100000, "...": "..." }Connect account
/v1/accountsConnect an MT5 account into a free slot of the given tier. Returns 402 if no slot is available.
{
"name": "My Account",
"number": 40317,
"password": "secret",
"broker_id": 210,
"server": "itexsys-Platform",
"type": "full"
}curl https://api.metakit.cloud/v1/accounts \
-H "Authorization: Bearer stk_live_..." \
-H "Content-Type: application/json" \
-X POST \
-d '{
"name": "My Account",
"number": 40317,
"password": "secret",
"broker_id": 210,
"server": "itexsys-Platform",
"type": "full"
}'{ "id": 2, "status": "starting", "account_name": "My Account", "...": "..." }Update account
/v1/accounts/{id}Rename the account, or change the connection. To change the connection, provide broker_id, server AND password together (the container is recreated). Otherwise only account_name is updated.
{ "account_name": "Renamed" }
// or, to change the connection (all three required):
{ "broker_id": 42, "server": "ICMarketsSC-MT5", "password": "newpass" }curl https://api.metakit.cloud/v1/accounts/123 \
-H "Authorization: Bearer stk_live_..." \
-H "Content-Type: application/json" \
-X PATCH \
-d '{ "account_name": "Renamed" }
// or, to change the connection (all three required):
{ "broker_id": 42, "server": "ICMarketsSC-MT5", "password": "newpass" }'{ "id": 1, "account_name": "Renamed", "...": "..." }Stop account
/v1/accounts/{id}/stopDisconnects the account from the broker without deleting it. The account keeps its id, settings, stored credentials and slot, and its status becomes disconnected. While stopped, data and trading endpoints return 409 account_not_running, and copiers stop copying to or from the account. A stopped follower reports a copier.error for each trade it misses. Stopping an account that is already stopped does nothing and returns 200. Returns 409 operation_in_progress while another start or stop for the account is still running.
curl https://api.metakit.cloud/v1/accounts/123/stop \
-H "Authorization: Bearer stk_live_..." \
-X POST{ "id": 1, "status": "disconnected", "account_name": "My Account", "...": "..." }Start account
/v1/accounts/{id}/startReconnects a stopped account using its stored credentials. It also retries an account in error. The response returns status: "starting" straight away, and the connection completes in the background, as it does for a new account. Poll GET /v1/accounts/{id} until status is connected, or listen for the account.connected webhook. Starting an account that is already connected or starting does nothing and returns 200. Errors: 402 slot_inactive when the slot’s subscription has been canceled; 409 credentials_required when no credentials are stored (send broker_id, server and password with PATCH instead); 409 operation_in_progress while another start or stop is running.
curl https://api.metakit.cloud/v1/accounts/123/start \
-H "Authorization: Bearer stk_live_..." \
-X POST{ "id": 1, "status": "starting", "account_name": "My Account", "...": "..." }Delete account
/v1/accounts/{id}Removes the account and its terminal, and frees the slot for another account. This can’t be undone. To disconnect an account temporarily, use Stop instead. Returns 204.
curl https://api.metakit.cloud/v1/accounts/123 \
-H "Authorization: Bearer stk_live_..." \
-X DELETE204 No Content