API operation · mail group
GET
/mail/log
First published 3 Oct 2026
0.1.0Unchanged since publicationRead recent or newly appended mail log lines
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadallAnswers200 OK
The response contains a log object. When after is omitted, the operation reads from the end of the mail log. The lines parameter defaults to 100 and accepts whole numbers from 0 to 1000. Use match to find text such as an email address, queue ID, or word within the last 4 MB of the log. The filter accepts up to 200 characters without control characters.
The response includes a byte offset you can pass as after to follow the log. If the log has restarted since that offset, the response reports the reset and returns unfiltered lines. Invalid values for lines, match, or after return 400.
As a command
Run as root on the serverParameters
linesquery ·integer, 1 to 1000matchquery ·string, up to 200 charactersafterquery ·integer, 0 or moreByte offset from an earlier response, given as a nonnegative whole number of up to 15 digits. The operation reads lines appended after that offset and applies match case-insensitively unless the log has restarted.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/mail/log?lines=1&match=text&after=1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"log": {
"exists": 1,
"file": "urbestack-panel-20260909T101500Z.json.enc",
"lines": [
"text"
],
"match": "text",
"matched": 1,
"offset": 1,
"reset": 1,
"size": 1,
"truncated": 1
}
}Errors
5 errors, each a status and a sentence400<what> must be a whole number from 0 to <max>400<what> must be text without control characters, 1 to <max> characters400The filter is up to 200 printable characters400after must be a place in the log, a whole number401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-mail-log/