• Support
  • cPanel & WHM Documentation
  • Developer Forums
  • Discord
    • Nothing Found
  • Support
  • cPanel & WHM Documentation
  • Developer Forums
  • Discord
    cPanel UAPI
    WHM API1
      Guide to WHM API 1
      WHM API
      Account Restoration
      Restore Account
      Restore Queue Management
      Restore Queue Reporting
      Accounts
      Account Creation
      Account Enhancements
      Account Management
      Bandwidth and Disk Quotas
      Domain Information
      Passwords
      Styles
      Suspensions
      API Development Tools
      API Execution
      API Statistics
      API Token Management
      Applications
      Session
      Authentication
      Authentication Providers
      External Authentication
      Login URL
      SSH Keys and Connections
      Two-Factor Authentication
      Backups
      Backup Destination
      Backup or Restore
      Backup Settings
      Legacy Migration
      Commerce Integration
      Market Integration
      Sitejet
      cPanel Market
      Product Management
      Provider Management
      cPanel Support Tickets
      Support Access
      Ticket Management
      Customizations
      Customizations
      Databases
      Manage MySQL Server
      MySQL Databases
      PostgreSQL Databases
      Remote MySQL Databases
      DNS
      DNS Cluster Settings
      DNS Security
      DNS Zones
      Domain Management
      Domain Management
      Resolvers
      Hosting Plans
      Feature Access
      Feature Lists
      Hosting Plan Extensions
      Hosting Plans
      Integrations
      API Authentication
      Links
      Scripts Hooks
      IP Address Management
      IPv4 Address Settings
      IPv6 Address Settings
      Network Address Translation
      Login Security (cPHulk)
      Management
      Reporting
      Settings
      Mail
      cPanel Account Mail Management
        get
        Return email delivery records by search criteria
        get
        Return cPanel account email tracking statistics
        get
        Return all cPanel accounts email tracking statistics
        get
        Remove email account messages by Dovecot query
        get
        Remove email account messages by mailbox GUID
        get
        Return cPanel account mailboxes status by name
        get
        Return cPanel account mailboxes status list
        get
        Return cPanel account unique email recipients
        get
        Return all cPanel account unique email recipients
        get
        Return cPanel account forward destination
        get
        Add cPanel account to outbound email hold queue
        get
        Return cPanel account's email accounts
        get
        Release cPanel account queued outgoing emails
        get
        Update cPanel account email forward destination
        get
        Suspend cPanel account outgoing email
        get
        Stop cPanel account IMAP and POP3 connections
        get
        Unsuspend account outgoing email
      Mail DNS Settings
      Mail Server Settings
      Spam Management
      Spam Protection (Greylisting)
      NGINX Manager
      NGINX Manager
      Resellers
      Account Enhancement Limit
      Account Limits
      Account Permissions
      Account Settings
      Reseller Account Management
      Security
      WHM Access
      Server Administration
      Configuration Clusters
      Configurations
      Connected Applications
      Connections
      cPanel Analytics
      License Management
      Notifications
      Plugin-Based Features
      Security
      Server Nodes
      Server Profiles
      Services
      System Information
      Updates
      SSL Certificates
      Auto-Generated Certificates
      cPanel Account Settings
      SSL Server Settings
      System Package Management
      Install or Uninstall Package
      List Package Information
      Package Manager Settings
      Transfers
      cPanel Account Transfer
      Transfer Configuration
      Transfer Monitoring
      Web Server Configuration
      EasyApache Settings
      PHP
      PHP-FPM
      Web Server Security (ModSecurity)
      Rule Settings
      Rule Vendor Settings
      Server Settings

Return email delivery records by search criteria

This function retrieves email delivery records.

Warning:

  • On most servers, this function returns a large amount of output. We strongly recommend that you filter and sort the output.

  • The following example uses the filter and sort options:

    https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_search?api.version=1&api.filter.enable=1&api.filter.a.field=sendunixtime&api.filter.a.arg0=1628889719&api.filter.a.type=gt&api.filter.b.field=sendunixtime&api.filter.b.arg0=1629847321&api.filter.b.type=lt&api.sort.enable=1&api.sort.a.field=sendunixtime&api.sort.a.reverse=0&api.chunk.enable=1&api.chunk.size=25&api.chunk.start=1&success=1

SecurityBasicAuth
Request
query Parameters
defer
integer
Default: 0

Whether to return delivery deferral events.

  • 1 — Return delivery deferral events.
  • 0 — Do not return delivery deferral events.
Enum: 0 1
Example: defer=0
deliverytype
string
Default: "all"

The type of delivery records to retrieve.

  • all — Retrieve all delivery records.
  • remote — Retrieve remote delivery records.
  • local — Retrieve local delivery records.
Enum: "all" "remote" "local"
Example: deliverytype=all
failure
integer
Default: 0

Whether to return delivery failure events.

  • 1 — Return delivery failure events.
  • 0 — Do not return delivery failure events.
Enum: 0 1
Example: failure=0
inprogress
integer
Default: 0

Whether to return delivery attempts in progress.

  • 1 — Return delivery attempts in progress.
  • 0 — Do not return delivery attempts in progress.
Enum: 0 1
Example: inprogress=0
max_results_by_type
integer
Default: 0

The number of results to return for each type.

Note

If you set this parameter to 0, the function returns unlimited results.

Example: max_results_by_type=3
success
integer
Default: 0

Whether to return successful delivery attempts.

  • 1 — Return successful delivery attempts.
  • 0 — Do not return successful delivery attempts.
Enum: 0 1
Example: success=0
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/emailtrack_search
Request samples
  • CLI
  • URL
whmapi1 --output=jsonpretty \
  emailtrack_search
Response samples
  • 200
application/json
{
  • "data": {
    • "records": [
      • {
        • "actiontime": "2012-02-06T14:17:51.000Z",
        • "actionunixtime": 1328559471,
        • "deliveredto": null,
        • "deliverydomain": null,
        • "deliveryuser": null,
        • "domain": "example.com",
        • "host": null,
        • "ip": null,
        • "message": "Domain example.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded.",
        • "msgid": "1RuV0Z-0005NR-BN",
        • "recipient": "user@example.com",
        • "router": "enforce_mail_permissions",
        • "sender": "user@example.com",
        • "senderauth": "localuser",
        • "senderhost": "localhost",
        • "senderip": "127.0.0.1",
        • "sendunixtime": 1328559471,
        • "size": 1653,
        • "spamscore": 5,
        • "transport": null,
        • "transport_is_remote": 0,
        • "type": "success",
        • "user": "cpanel1"
        }
      ]
    },
  • "metadata": {
    • "command": "emailtrack_search",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}
©2025 WebPros International, LLC All rights reserved.Privacy PolicyTrademarks