For the complete documentation index, see llms.txt. This page is also available as Markdown.

List access logs

Retrieve paginated access logs for the domain attached to the given mail order.

List access logs

get

Retrieve paginated access logs for the domain attached to the given mail order. Supports filtering by account, date range, protocol, status, and deletion flag. Results are sorted by timestamp descending.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
orderIdstringRequired

Order resource ID

Example: OR1a2b3c4d5e6f7g
Query parameters
accountstring · email · nullableOptional

Filter log entries by a specific email account

Example: user@example.com
datestring · date · nullableOptional

Exact date filter (YYYY-MM-DD). Takes precedence over from_date/to_date when both are given.

Example: 2026-03-16
from_datestring · date-time · nullableOptional

Date range start (RFC 3339)

Example: 2026-03-01T00:00:00Z
to_datestring · date-time · nullableOptional

Date range end (RFC 3339)

Example: 2026-03-31T23:59:59Z
statusstring · enum · nullableOptional

Filter log entries by status

Example: SuccessfulPossible values:
protocolstring · enum · nullableOptional

Filter access log entries by protocol

Example: imapPossible values:
has_deletionsboolean · nullableOptional

Filter access log entries by whether the session had deletions

Example: false
pageintegerOptional

Page number

Example: 1
per_pageinteger · max: 100Optional

Number of items per page

Default: 25Example: 25
Responses
200

Success response

application/json
get/api/mail/v1/orders/{orderId}/logs/access
GET /api/mail/v1/orders/{orderId}/logs/access HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "account": "user@example.com",
      "domain": "example.com",
      "session": "nVpwr1XahpcqAkeAAAQAAJjSnW8aYxyM",
      "protocol": "imap",
      "remote_ip": "192.168.0.1",
      "login_time": "2026-03-16T13:13:54Z",
      "in": 421,
      "out": 9381,
      "deleted": 0,
      "expunged": 0,
      "trashed": 0,
      "logout_time": "2026-03-16T13:13:55Z",
      "timestamp": "2026-03-16T13:13:55Z",
      "app_name": "com.google.android.gm",
      "has_deletions": false,
      "result": "ok",
      "status": "Access",
      "is_important": false
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 100
  }
}

Last updated

Was this helpful?