# See your inbox-link setting

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

Whether mail to you gets a "block this address" link, and how.

- Who can use it: Any signed-in account
- Area: Your addresses and blocking
- Answers 200 OK when it works
- Page: https://developer.mailmasker.org/block-link-setting

Incoming mail can carry a link that blocks the address it was sent to in one click. `enabled` is your own choice if you have made one, otherwise your domain's default (`domain_default`). `mode` is where the link goes: `header` (a List-Unsubscribe header), `body` (a line at the end of the message) or `both`.

## Examples

cURL:

```bash
curl -s 'https://api.mailmasker.org/api/v1/block-link/account' \
  -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/account',
    { 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 mail block-link show
```

## Response

200 OK:

```json
{ "enabled": true, "mode": "both", "domain_default": false }
```
