campaigns
GET
https://hermeticor.com /v1/campaigns/{id}/rss Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/rss" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"campaignId": "string",
"feedUrl": "string",
"everyHours": 0,
"active": true,
"lastGuid": "string",
"lastCheckedAt": "2024-01-01T00:00:00Z"
}Schema
campaignIdstringrequiredfeedUrlstringrequiredeveryHoursnumberrequiredactivebooleanrequiredlastGuidstringrequiredlastCheckedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/campaigns/{id}/rss Parameters
idstringpathrequiredRequest body
application/json
feedUrlstringrequiredeveryHoursintegeractiveboolean{
"feedUrl": "string",
"everyHours": 24,
"active": true
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/campaigns/{id}/rss" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"feedUrl":"string","everyHours":24,"active":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/campaigns/{id}/rss/pause Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/rss/pause" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/campaigns/{id}/rss/resume Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/rss/resume" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/campaigns/{id}/variants Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/variants" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"key": "string",
"templateVersionId": "string",
"subject": "string",
"fromName": "string",
"previewText": "string",
"replyTo": "string",
"imageAssetId": "string",
"sendOffset": 0,
"weight": 0
}
],
"nextCursor": "string"
}Schema
itemsItemsItem60[]requiredShow child parameters
keystringrequiredtemplateVersionIdstringrequiredsubjectstringrequiredfromNamestringrequiredpreviewTextstringrequiredreplyTostringrequiredimageAssetIdstringrequiredsendOffsetintegerrequiredweightintegerrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/campaigns/{id}/variants/{key} Parameters
idstringpathrequiredkeystringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/variants/{key}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"key": "string",
"templateVersionId": "string",
"subject": "string",
"fromName": "string",
"previewText": "string",
"replyTo": "string",
"imageAssetId": "string",
"sendOffset": 0,
"weight": 0
}Schema
keystringrequiredtemplateVersionIdstringrequiredsubjectstringrequiredfromNamestringrequiredpreviewTextstringrequiredreplyTostringrequiredimageAssetIdstringrequiredsendOffsetintegerrequiredweightintegerrequiredPUT
https://hermeticor.com /v1/campaigns/{id}/variants/{key} Parameters
idstringpathrequiredkeystringpathrequiredRequest body
application/json
templateVersionIdstringrequiredsubjectstringfromNamestringpreviewTextstringreplyTostringimageAssetIdstringsendOffsetintegerweightinteger{
"templateVersionId": "string",
"subject": "string",
"fromName": "string",
"previewText": "string",
"replyTo": "string",
"imageAssetId": "string",
"sendOffset": 0,
"weight": 1
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/campaigns/{id}/variants/{key}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateVersionId":"string","subject":"string","fromName":"string","previewText":"string","replyTo":"string","imageAssetId":"string","sendOffset":0,"weight":1}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/campaigns/{id}/variants/{key} Parameters
idstringpathrequiredkeystringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/campaigns/{id}/variants/{key}" \
-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/campaigns/{id}/send-report Parameters
idstringpathrequiredRequest body
application/json
emailsstring[]phonesstring[]{
"emails": [],
"phones": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/send-report" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":[],"phones":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"sent": 0,
"blocked": 0
}Schema
sentintegerrequiredblockedintegerrequiredGET
https://hermeticor.com /v1/campaigns/{id}/share Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/share" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"webVersionUrl": "string",
"expiresAt": "string"
}Schema
urlstringrequiredwebVersionUrlstringrequiredexpiresAtstringrequiredUpdated