newsletter
POST
https://hermeticor.com /v1/newsletter/members/{profileId}/reader-link Signed link (30 days) to the reader-facing account page
Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/reader-link" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"expiresAt": "2024-01-01T00:00:00Z"
}Schema
urlstringrequiredexpiresAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/newsletter/members/{profileId} Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/members/{profileId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"profileId": "string",
"email": "string",
"tierId": "string",
"tierName": "string",
"status": "trialing",
"interval": "month",
"source": "string",
"mrrMinor": 0,
"currency": "string",
"periodEnd": "2024-01-01T00:00:00Z",
"trialEnd": "2024-01-01T00:00:00Z",
"cancelAtPeriodEnd": true,
"stripeCustomerId": "string",
"stripeSubscriptionId": "string"
}Schema
idstringrequiredprofileIdstringrequiredemailstringrequiredtierIdstringrequiredtierNamestringrequiredstatusstringrequiredintervalstringrequiredsourcestringrequiredmrrMinorintegerrequiredcurrencystringrequiredperiodEndstringrequiredtrialEndstringrequiredcancelAtPeriodEndbooleanrequiredstripeCustomerIdstringrequiredstripeSubscriptionIdstringrequiredPOST
https://hermeticor.com /v1/newsletter/checkout Stripe Checkout link for a tier (send it to the subscriber)
Request body
application/json
emailstringprofileIdstringtierIdstringrequiredintervalstringcouponCodestringseatsintegersuccessUrlstringcancelUrlstringoptInbooleanfromPostIdstring{
"email": "string",
"profileId": "string",
"tierId": "string",
"interval": "month",
"couponCode": "string",
"seats": 0,
"successUrl": "string",
"cancelUrl": "string",
"optIn": false,
"fromPostId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/checkout" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","profileId":"string","tierId":"string","interval":"month","couponCode":"string","seats":0,"successUrl":"string","cancelUrl":"string","optIn":false,"fromPostId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredGET
https://hermeticor.com /v1/newsletter/groups 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/groups" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"tierId": "string",
"ownerProfileId": "string",
"seats": 0,
"used": 0,
"status": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednamestringrequiredtierIdstringrequiredownerProfileIdstringrequiredseatsintegerrequiredusedintegerrequiredstatusstringrequirednextCursorstringrequiredPATCH
https://hermeticor.com /v1/newsletter/groups/{id} Change the paid seat count of a team plan (prorated by Stripe)
Parameters
idstringpathrequiredRequest body
application/json
seatsintegerrequired{
"seats": 0
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/newsletter/groups/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"seats":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /v1/newsletter/groups/{id}/seats 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/groups/{id}/seats" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"groupId": "string",
"email": "string",
"profileId": "string",
"status": "active"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem195[]requiredShow child parameters
idstringrequiredgroupIdstringrequiredemailstringrequiredprofileIdstringrequiredstatusstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/newsletter/groups/{id}/seats Parameters
idstringpathrequiredRequest body
application/json
emailstringrequired{
"email": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/groups/{id}/seats" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"groupId": "string",
"email": "string",
"profileId": "string",
"status": "active"
}Schema
idstringrequiredgroupIdstringrequiredemailstringrequiredprofileIdstringrequiredstatusstringrequiredDELETE
https://hermeticor.com /v1/newsletter/groups/{id}/seats/{seatId} Parameters
idstringpathrequiredseatIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/newsletter/groups/{id}/seats/{seatId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated