Domains and DNS
List extra addresses
GET /api/v1/domains/mail-aliases
Who can use this: Site admins As Markdown
source_pattern is an exact address, or @ and a domain for all of that domain's mail; domain catch-alls are listed here too. destination is the account it goes to, active whether its mail is delivered, and send_enabled whether that account may also send from it.
Parameters
Name Where What it is
destination
query
Only what is routed to this account.
cURL
Perl
homelab-cli
Copy
curl -s 'https://api.mailmasker.org/api/v1/domains/mail-aliases' \
-H "Authorization: Bearer $TOKEN"
use Mojo::Base -strict;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
my $res = $ua->get('https://api.mailmasker.org/api/v1/domains/mail-aliases',
{ Authorization => "Bearer $ENV{TOKEN}" })->result;
die $res->code, ' ', ($res->json('/error') // $res->message), "\n" unless $res->is_success;
print $res->body, "\n";
homelab-cli dns mail-aliases list
Response 200 OK
Copy
[
{
"id": 4,
"source_pattern": "@example.org",
"destination": "you@example.com",
"active": 1,
"send_enabled": 0,
"created_by": "you@example.com",
"created_at": "2026-11-03 21:42:10.123456-06",
"updated_at": "2026-11-03 21:42:10.123456-06"
},
{
"id": 5,
"source_pattern": "sales@example.com",
"destination": "you@example.com",
"active": 1,
"send_enabled": 1,
"created_by": "you@example.com",
"created_at": "2026-11-03 21:42:10.123456-06",
"updated_at": "2026-11-03 21:42:10.123456-06"
}
]