Get last mail path
GET /api/v2/MT4/{tradePlatform}/MailLast
Path of the most recent mail received in the pump cache.
Pump-cached read — returns the path/identifier of the last mail. Empty string when no mail has been received yet on the connection.
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) |
| 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. |
Responses
- 200 Success — StringApiResponse
Example
curl "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/MailLast" \
-H "Authorization: Bearer $TOKEN"