# See a domain's inbox-link default

`GET https://api.mailmasker.org/api/v1/block-link/domains/:domain`

Whether accounts on a domain get a "block this address" link by default, and where it goes.

- Who can use it: Site admins
- Area: Domains and DNS
- Answers 200 OK when it works
- Page: https://developer.mailmasker.org/domain-block-link-show

The setting covers accounts whose login address is at this domain. `enabled` is the default each of them follows until it makes its own choice. `mode` is where the link goes, for all of them: `header` (a List-Unsubscribe header), `body` (a line at the end of the message) or `both`.

## Parameters

| Name | In | Required | What it is | Example |
|---|---|---|---|---|
| `domain` | path | yes | The domain name. | `example.com` |

## Good to know

- A domain that has never been set answers `enabled` false and `mode` header, with no `updated_at`.

## Examples

cURL:

```bash
curl -s 'https://api.mailmasker.org/api/v1/block-link/domains/example.com' \
  -H "Authorization: Bearer $TOKEN"
```

Perl:

```perl
use Mojo::Base -strict;
use Mojo::UserAgent;

my $ua  = Mojo::UserAgent->new;
my $res = $ua->get('https://api.mailmasker.org/api/v1/block-link/domains/example.com',
    { Authorization => "Bearer $ENV{TOKEN}" })->result;
die $res->code, ' ', ($res->json('/error') // $res->message), "\n" unless $res->is_success;
print $res->body, "\n";
```

homelab-cli:

```bash
homelab-cli admin block-link domain show example.com
```

## Response

200 OK:

```json
{
  "domain_name": "example.com",
  "enabled": 1,
  "mode": "both",
  "updated_by_email": "you@example.com",
  "updated_at": "2026-11-03 21:42:10.123456-06"
}
```
