Get your free beta license ↗
API operation · mail group
GET

/mail/trace/reverse

First published 15 Oct 20260.2.2Unchanged since publication

Look up reverse DNS names for IP addresses

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 OK

The operation looks up reverse DNS for up to 64 distinct IP addresses in parallel. The API ignores empty entries and returns 400 unless ips contains 1 to 64 nonempty entries, each 2 to 45 characters long and consisting only of hexadecimal digits, periods, and colons.

As a command

Run as root on the server

Parameters

ipsquery ·string, up to 3000 charactersRequired
Comma-separated IPv4 or IPv6 addresses, with no spaces. Supply 1 to 64 IP addresses.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/mail/trace/reverse?ips=text" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "ips": [
    {
      "country": "text",
      "ip": "203.0.113.7",
      "reverse": "text"
    }
  ]
}

Errors

15 errors, each a status and a sentence
400--q, --id, --message-id, --reverse or --files is required
400A Message-ID has the shape local@domain
400A queue id is 6 to 20 uppercase hexadecimal characters
400At most 64 addresses at once
400Give an address, a queue id or a Message-ID to search for
400Invalid setting key
400Search for an address, a queue id (6 to 20 uppercase hexadecimal characters) or a Message-ID in angle brackets
400dir is any, sender or recipient
400ips is a list of IP addresses separated by commas
400ips names 1 to 64 addresses
401Authentication required
404No message <qid> in the kept logs
404No message with the Message-ID <<mid>> in the kept logs
404No such user: <owner>
404Setting '<key>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.2 on 15 Oct 2026.
urbestack.com/docs/api/get-mail-trace-reverse/