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.
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.
| Method | Path | Summary |
|---|---|---|
GET | /api-keys | List API keys |
POST | /api-keys | Create an API key |
PATCH | /api-keys/{api_key_id} | Rename an API key |
DELETE | /api-keys/{api_key_id} | Revoke an API key |
| Method | Path | Summary |
|---|---|---|
POST | /domain-checks | Check a domain |
| Method | Path | Summary |
|---|---|---|
GET | /domains | List domains |
POST | /domains | Create 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}/verify | Verify a domain |
| Method | Path | Summary |
|---|---|---|
GET | /emails | List emails |
POST | /emails | Send an email |
POST | /emails/batch | Send batch emails |
GET | /emails/metrics | Get email metrics |
GET | /emails/{email_id} | Retrieve an email |
PATCH | /emails/{email_id} | Reschedule an email |
GET | /emails/{email_id}/attachments | List email attachments |
GET | /emails/{email_id}/attachments/{attachment_id} | Retrieve an email attachment |
POST | /emails/{email_id}/cancel | Cancel a scheduled email |
| Method | Path | Summary |
|---|---|---|
GET | /logs | List logs |
GET | /logs/{log_id} | Retrieve a log |
| Method | Path | Summary |
|---|---|---|
GET | /suppressions | List suppressions |
POST | /suppressions | Add a suppression |
POST | /suppressions/batch/add | Add suppressions in batch |
POST | /suppressions/batch/remove | Remove suppressions in batch |
GET | /suppressions/{suppression} | Retrieve a suppression |
DELETE | /suppressions/{suppression} | Remove a suppression |
| Method | Path | Summary |
|---|---|---|
GET | /usage | Get usage |
| Method | Path | Summary |
|---|---|---|
GET | /webhooks | List webhooks |
POST | /webhooks | Create 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}/events | List webhook events |
GET | /webhooks/{webhook_id}/events/{event_id} | Retrieve a webhook event |
GET | /webhooks/{webhook_id}/events/{event_id}/attempts | List webhook event attempts |
POST | /webhooks/{webhook_id}/events/{event_id}/replay | Replay a webhook event |
POST | /webhooks/{webhook_id}/signing-secret/rotate | Rotate a webhook signing secret |