Verify account password
POST /api/v2/MT4/{tradePlatform}/UserPasswordCheck/{login}
Verify an account password against the MT4 server.
POST body: the candidate password as a JSON string (e.g. "secret123").
Returns envelope with bool payload — true if MT4 server accepts
the password, false when wrapper returns InvalidLoginOrPassword
(envelope marked as MT4Error with the underlying ResultCode in
managerAPICode).
Read-only operation: no state changes. Idempotency-Key on this endpoint is supported but rarely useful — pin if your retry policy expects the same answer across attempts.
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tradePlatform | path | string (uuid) | yes | Trade platform id (GUID) |
| login | path | integer (int32) | yes | Account login (positive integer) |
| X-Request-Timeout | header | number (double) | no | How long to wait for the trade server, in seconds (1–300). Default for this operation: 15 s (change). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header. |
Request body
string (application/json) — Candidate password (JSON-encoded string body)
Responses
- 200 Success — BooleanApiResponse
Example
curl -X POST "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/UserPasswordCheck/$LOGIN" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '""'