Skip to main content
GET
/
inbound
/
logs
/
account
Get logs for all account domains
curl --request GET \
  --url https://api.jetemail.com/inbound/logs/account \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "_domain": "example.com",
      "_domain_uuid": "550e8400-e29b-41d4-a716-446655440000",
      "_domain_type": "domain",
      "date": "<string>",
      "from": "<string>",
      "to": "<string>",
      "subject": "<string>",
      "ip": "<string>"
    }
  ],
  "pagination": {
    "total": 450,
    "limit": 100,
    "offset": 0,
    "returned": 100
  },
  "domains_queried": [
    {
      "domain": "example.com",
      "domain_uuid": "<string>",
      "domain_type": "domain",
      "count": 123,
      "status": "success"
    }
  ],
  "total_domains": 5,
  "domains_included": 5
}

Authorizations

Authorization
string
header
required

API key for account management endpoints. Use your api_ prefixed token.

Query Parameters

domains
string

Comma-separated list of domain names to filter to (e.g. "example.com,mail.example.com"). If omitted, queries all domains in the account (up to 20).

logtype
enum<string>

Filter by log type

Available options:
spam,
delivery,
inbound,
outbound
to
string<email>

Filter by recipient email

from
string<email>

Filter by sender email

subject
string

Filter by subject

Maximum string length: 500
ip
string

Filter by IP address

date_from
integer

Start of date range (Unix timestamp)

date_to
integer

End of date range (Unix timestamp)

spamscore_min
number

Minimum spam score filter

spamscore_max
number

Maximum spam score filter

host
string

Filter by host

port
integer

Filter by port number

Required range: 1 <= x <= 65535
mode
enum<string>

Filter by connection mode

Available options:
smtp,
http,
https
limit
integer
default:100

Number of entries to return (applied after merging all domains)

Required range: 1 <= x <= 1000
offset
integer

Number of entries to skip

Required range: x >= 0
page
integer

Page number (alternative to offset, takes precedence)

Required range: x >= 1
sort_by
string
default:date

Field to sort by

sort_order
enum<string>
default:DESC

Sort direction

Available options:
ASC,
DESC

Response

Successfully retrieved account-wide logs

success
boolean
Example:

true

data
object[]

Merged and sorted log entries from all queried domains. Each entry includes _domain, _domain_uuid, and _domain_type fields identifying the source domain.

pagination
object
domains_queried
object[]

Status of each domain query

total_domains
integer

Total number of domains in the account

Example:

5

domains_included
integer

Number of domains actually queried (may be capped at 20)

Example:

5