newsletter-growth
GET
https://hermeticor.com /v1/newsletter/growth/dashboard/{publicationId} Growth dashboard: totals, net growth per day, sources, churn, cohorts, top posts
Parameters
daysintegerquerypublicationIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/growth/dashboard/{publicationId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"total": 0,
"paid": 0,
"free": 0,
"pending": 0,
"joined": 0,
"left": 0,
"churnRate": 0,
"daily": [
{
"day": "string",
"joined": 0,
"left": 0,
"net": 0,
"total": 0
}
],
"sources": [
{
"source": "string",
"count": 0
}
],
"cohorts": [
{
"week": "string",
"size": 0,
"retained": [
0
]
}
],
"topPosts": [
{
"post": "string",
"signups": 0
}
]
}Schema
totalintegerrequiredpaidintegerrequiredfreeintegerrequiredpendingintegerrequiredjoinedintegerrequiredleftintegerrequiredchurnRatenumberrequireddailyobject[]requiredShow child parameters
daystringrequiredjoinedintegerrequiredleftintegerrequirednetintegerrequiredtotalintegerrequiredsourcesobject[]requiredShow child parameters
sourcestringrequiredcountintegerrequiredcohortsobject[]requiredShow child parameters
weekstringrequiredsizeintegerrequiredretainednumber[]requiredtopPostsobject[]requiredShow child parameters
poststringrequiredsignupsintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /p/ng/{ws}/{pub} Hosted subscribe page for a publication
Parameters
embedstringqueryrefstringquerybooststringquerypoststringquerywsstringpathrequiredpubstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/ng/{ws}/{pub}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/ng/{ws}/{pub} Subscribe through a publication surface (consent checkbox required; double opt-in respected)
Parameters
wsstringpathrequiredpubstringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/ng/{ws}/{pub}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /p/ng/{ws}/{pub}/widget.js Popup, slide-in and scroll-trigger script for a publication
Parameters
wsstringpathrequiredpubstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/ng/{ws}/{pub}/widget.js"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/ng/{ws}/{pub}/recommend/{listing} Subscribe to a recommended publication
Parameters
wsstringpathrequiredpubstringpathrequiredlistingstringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/ng/{ws}/{pub}/recommend/{listing}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /p/ng/{ws}/s/{token} One-click subscribe confirmation page (does not change state)
Parameters
wsstringpathrequiredtokenstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/ng/{ws}/s/{token}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/ng/{ws}/s/{token} Subscribe the address a one-click link names (consent, suppression and double opt-in apply; idempotent)
Parameters
wsstringpathrequiredtokenstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/p/ng/{ws}/s/{token}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /v1/newsletter/growth/subscribe-links/{publicationId} Mint a signed one-click subscribe link for one address
Parameters
publicationIdstringpathrequiredRequest body
application/json
emailstringrequiredsourcestringexpiresInDaysinteger{
"email": "string",
"source": "api",
"expiresInDays": 30
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/growth/subscribe-links/{publicationId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","source":"api","expiresInDays":30}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"mergeTag": "string"
}Schema
urlstringrequiredexpiresAtstringrequiredmergeTagstringrequiredUpdated