engagement
GET
https://hermeticor.com /v1/newsletter/engagement/posts/{postId}/reactions Reaction counts for a post
Parameters
postIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/engagement/posts/{postId}/reactions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"postId": "string",
"counts": {},
"total": 0
}Schema
postIdstringrequiredcountsobjectrequiredtotalintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/newsletter/engagement/posts/{postId}/highlights Most read sections of a post (from the read-depth beacon)
Parameters
postIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/engagement/posts/{postId}/highlights" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"postId": "string",
"sample": 0,
"sections": [
{
"section": "string",
"readers": 0,
"share": 0
}
]
}Schema
postIdstringrequiredsampleintegerrequiredsectionsobject[]requiredShow child parameters
sectionstringrequiredreadersintegerrequiredsharenumberrequiredGET
https://hermeticor.com /v1/newsletter/engagement/posts/{postId}/passages Most highlighted passages of a post (counts; names only beside notes readers chose to share)
Parameters
postIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/engagement/posts/{postId}/passages" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"postId": "string",
"passages": [
{
"quote": "string",
"readers": 0,
"notes": [
{
"name": "string",
"note": "string"
}
]
}
]
}Schema
postIdstringrequiredpassagesobject[]requiredShow child parameters
quotestringrequiredreadersintegerrequirednotesobject[]requiredShow child parameters
namestringrequirednotestringrequiredGET
https://hermeticor.com /v1/newsletter/engagement/surveys Polls and surveys
Parameters
kindstringquerypublicationIdstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/engagement/surveys" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"kind": "poll",
"publicationId": "string",
"postId": "string",
"title": "string",
"description": "string",
"status": "open",
"questions": [
{
"id": "string",
"prompt": "string",
"kind": "single",
"options": [
{
"id": "string",
"label": "string"
}
],
"required": true,
"attributeKey": "string",
"position": 0
}
],
"responses": 0,
"createdAt": "2024-01-01T00:00:00Z",
"block": {},
"listId": "string",
"thankYouText": "string",
"views": 0,
"anonymousPath": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem204[]requiredShow child parameters
idstringrequiredkindstringrequiredpublicationIdstringrequiredpostIdstringrequiredtitlestringrequireddescriptionstringrequiredstatusstringrequiredquestionsQuestionsItem[]requiredShow child parameters
idstringrequiredpromptstringrequiredkindstringrequiredoptionsOptionsItem[]requiredrequiredbooleanrequiredattributeKeystringrequiredpositionintegerrequiredresponsesintegerrequiredcreatedAtstringrequiredblockobjectrequiredlistIdstringrequiredthankYouTextstringrequiredviewsintegerrequiredanonymousPathstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/newsletter/engagement/surveys Create a poll (one question) or a survey
Request body
application/json
kindstringrequiredpublicationIdstringpostIdstringtitlestringrequireddescriptionstringquestionsQuestionsItem2[]requiredShow child parameters
idstringpromptstringrequiredkindstringrequiredoptionsOptionsItem2[]requiredbooleanattributeKeystringlistIdstringthankYouTextstringanonymousboolean{
"kind": "poll",
"publicationId": "string",
"postId": "string",
"title": "string",
"description": "string",
"questions": [
{
"id": "string",
"prompt": "string",
"kind": "single",
"options": [
"string"
],
"required": true,
"attributeKey": "string"
}
],
"listId": "string",
"thankYouText": "string",
"anonymous": true
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/engagement/surveys" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"poll","publicationId":"string","postId":"string","title":"string","description":"string","questions":[{"id":"string","prompt":"string","kind":"single","options":["string"],"required":true,"attributeKey":"string"}],"listId":"string","thankYouText":"string","anonymous":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"kind": "poll",
"publicationId": "string",
"postId": "string",
"title": "string",
"description": "string",
"status": "open",
"questions": [
{
"id": "string",
"prompt": "string",
"kind": "single",
"options": [
{
"id": "string",
"label": "string"
}
],
"required": true,
"attributeKey": "string",
"position": 0
}
],
"responses": 0,
"createdAt": "2024-01-01T00:00:00Z",
"block": {},
"listId": "string",
"thankYouText": "string",
"views": 0,
"anonymousPath": "string"
}Schema
idstringrequiredkindstringrequiredpublicationIdstringrequiredpostIdstringrequiredtitlestringrequireddescriptionstringrequiredstatusstringrequiredquestionsQuestionsItem[]requiredShow child parameters
idstringrequiredpromptstringrequiredkindstringrequiredoptionsOptionsItem[]requiredShow child parameters
idstringrequiredlabelstringrequiredrequiredbooleanrequiredattributeKeystringrequiredpositionintegerrequiredresponsesintegerrequiredcreatedAtstringrequiredblockobjectrequiredlistIdstringrequiredthankYouTextstringrequiredviewsintegerrequiredanonymousPathstringrequiredGET
https://hermeticor.com /v1/newsletter/engagement/surveys/{id} One poll or survey, with the poll block for editors
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/engagement/surveys/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/newsletter/engagement/surveys/{id} Delete a poll or survey and its answers
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/newsletter/engagement/surveys/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated