Skip to content
Hermesmail
Docs pages

API reference

The Hermesmail API answers at https://api.hermesmail.app. Requests and responses are JSON, a request sends its API key as a bearer token, and a request that fails answers with a status and a body that names the error. The errors page explains each name.

The OpenAPI document

Each reference page is built from our OpenAPI document, which is generated from the same route definitions that check every request the API receives. Download the document to generate a client or to read the schemas in your own tools.

Operations

API keys

MethodPathSummary
GET/api-keysList API keys
POST/api-keysCreate an API key
PATCH/api-keys/{api_key_id}Rename an API key
DELETE/api-keys/{api_key_id}Revoke an API key

Domain checks

MethodPathSummary
POST/domain-checksCheck a domain

Domains

MethodPathSummary
GET/domainsList domains
POST/domainsCreate a domain
GET/domains/{domain_id}Retrieve a domain
PATCH/domains/{domain_id}Update a domain
DELETE/domains/{domain_id}Delete a domain
POST/domains/{domain_id}/verifyVerify a domain

Emails

MethodPathSummary
GET/emailsList emails
POST/emailsSend an email
POST/emails/batchSend batch emails
GET/emails/metricsGet email metrics
GET/emails/{email_id}Retrieve an email
PATCH/emails/{email_id}Reschedule an email
GET/emails/{email_id}/attachmentsList email attachments
GET/emails/{email_id}/attachments/{attachment_id}Retrieve an email attachment
POST/emails/{email_id}/cancelCancel a scheduled email

Logs

MethodPathSummary
GET/logsList logs
GET/logs/{log_id}Retrieve a log

Suppressions

MethodPathSummary
GET/suppressionsList suppressions
POST/suppressionsAdd a suppression
POST/suppressions/batch/addAdd suppressions in batch
POST/suppressions/batch/removeRemove suppressions in batch
GET/suppressions/{suppression}Retrieve a suppression
DELETE/suppressions/{suppression}Remove a suppression

Usage

MethodPathSummary
GET/usageGet usage

Webhooks

MethodPathSummary
GET/webhooksList webhooks
POST/webhooksCreate a webhook
GET/webhooks/{webhook_id}Retrieve a webhook
PATCH/webhooks/{webhook_id}Update a webhook
DELETE/webhooks/{webhook_id}Delete a webhook
GET/webhooks/{webhook_id}/eventsList webhook events
GET/webhooks/{webhook_id}/events/{event_id}Retrieve a webhook event
GET/webhooks/{webhook_id}/events/{event_id}/attemptsList webhook event attempts
POST/webhooks/{webhook_id}/events/{event_id}/replayReplay a webhook event
POST/webhooks/{webhook_id}/signing-secret/rotateRotate a webhook signing secret