campaigns
POST
https://hermeticor.com /v1/campaigns/{id}/messages Parameters
idstringpathrequiredRequest body
application/json
channelstringlabelstringsubjectstringpreviewTextstringfromNamestringreplyTostringtemplateIdstringtemplateVersionIdstringimageAssetIdstringrenderOptionsobjectsendAtstring{
"channel": "email",
"label": "string",
"subject": "string",
"previewText": "string",
"fromName": "string",
"replyTo": "string",
"templateId": "string",
"templateVersionId": "string",
"imageAssetId": "string",
"renderOptions": {},
"sendAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/messages" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel":"email","label":"string","subject":"string","previewText":"string","fromName":"string","replyTo":"string","templateId":"string","templateVersionId":"string","imageAssetId":"string","renderOptions":{},"sendAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"campaignId": "string",
"position": 0,
"channel": "email",
"label": "string",
"subject": "string",
"previewText": "string",
"fromName": "string",
"replyTo": "string",
"templateId": "string",
"templateVersionId": "string",
"imageAssetId": "string",
"renderOptions": {},
"sendAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredcampaignIdstringrequiredpositionintegerrequiredchannelstringrequiredlabelstringrequiredsubjectstringrequiredpreviewTextstringrequiredfromNamestringrequiredreplyTostringrequiredtemplateIdstringrequiredtemplateVersionIdstringrequiredimageAssetIdstringrequiredrenderOptionsobjectrequiredsendAtstring4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/campaigns/{id}/messages/{messageId} Parameters
idstringpathrequiredmessageIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/messages/{messageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/campaigns/{id}/messages/{messageId} Parameters
idstringpathrequiredmessageIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/campaigns/{id}/messages/{messageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/campaigns/{id}/messages/{messageId} Parameters
idstringpathrequiredmessageIdstringpathrequiredRequest body
application/json
labelstringsubjectstringpreviewTextstringfromNamestringreplyTostringtemplateIdstringtemplateVersionIdstringimageAssetIdstringrenderOptionsobjectsendAtstring{
"label": "string",
"subject": "string",
"previewText": "string",
"fromName": "string",
"replyTo": "string",
"templateId": "string",
"templateVersionId": "string",
"imageAssetId": "string",
"renderOptions": {},
"sendAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/campaigns/{id}/messages/{messageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"string","subject":"string","previewText":"string","fromName":"string","replyTo":"string","templateId":"string","templateVersionId":"string","imageAssetId":"string","renderOptions":{},"sendAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/campaigns/{id}/messages/{messageId}/clone Parameters
idstringpathrequiredmessageIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/messages/{messageId}/clone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/campaigns/{id}/content Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/content" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"messageId": "string",
"source": "template",
"templateId": "string",
"templateVersionId": "string",
"html": "string",
"plainText": "string",
"blocks": {}
}Schema
messageIdstringrequiredsourcestringrequiredtemplateIdstringrequiredtemplateVersionIdstringrequiredhtmlstringrequiredplainTextstringrequiredblocksrequiredPUT
https://hermeticor.com /v1/campaigns/{id}/content Parameters
idstringpathrequiredRequest body
application/json
templateobjectShow child parameters
templateIdstringrequiredversionIdstringhtmlstringurlstringblocksobjectplainTextstring{
"template": {
"templateId": "string",
"versionId": "string"
},
"html": "string",
"url": "string",
"blocks": {},
"plainText": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/campaigns/{id}/content" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template":{"templateId":"string","versionId":"string"},"html":"string","url":"string","blocks":{},"plainText":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/campaigns/{id}/recipient-estimations Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/recipient-estimations" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"campaignId": "string",
"status": "queued",
"createdAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z",
"result": {
"audience": 0,
"suppressed": 0,
"unconsented": 0,
"estimated": 0,
"included": 0,
"excludedBy": [
{
"kind": "segment",
"id": "string",
"removed": 0
}
],
"reasons": {}
}
}Schema
idstringrequiredcampaignIdstringrequiredstatusstringrequiredcreatedAtstringrequiredcompletedAtstringrequiredresultobjectrequiredShow child parameters
audiencenumberrequiredsuppressednumberrequiredunconsentednumberrequiredestimatednumberrequiredincludednumberexcludedByExcludedByItem[]Show child parameters
kindstringrequiredidstringrequiredremovednumberrequiredreasonsobjectGET
https://hermeticor.com /v1/campaigns/{id}/recipient-estimations/{jobId} Parameters
idstringpathrequiredjobIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/recipient-estimations/{jobId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated