transactional
GET
https://hermeticor.com /v1/inbound/mail 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/mail" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"domainId": "string",
"provider": "string",
"fromAddr": "string",
"toAddr": "string",
"subject": "string",
"text": "string",
"html": "string",
"attachments": [
{
"filename": "string",
"contentType": "string",
"size": 0,
"downloadable": true
}
],
"receivedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem47[]requiredShow child parameters
idstringrequireddomainIdstringrequiredproviderstringrequiredfromAddrstringrequiredtoAddrstringrequiredsubjectstringrequiredtextstringrequiredhtmlstringrequiredattachmentsAttachmentsItem2[]requiredShow child parameters
filenamestringrequiredcontentTypestringrequiredsizeintegerrequireddownloadablebooleanrequiredreceivedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/inbound/mail/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/inbound/mail/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"domainId": "string",
"provider": "string",
"fromAddr": "string",
"toAddr": "string",
"subject": "string",
"text": "string",
"html": "string",
"attachments": [
{
"filename": "string",
"contentType": "string",
"size": 0,
"downloadable": true
}
],
"receivedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequireddomainIdstringrequiredproviderstringrequiredfromAddrstringrequiredtoAddrstringrequiredsubjectstringrequiredtextstringrequiredhtmlstringrequiredattachmentsAttachmentsItem2[]requiredShow child parameters
filenamestringrequiredcontentTypestringrequiredsizeintegerrequireddownloadablebooleanrequiredreceivedAtstringrequiredGET
https://hermeticor.com /v1/inbound/mail/{id}/attachments/{index} Download one attachment of a received inbound mail
Parameters
idstringpathrequiredindexintegerpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/inbound/mail/{id}/attachments/{index}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}GET
https://hermeticor.com /v1/inbound/events/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/inbound/events/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"routeId": "string",
"status": "string",
"attempts": 0,
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z",
"payload": {}
}Schema
idstringrequiredrouteIdstringrequiredstatusstringrequiredattemptsintegerrequiredlastErrorstringrequiredcreatedAtstringrequiredpayloadrequiredGET
https://hermeticor.com /v1/transactional/definitions Parameters
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/transactional/definitions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"description": "string",
"channel": "email",
"templateId": "string",
"settings": {
"subject": "string",
"fromEmail": "string",
"fromName": "string",
"replyTo": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"tags": [
"string"
],
"tracking": {
"opens": true,
"clicks": true
},
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
}
},
"status": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem48[]requiredShow child parameters
idstringrequirednamestringrequireddescriptionstringrequiredchannelstringrequiredtemplateIdstringrequiredsettingsobjectrequiredShow child parameters
subjectstringfromEmailstringfromNamestringreplyTostringccstring[]bccstring[]tagsstring[]trackingobjectrouteobjectstatusstringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/transactional/definitions Request body
application/json
namestringrequireddescriptionstringchannelstringtemplateIdstringrequiredsettingsobjectShow child parameters
subjectstringfromEmailstringfromNamestringreplyTostringccstring[]bccstring[]tagsstring[]trackingobjectShow child parameters
opensbooleanclicksbooleanrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstring{
"name": "string",
"description": "string",
"channel": "email",
"templateId": "string",
"settings": {}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/transactional/definitions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","channel":"email","templateId":"string","settings":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"description": "string",
"channel": "email",
"templateId": "string",
"settings": {
"subject": "string",
"fromEmail": "string",
"fromName": "string",
"replyTo": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"tags": [
"string"
],
"tracking": {
"opens": true,
"clicks": true
},
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
}
},
"status": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequireddescriptionstringrequiredchannelstringrequiredtemplateIdstringrequiredsettingsobjectrequiredShow child parameters
subjectstringfromEmailstringfromNamestringreplyTostringccstring[]bccstring[]tagsstring[]trackingobjectShow child parameters
opensbooleanclicksbooleanrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstringstatusstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/transactional/definitions/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/transactional/definitions/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/transactional/definitions/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/transactional/definitions/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated