newsletter
GET
https://hermeticor.com /v1/newsletter/publications Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/publications" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"name": "string",
"slug": "string",
"tagline": "string",
"logoUrl": "string",
"coverUrl": "string",
"accentColor": "string",
"fonts": {
"heading": "string",
"body": "string"
},
"about": "string",
"social": [
{
"network": "string",
"href": "string"
}
],
"senderName": "string",
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
},
"listId": "string",
"segmentId": "string",
"paidSegmentId": "string",
"language": "en",
"timezone": "UTC",
"footer": "string",
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string",
"id": "string",
"url": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem186[]requiredShow child parameters
namestringrequiredslugstringrequiredtaglinestringlogoUrlstringcoverUrlstringaccentColorstringfontsobjectShow child parameters
headingstringbodystringaboutstringsocialSocialItem[]Show child parameters
networkstringrequiredhrefstringrequiredsenderNamestringrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstringlistIdstringsegmentIdstringpaidSegmentIdstringlanguagestringtimezonestringfooterstringseoTitlestringseoDescriptionstringseoImageUrlstringidstringrequiredurlstringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/newsletter/publications Request body
application/json
namestringrequiredslugstringrequiredtaglinestringlogoUrlstringcoverUrlstringaccentColorstringfontsobjectShow child parameters
headingstringbodystringaboutstringsocialSocialItem2[]Show child parameters
networkstringrequiredhrefstringrequiredsenderNamestringrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstringlistIdstringsegmentIdstringpaidSegmentIdstringlanguagestringtimezonestringfooterstringseoTitlestringseoDescriptionstringseoImageUrlstring{
"name": "string",
"slug": "string",
"tagline": "string",
"logoUrl": "string",
"coverUrl": "string",
"accentColor": "string",
"fonts": {
"heading": "string",
"body": "string"
},
"about": "string",
"social": [
{
"network": "string",
"href": "string"
}
],
"senderName": "string",
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
},
"listId": "string",
"segmentId": "string",
"paidSegmentId": "string",
"language": "en",
"timezone": "UTC",
"footer": "string",
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/publications" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","slug":"string","tagline":"string","logoUrl":"string","coverUrl":"string","accentColor":"string","fonts":{"heading":"string","body":"string"},"about":"string","social":[{"network":"string","href":"string"}],"senderName":"string","route":{"connectionId":"string","poolId":"string","routePolicyId":"string"},"listId":"string","segmentId":"string","paidSegmentId":"string","language":"en","timezone":"UTC","footer":"string","seoTitle":"string","seoDescription":"string","seoImageUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"name": "string",
"slug": "string",
"tagline": "string",
"logoUrl": "string",
"coverUrl": "string",
"accentColor": "string",
"fonts": {
"heading": "string",
"body": "string"
},
"about": "string",
"social": [
{
"network": "string",
"href": "string"
}
],
"senderName": "string",
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
},
"listId": "string",
"segmentId": "string",
"paidSegmentId": "string",
"language": "en",
"timezone": "UTC",
"footer": "string",
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string",
"id": "string",
"url": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
namestringrequiredslugstringrequiredtaglinestringlogoUrlstringcoverUrlstringaccentColorstringfontsobjectShow child parameters
headingstringbodystringaboutstringsocialSocialItem[]Show child parameters
networkstringrequiredhrefstringrequiredsenderNamestringrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstringlistIdstringsegmentIdstringpaidSegmentIdstringlanguagestringtimezonestringfooterstringseoTitlestringseoDescriptionstringseoImageUrlstringidstringrequiredurlstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/newsletter/publications/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/publications/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/newsletter/publications/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringslugstringtaglinestringlogoUrlstringcoverUrlstringaccentColorstringfontsobjectShow child parameters
headingstringbodystringaboutstringsocialSocialItem2[]Show child parameters
networkstringrequiredhrefstringrequiredsenderNamestringrouteobjectShow child parameters
connectionIdstringpoolIdstringroutePolicyIdstringlistIdstringsegmentIdstringpaidSegmentIdstringlanguagestringtimezonestringfooterstringseoTitlestringseoDescriptionstringseoImageUrlstring{
"name": "string",
"slug": "string",
"tagline": "string",
"logoUrl": "string",
"coverUrl": "string",
"accentColor": "string",
"fonts": {
"heading": "string",
"body": "string"
},
"about": "string",
"social": [
{
"network": "string",
"href": "string"
}
],
"senderName": "string",
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
},
"listId": "string",
"segmentId": "string",
"paidSegmentId": "string",
"language": "string",
"timezone": "string",
"footer": "string",
"seoTitle": "string",
"seoDescription": "string",
"seoImageUrl": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/newsletter/publications/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","slug":"string","tagline":"string","logoUrl":"string","coverUrl":"string","accentColor":"string","fonts":{"heading":"string","body":"string"},"about":"string","social":[{"network":"string","href":"string"}],"senderName":"string","route":{"connectionId":"string","poolId":"string","routePolicyId":"string"},"listId":"string","segmentId":"string","paidSegmentId":"string","language":"string","timezone":"string","footer":"string","seoTitle":"string","seoDescription":"string","seoImageUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/newsletter/publications/{id}/analytics Top posts by web views with the subscribes and upgrades they brought in
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/publications/{id}/analytics" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"postId": "string",
"title": "string",
"views": 0,
"uniqueReaders": 0,
"subscribes": 0,
"upgrades": 0
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
postIdstringrequiredtitlestringrequiredviewsintegerrequireduniqueReadersintegerrequiredsubscribesintegerrequiredupgradesintegerrequirednextCursorstringrequiredUpdated