Retrieve Volume Metrics
GEThttps://api.mailchannels.net/tx/v1/metrics/volume
Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.
Request
Query Parameters
The beginning of the time range for retrieving message volume metrics (inclusive). Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ. Defaults to one month ago if not provided.
The end of the time range for retrieving message volume metrics (exclusive). Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ. Defaults to the current time if not provided.
Header Parameters
Responses
- 200
- 400
- 500
Successfully retrieved volume metrics
- application/json
- Schema
- Example (auto)
Schema
Count of messages delivered during the specified time range.
Possible values: >= 0
Count of messages dropped during the specified time range.
Possible values: >= 0
The end of the time range for retrieving message volume metrics (exclusive).
Count of messages processed during the specified time range.
Possible values: >= 0
The beginning of the time range for retrieving message volume metrics (inclusive).
{
"delivered": 0,
"dropped": 0,
"end_time": "2024-07-29T15:51:28.071Z",
"processed": 0,
"start_time": "2024-07-29T15:51:28.071Z"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
This is an array error objects that provide machine and human readable descriptions of the errors.
{
"errors": [
"string"
]
}
Internal Server Error
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.mailchannels.net/tx/v1/metrics/volume");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());