# See someone's invite limits

`GET https://api.mailmasker.org/api/v1/invites/quota/:sender_email`

The invite limits that apply to one sender.

- Who can use it: Site admins
- Area: Invites
- Answers 200 OK when it works
- Page: https://developer.mailmasker.org/invite-quota-show

Their own limits if a site admin has set them, otherwise the site's defaults. The answer looks the same either way.

## Parameters

| Name | In | Required | What it is | Example |
|---|---|---|---|---|
| `sender_email` | path | yes | The sender's address. | `alex@example.com` |

## Examples

cURL:

```bash
curl -s 'https://api.mailmasker.org/api/v1/invites/quota/alex%40example.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/invites/quota/alex%40example.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 invite quota show --user alex@example.com
```

## Response

200 OK:

```json
{ "max_pending": 20, "max_per_day": 10 }
```
