Get usage
GET /usage
Returns the authenticated team's current sending counts, quotas, and domain totals alongside reset timestamps and the team's active API rate limit. Calling this endpoint requires a full-access API key.
The domain_checks block is a Hermesmail addition: the domain checks answered this billing period, the monthly allowance (null when unlimited, 0 when the plan has none) and when the count starts again. A check answered unknown is not counted.
Send a full access API key as a bearer token in the Authorization header. A sending access key is refused.
Status 200, a JSON object.
| Field | Type | Details |
|---|---|---|
object |
usage |
|
emails |
object | |
emails.daily |
object | |
emails.daily.used |
integer | 0 to 9007199254740991. |
emails.daily.limit |
integer or null | 0 to 9007199254740991. |
emails.daily.sent |
integer | 0 to 9007199254740991. |
emails.daily.received |
integer | 0 to 9007199254740991. |
emails.daily.resets_at |
string | Format date-time. Matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$. |
emails.monthly |
object | |
emails.monthly.used |
integer | 0 to 9007199254740991. |
emails.monthly.limit |
integer or null | 0 to 9007199254740991. |
emails.monthly.sent |
integer | 0 to 9007199254740991. |
emails.monthly.received |
integer | 0 to 9007199254740991. |
emails.monthly.resets_at |
string | Format date-time. Matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$. |
contacts |
object | |
contacts.used |
integer | 0 to 9007199254740991. |
contacts.limit |
integer | 0 to 9007199254740991. |
segments |
object | |
segments.used |
integer | 0 to 9007199254740991. |
segments.limit |
integer or null | 0 to 9007199254740991. |
broadcasts |
object | |
broadcasts.used |
integer | 0 to 9007199254740991. |
broadcasts.limit |
null | |
ai_credits |
object | |
ai_credits.used |
integer | 0 to 9007199254740991. |
ai_credits.limit |
integer or null | 0 to 9007199254740991. |
ai_credits.next_increase_at |
string or null | Format date-time. Matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$. |
automation_runs |
object | |
automation_runs.used |
integer | 0 to 9007199254740991. |
automation_runs.limit |
integer | 0 to 9007199254740991. |
automation_runs.resets_at |
string | Format date-time. Matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$. |
domains |
object | |
domains.used |
integer | 0 to 9007199254740991. |
domains.limit |
integer or null | 0 to 9007199254740991. |
rate_limit |
object | |
rate_limit.limit |
integer | 0 to 9007199254740991. |
rate_limit.duration |
1000ms |
|
domain_checks |
object | |
domain_checks.used |
integer | 0 to 9007199254740991. |
domain_checks.limit |
integer or null | 0 to 9007199254740991. |
domain_checks.resets_at |
string | Format date-time. Matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$. |
Headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset.
Each error answers with the status below and a JSON body naming the error. Every error has its own entry.
| Status | Names |
|---|---|
| 400 | validation_error |
| 401 | missing_api_key, validation_error, restricted_api_key |
| 403 | validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required |
| 413 | validation_error |
| 415 | validation_error |
| 422 | validation_error |
| 429 | rate_limit_exceeded |
Error headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset, retry-after.
curl -X GET 'https://api.hermesmail.app/usage' \
-H "Authorization: Bearer $HERMESMAIL_API_KEY"