transactional
PUT
https://hermeticor.com /v1/transactional/definitions/{id}/translations/{locale} Parameters
idstringpathrequiredlocalestringpathrequiredRequest body
application/json
statusstringcontentobjectrequired{
"status": "approved",
"content": {}
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/transactional/definitions/{id}/translations/{locale}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"approved","content":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"locale": "string",
"status": "string"
}Schema
idstringrequiredlocalestringrequiredstatusstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/transactional/batches/{batchId}/cancel Cancel every queued or deferred message sent with this batchId
Parameters
batchIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/transactional/batches/{batchId}/cancel" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"cancelled": 0
}Schema
cancelledintegerrequiredGET
https://hermeticor.com /v1/transactional/summary Sent/delivered/bounced/complained for today, 7, 30, 60 and 90 days; optionally one sender or channel (sender and account info rollups)
Parameters
senderIdentityIdstringquerychannelstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/transactional/summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"period": "string",
"sent": 0,
"delivered": 0,
"bounced": 0,
"complained": 0,
"blocked": 0,
"opens": 0,
"clicks": 0
}
],
"nextCursor": "string"
}Schema
itemsItemsItem50[]requiredShow child parameters
periodstringrequiredsentintegerrequireddeliveredintegerrequiredbouncedintegerrequiredcomplainedintegerrequiredblockedintegerrequiredopensintegerrequiredclicksintegerrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/transactional/metadata-keys Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/transactional/metadata-keys" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"key": "string",
"messages": 0
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
keystringrequiredmessagesintegerrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/smtp-credentials Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/smtp-credentials" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"username": "string",
"lastUsedAt": "2024-01-01T00:00:00Z",
"revokedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem51[]requiredShow child parameters
idstringrequirednamestringrequiredusernamestringrequiredlastUsedAtstringrequiredrevokedAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/smtp-credentials Issue an SMTP relay credential; the secret is returned once
Request body
application/json
namestringrequired{
"name": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/smtp-credentials" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"username": "string",
"secret": "string"
}Schema
idstringrequirednamestringrequiredusernamestringrequiredsecretstringrequiredGET
https://hermeticor.com /v1/smtp-credentials/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/smtp-credentials/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"username": "string",
"lastUsedAt": "2024-01-01T00:00:00Z",
"revokedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredusernamestringrequiredlastUsedAtstringrequiredrevokedAtstringrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/smtp-credentials/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/smtp-credentials/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/smtp-credentials/{id}/reset Replace the secret in place; the old one stops working and the new one is returned once
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/smtp-credentials/{id}/reset" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated