Get sending metrics
GET
/metrics
const url = 'https://api.vaartix.com/metrics?days=15';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vaartix.com/metrics?days=15' \ --header 'Authorization: Bearer <token>'Daily counts for the last days days (in IST, today included), with delivery, bounce and
complaint rates. Counts are per recipient; test-mode emails are not counted. Requires a
full-access key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”days
integer
Responses
Section titled “Responses”Metrics.
Media typeapplication/json
object
days
Array<object>
object
day
string format: date
sent
integer
delivered
integer
bounced
integer
complained
integer
totals
object
sent
integer
delivered
integer
bounced
integer
complained
integer
rates
Shares of totals.sent, from 0 to 1.
object
delivered
number
bounced
number
complained
number
limits
Above these rates over 7 days (after 100 emails), sending is paused automatically.
object
bounceRate
number
complaintRate
number
today
object
sent
integer
dailyLimit
integer
Example
{ "days": [ { "day": "2026-10-28" } ], "rates": { "delivered": 0.982, "bounced": 0.011, "complained": 0.0002 }, "limits": { "bounceRate": 0.04, "complaintRate": 0.0008 }}unauthorized: the API key is missing, invalid or revoked.
Media typeapplication/json
object
error
required
object
type
required
Stable, machine-readable error type.
string
message
required
Human-readable explanation, safe to show to developers.
string
Example
{ "error": { "type": "validation_error" }}forbidden: the key cannot do this, for example a send-only key on a management endpoint.
Media typeapplication/json
object
error
required
object
type
required
Stable, machine-readable error type.
string
message
required
Human-readable explanation, safe to show to developers.
string
Example
{ "error": { "type": "validation_error" }}