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 the trade server answers
InvalidLoginOrPassword (then error.code is MT4Error and
error.managerCode carries the result code).
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: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
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: 10 s (read). 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 '""'