transactional
POST
https://hermeticor.com /v1/inbound/domains Add an inbound domain; point its MX at expectedMx, then call /check
Request body
application/json
domainstringrequired{
"domain": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/inbound/domains" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"domain": "string",
"mxVerifiedAt": "2024-01-01T00:00:00Z",
"lastCheckedAt": "2024-01-01T00:00:00Z",
"mx": {},
"expectedMx": "string",
"createdAt": "2024-01-01T00:00:00Z",
"receiveUrls": {}
}Schema
idstringrequireddomainstringrequiredmxVerifiedAtstringrequiredlastCheckedAtstringrequiredmxrequiredexpectedMxstringrequiredcreatedAtstringrequiredreceiveUrlsobject4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/inbound/domains/{id}/check Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/inbound/domains/{id}/check" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/inbound/domains/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/inbound/domains/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /v1/inbound/routes Parameters
domainIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/inbound/routes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"domainId": "string",
"pattern": "string",
"webhookUrl": "string",
"enabled": true,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem45[]requiredShow child parameters
idstringrequireddomainIdstringrequiredpatternstringrequiredwebhookUrlstringrequiredenabledbooleanrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/inbound/routes Request body
application/json
domainIdstringrequiredpatternstringrequiredwebhookUrlstringrequired{
"domainId": "string",
"pattern": "string",
"webhookUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/inbound/routes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domainId":"string","pattern":"string","webhookUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"domainId": "string",
"pattern": "string",
"webhookUrl": "string",
"enabled": true,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequireddomainIdstringrequiredpatternstringrequiredwebhookUrlstringrequiredenabledbooleanrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/inbound/routes/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/inbound/routes/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/inbound/routes/{id} Parameters
idstringpathrequiredRequest body
application/json
patternstringwebhookUrlstringenabledboolean{
"pattern": "string",
"webhookUrl": "string",
"enabled": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/inbound/routes/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pattern":"string","webhookUrl":"string","enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/inbound/simulate Run a fake inbound mail through the domain's routes (queues the webhook deliveries)
Request body
application/json
domainIdstringrequiredfromstringtostringsubjectstringtextstringhtmlstringrawMimestring{
"domainId": "string",
"from": "string",
"to": "string",
"subject": "",
"text": "string",
"html": "string",
"rawMime": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/inbound/simulate" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domainId":"string","from":"string","to":"string","subject":"","text":"string","html":"string","rawMime":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"matched": 0,
"events": [
{
"id": "string",
"routeId": "string",
"status": "string",
"attempts": 0,
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
]
}Schema
matchedintegerrequiredeventsEventsItem[]requiredShow child parameters
idstringrequiredrouteIdstringrequiredstatusstringrequiredattemptsintegerrequiredlastErrorstringrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/transactional/parse Parse a raw MIME message into from, to, subject, text, html, headers and attachment metadata (nothing is stored or sent)
Request body
application/json
rawMessagestringrequired{
"rawMessage": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/transactional/parse" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rawMessage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"from": {
"email": "string",
"name": "string"
},
"to": [
"string"
],
"replyTo": "string",
"subject": "string",
"text": "string",
"html": "string",
"headers": {},
"attachments": [
{
"filename": "string",
"contentType": "string",
"size": 0
}
]
}Schema
fromobjectrequiredShow child parameters
emailstringrequirednamestringtostring[]requiredreplyTostringrequiredsubjectstringrequiredtextstringrequiredhtmlstringrequiredheadersobjectrequiredattachmentsobject[]requiredShow child parameters
filenamestringrequiredcontentTypestringrequiredsizeintegerrequiredGET
https://hermeticor.com /v1/inbound/events Parameters
routeIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/inbound/events" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"routeId": "string",
"status": "string",
"attempts": 0,
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsEventsItem[]requiredShow child parameters
idstringrequiredrouteIdstringrequiredstatusstringrequiredattemptsintegerrequiredlastErrorstringrequiredcreatedAtstringrequirednextCursorstringrequiredUpdated