GetMX-API
  1. Email
GetMX-API
  • Domain
    • Get Domains
      POST
    • Add Domain
      POST
    • Delete Domain
      POST
    • Get Domain Detail
      POST
    • Bind Domain to Group-Pay
      POST
    • Unbind Domain from Group-Pay
      POST
    • Update Domain
      POST
  • Group Pay
    • Get Group-Pays
      POST
    • Add Group-Pay
      POST
    • Update Group-Pay
      POST
  • Email
    • Get Emails (V1)
      POST
    • Get Emails (V2)
      POST
    • Add Email
      POST
    • Delete Email
      POST
    • Update Email
      POST
    • Clean up Email
      POST
    • Get Emails Total
      POST
  • Message
    • Get Messages
      POST
    • Get Message Detail
      POST
    • Delete Message
      POST
    • Flagged Message
      POST
    • Seen Message
      POST
    • Answered Message
      POST
    • Get Folders
      POST
    • Move Message Folder
      POST
  • Alias
    • Get Aliases
    • Add Alias
    • Delete Alias
    • Update Alias
  • Message Notice
    • Get Message Notices
    • Add Message Notice
    • Delete Message Notice
    • Check Message Notice
    • Update Message Notice
  • SMTP Rule
    • Get Smtp Rules
    • Add Smtp Rule
    • Update Smtp Rule
    • Delete Smtp Rule
  • Scale
    • Query Remaining Space
    • Server Reboot
    • Server Reset
    • Server Cleanup (Deprecated)
  1. Email

Get Emails (V2)

POST
/v2/mail/list

Request

Body Params multipart/form-data

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://domain-open-api.getmx.com/v2/mail/list' \
--form 'token="token"' \
--form 'offset="1753249650,1721249659550380508"' \
--form 'limit="20"' \
--form 'domain_id="12345678"' \
--form 'sort_value="created_at"' \
--form 'sort_type="desc"' \
--form 'mail="[email protected]"' \
--form 'mark="mark"'

Responses

🟢200成功
application/json
Body

Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "list": [
            {
                "id": "1723249659505345161",
                "mail": "[email protected]",
                "user_id": "1723479969183531831",
                "domain_id": "1723413456751264602",
                "status": 1,
                "mark": "",
                "mail_type": 0,
                "imap_id": "",
                "third_imap_status": 1,
                "admin_third_imap_status": 1,
                "third_pop_status": 1,
                "admin_third_pop_status": 1,
                "third_smtp_status": 1,
                "admin_third_smtp_status": 1,
                "active_status": 1,
                "message_size_status": 1,
                "migrate_status": 0,
                "preserved_status": -1,
                "message_inbox_num": 0,
                "message_size": 0,
                "last_login_time": 0,
                "created_at": 1723249659,
                "updated_at": 0
            }
        ],
        "next_offset": "1703249658,1703249658182781647",
        "has_more": true
    }
}
Modified at 2025-08-24 13:21:14
Previous
Get Emails (V1)
Next
Add Email
Built with