# Delivery

## Get bounce summary for a period

<mark style="color:blue;">`GET`</mark> `https://api.smtpd.dev/api/v1/analysis/bounce/summary?from=1&to=2`

#### Path Parameters

| Name                                             | Type   | Description             |
| ------------------------------------------------ | ------ | ----------------------- |
| Authentication<mark style="color:red;">\*</mark> | string | `Bearer {access_token}` |

#### Query Parameters

| Name | Type   | Description                                                                                                                                                      |
| ---- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| from | number | <p>Unix Timestamp (epoch) in milliseconds - defaults to current time minus 31 days<br>\* Max range between <code>from</code> and <code>to</code> is 365 days</p> |
| to   | number | Unix Timestamp (epoch) in milliseconds - defaults to the current time                                                                                            |

{% tabs %}
{% tab title="200 " %}

```
{
  "total": 1075,
  "group_by": {
    "gmail.com": 669,
    "hotmail.com": 406
  },
  "period": {
    "from": 2039823098,
    "to": 234987234
  }
}
```

{% endtab %}
{% endtabs %}

## Get bounces by domain for a period

<mark style="color:blue;">`GET`</mark> `https://api.smtpd.dev/api/v1/analysis/bounce/domain/summary?from=1&to=2`

#### Path Parameters

| Name                                             | Type   | Description             |
| ------------------------------------------------ | ------ | ----------------------- |
| Authentication<mark style="color:red;">\*</mark> | string | `Bearer {access_token}` |

#### Query Parameters

| Name | Type   | Description                                                                                                                                                      |
| ---- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| from | number | <p>Unix Timestamp (epoch) in milliseconds - defaults to current time minus 31 days<br>\* Max range between <code>from</code> and <code>to</code> is 365 days</p> |
| to   | number | Unix Timestamp (epoch) in milliseconds - defaults to the current time                                                                                            |

{% tabs %}
{% tab title="200 " %}

```
{
  "total": 1075,
  "group_by": {
    "gmail.com": 669,
    "hotmail.com": 406
  },
  "period": {
    "from": 2039823098,
    "to": 234987234
  }
}
```

{% endtab %}
{% endtabs %}
