# sendings_events_history (timeseries)

| Required permit | Rate limit tokens cost | Available intervals |
| --- | --- | --- |
| Reporting:Api:Report:SendingsEventsHistory | 3 | 5m, 1h, 1d, 1w, 1mo |

This report allows you to get events which are produced during sending.

This report includes events which are common for each available channel.

## Fields

### loyalty_club_id

| Type | Filterable |
| --- | --- |
| Integer | <Icon icon="material-outline-done"/> (via `X-Customer` header) |

ID of loyalty club.

### sending_id

| Type | Filterable |
| --- | --- |
| Integer | <Icon icon="material-outline-done"/> |

Internal ID of sending.

### event_type

| Type | Filterable |
| --- | --- |
| Enum | <Icon icon="material-outline-done"/> |

Type of sendings event.

This field is an enum, possible values are:

* new
* transmitted
* transiently_failed
* delivered
* opened
* opened_event
* failed
* delivery_errored

### service_type

| Type | Filterable |
| --- | --- |
| Enum | Depends on aggregation |

Sending's service_type.

### campaign_id

| Type | Filterable |
| --- | --- |
| Integer | Depends on aggregation |

ID of campaign to which sending was scheduled.

### channel

| Type | Filterable |
| --- | --- |
| Enum | Depends on aggregation |

Sending's channel.

This field is an enum, possible values are:
* sms
* email
* push

### reporting_id

| Type | Filterable |
| --- | --- |
| Integer | Depends on aggregation |

Sending's reporting_id. This field can be used to attribute reported sending to its source.

## Query without aggregations

Query returns series with sending events labeled by `event_type`.

### Labels

| Key | Type | Description |
| --- | --- | --- |
| event_type | Enum | See in `Fields` |

```json
{
    "interval": "5m",
    "range_timezone": "Europe/Oslo",
    "time_buckets": [
        "2025-08-27T09:25:00.000+02:00",
        "2025-08-27T09:30:00.000+02:00",
        "2025-08-27T09:35:00.000+02:00",
        "2025-08-27T09:40:00.000+02:00",
        "2025-08-27T09:45:00.000+02:00",
        "2025-08-27T09:50:00.000+02:00",
        "2025-08-27T09:55:00.000+02:00",
        "2025-08-27T10:00:00.000+02:00",
        "2025-08-27T10:05:00.000+02:00",
        "2025-08-27T10:10:00.000+02:00",
        "2025-08-27T10:15:00.000+02:00",
        "2025-08-27T10:20:00.000+02:00",
        "2025-08-27T10:25:00.000+02:00",
        "2025-08-27T10:30:00.000+02:00",
        "2025-08-27T10:35:00.000+02:00",
        "2025-08-27T10:40:00.000+02:00",
        "2025-08-27T10:45:00.000+02:00",
        "2025-08-27T10:50:00.000+02:00",
        "2025-08-27T10:55:00.000+02:00",
        "2025-08-27T11:00:00.000+02:00",
        "2025-08-27T11:05:00.000+02:00",
        "2025-08-27T11:10:00.000+02:00",
        "2025-08-27T11:15:00.000+02:00",
        "2025-08-27T11:20:00.000+02:00",
        "2025-08-27T11:25:00.000+02:00",
        "2025-08-27T11:30:00.000+02:00",
        "2025-08-27T11:35:00.000+02:00",
        "2025-08-27T11:40:00.000+02:00",
        "2025-08-27T11:45:00.000+02:00",
        "2025-08-27T11:50:00.000+02:00",
        "2025-08-27T11:55:00.000+02:00",
        "2025-08-27T12:00:00.000+02:00",
        "2025-08-27T12:05:00.000+02:00",
        "2025-08-27T12:10:00.000+02:00",
        "2025-08-27T12:15:00.000+02:00",
        "2025-08-27T12:20:00.000+02:00",
        "2025-08-27T12:25:00.000+02:00",
        "2025-08-27T12:30:00.000+02:00",
        "2025-08-27T12:35:00.000+02:00",
        "2025-08-27T12:40:00.000+02:00",
        "2025-08-27T12:45:00.000+02:00",
        "2025-08-27T12:50:00.000+02:00",
        "2025-08-27T12:55:00.000+02:00",
        "2025-08-27T13:00:00.000+02:00",
        "2025-08-27T13:05:00.000+02:00",
        "2025-08-27T13:10:00.000+02:00",
        "2025-08-27T13:15:00.000+02:00",
        "2025-08-27T13:20:00.000+02:00",
        "2025-08-27T13:25:00.000+02:00",
        "2025-08-27T13:30:00.000+02:00",
        "2025-08-27T13:35:00.000+02:00",
        "2025-08-27T13:40:00.000+02:00",
        "2025-08-27T13:45:00.000+02:00",
        "2025-08-27T13:50:00.000+02:00",
        "2025-08-27T13:55:00.000+02:00",
        "2025-08-27T14:00:00.000+02:00",
        "2025-08-27T14:05:00.000+02:00",
        "2025-08-27T14:10:00.000+02:00",
        "2025-08-27T14:15:00.000+02:00",
        "2025-08-27T14:20:00.000+02:00",
        "2025-08-27T14:25:00.000+02:00",
        "2025-08-27T14:30:00.000+02:00",
        "2025-08-27T14:35:00.000+02:00",
        "2025-08-27T14:40:00.000+02:00",
        "2025-08-27T14:45:00.000+02:00",
        "2025-08-27T14:50:00.000+02:00",
        "2025-08-27T14:55:00.000+02:00",
        "2025-08-27T15:00:00.000+02:00",
        "2025-08-27T15:05:00.000+02:00",
        "2025-08-27T15:10:00.000+02:00",
        "2025-08-27T15:15:00.000+02:00",
        "2025-08-27T15:20:00.000+02:00"
    ],
    "series": [
        {
            "label": {
                "event_type": "new"
            },
            "values": [
                3,
                2,
                10,
                5,
                4,
                2,
                5,
                null,
                20,
                5,
                5,
                7,
                11,
                8,
                3,
                4,
                7,
                8,
                4,
                8,
                2,
                7,
                9,
                19,
                9,
                3,
                16,
                null,
                2,
                2,
                8,
                null,
                26,
                9,
                1,
                2,
                2,
                5,
                3,
                8,
                6,
                16,
                10,
                2,
                null,
                5,
                8,
                null,
                2,
                1,
                1,
                8,
                9,
                12,
                6,
                1,
                1,
                6,
                12,
                3,
                9,
                3,
                5,
                3,
                14,
                7,
                2,
                7,
                6,
                7,
                2,
                null
            ]
        },
    ],
    "data_points": 259,
    "result_type": "timeseries"
}
```

## Aggregations

### service_type

#### Labels

| Key | Type | Description |
| --- | --- | --- |
| service_type | Enum | See in `Fields` |
| event_type | Enum | See in `Fields` |

:::note
There is also `total_service_type` aggregation which works the same way but removes loyalty_club_id from series when working on cross-customer data.
:::

### campaign_id

#### Labels

| Key | Type | Description |
| --- | --- | --- |
| campaign_id | Integer | See in `Fields` |
| event_type | Enum | See in `Fields` |

:::note
There is also `total_campaign_id` aggregation which works the same way but removes loyalty_club_id from series when working on cross-customer data.
:::

### channel

#### Labels

| Key | Type | Description |
| --- | --- | --- |
| channel | Enum | See in `Fields` |
| event_type | Enum | See in `Fields` |

:::note
There is also `total_channel` aggregation which works the same way but removes loyalty_club_id from series when working on cross-customer data.
:::

### reporting_id

#### Labels

| Key | Type | Description |
| --- | --- | --- |
| reporting_id | Integer | See in `Fields` |
| event_type | Enum | See in `Fields` |

:::note
There is also `total_reporting_id` aggregation which works the same way but removes loyalty_club_id from series when working on cross-customer data.
:::
