GET /emails/metrics
Get daily log metrics over at most 92 days
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | query | string | Required in a console session; ignored with an API key (the key's project). |
from | query | string | |
to | query | string |
Responses
| Status | Description | Body |
|---|---|---|
200 | Metrics by UTC creation cohort | EmailMetricsResponse |
403 | Scopes mail:send and job:read required | |
422 | Invalid parameters | Error |
503 | mail_journal_unavailable |
Examples
curl
curl -X GET "$GALON_API_BASE/emails/metrics" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.emails.metrics();Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.emails.metrics()