newsletter
POST
https://hermeticor.com /v1/newsletter/posts Request body
application/json
publicationIdstringrequiredtitlestringrequiredsubtitlestringslugstringcoverUrlstringcoverAltstringmarkdownstringexcerptstringauthorIdsstring[]sectionIdsstring[]tagsstring[]audienceobjectShow child parameters
kindstringrequiredtierIdsstring[]deliverystringfeaturedbooleanseoTitlestringseoDescriptionstringseoImageUrlstringnoindexboolean{
"publicationId": "string",
"title": "string",
"subtitle": "string",
"slug": "string",
"coverUrl": "string",
"coverAlt": "string",
"markdown": "",
"excerpt": "string",
"authorIds": [],
"sectionIds": [],
"tags": [],
"audience": {
"kind": "everyone"
},
"delivery": "both",
"featured": false,
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string",
"noindex": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/posts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"publicationId":"string","title":"string","subtitle":"string","slug":"string","coverUrl":"string","coverAlt":"string","markdown":"","excerpt":"string","authorIds":[],"sectionIds":[],"tags":[],"audience":{"kind":"everyone"},"delivery":"both","featured":false,"seoTitle":"string","seoDescription":"string","seoImageUrl":"string","noindex":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"publicationId": "string",
"title": "string",
"subtitle": "string",
"slug": "string",
"coverUrl": "string",
"coverAlt": "string",
"markdown": "string",
"excerpt": "string",
"authorIds": [
"string"
],
"sectionIds": [
"string"
],
"tags": [
"string"
],
"audience": {
"kind": "everyone",
"tierIds": [
"string"
]
},
"delivery": "web",
"featured": true,
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string",
"noindex": true,
"status": "draft",
"publishedAt": "2024-01-01T00:00:00Z",
"scheduledAt": "2024-01-01T00:00:00Z",
"campaignId": "string",
"paidCampaignId": "string",
"emailError": "string",
"wordCount": 0,
"readMinutes": 0,
"url": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredpublicationIdstringrequiredtitlestringrequiredsubtitlestringrequiredslugstringrequiredcoverUrlstringrequiredcoverAltstringrequiredmarkdownstringrequiredexcerptstringrequiredauthorIdsstring[]requiredsectionIdsstring[]requiredtagsstring[]requiredaudienceobjectrequiredShow child parameters
kindstringrequiredtierIdsstring[]deliverystringrequiredfeaturedbooleanrequiredseoTitlestringrequiredseoDescriptionstringrequiredseoImageUrlstringrequirednoindexbooleanrequiredstatusstringrequiredpublishedAtstringrequiredscheduledAtstringrequiredcampaignIdstringrequiredpaidCampaignIdstringrequiredemailErrorstringrequiredwordCountintegerrequiredreadMinutesintegerrequiredurlstringrequiredcreatedAtstringrequiredupdatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/newsletter/posts/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/posts/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/newsletter/posts/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/newsletter/posts/{id}" \
-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/newsletter/posts/{id} Parameters
idstringpathrequiredRequest body
application/json
titlestringsubtitlestringslugstringcoverUrlstringcoverAltstringmarkdownstringexcerptstringauthorIdsstring[]sectionIdsstring[]tagsstring[]audienceobjectShow child parameters
kindstringrequiredtierIdsstring[]deliverystringfeaturedbooleanseoTitlestringseoDescriptionstringseoImageUrlstringnoindexbooleannotestring{
"title": "string",
"subtitle": "string",
"slug": "string",
"coverUrl": "string",
"coverAlt": "string",
"markdown": "string",
"excerpt": "string",
"authorIds": [
"string"
],
"sectionIds": [
"string"
],
"tags": [
"string"
],
"audience": {
"kind": "everyone",
"tierIds": [
"string"
]
},
"delivery": "web",
"featured": true,
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string",
"noindex": true,
"note": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/newsletter/posts/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","subtitle":"string","slug":"string","coverUrl":"string","coverAlt":"string","markdown":"string","excerpt":"string","authorIds":["string"],"sectionIds":["string"],"tags":["string"],"audience":{"kind":"everyone","tierIds":["string"]},"delivery":"web","featured":true,"seoTitle":"string","seoDescription":"string","seoImageUrl":"string","noindex":true,"note":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/posts/{id}/duplicate Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/posts/{id}/duplicate" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/posts/{id}/publish Publish on the web; when the post delivers by email it goes to the campaign pipeline (never sent directly)
Parameters
idstringpathrequiredRequest body
application/json
subjectstringsubjectBstringpreviewTextstringlistIdstringsegmentIdstring{
"subject": "string",
"subjectB": "string",
"previewText": "string",
"listId": "string",
"segmentId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/posts/{id}/publish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"string","subjectB":"string","previewText":"string","listId":"string","segmentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/posts/{id}/schedule Parameters
idstringpathrequiredRequest body
application/json
atstringrequired{
"at": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/posts/{id}/schedule" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"at":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/newsletter/posts/{id}/schedule Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/newsletter/posts/{id}/schedule" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/posts/{id}/unpublish Take a post off the web: back to draft, or archived (hidden from lists, link still works)
Parameters
idstringpathrequiredRequest body
application/json
tostring{
"to": "draft"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/posts/{id}/unpublish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"draft"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated