newsletter-site
GET
https://hermeticor.com /p/n/{ref}/upgrade Upgrade to a paid subscription
Parameters
fromstringqueryerrorstringqueryrefstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/n/{ref}/upgrade"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /p/n/{ref}/upgrade Start Checkout from the upgrade page (opt-in box unticked unless the reader ticks it)
Parameters
refstringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/n/{ref}/upgrade" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /p/n/{ref}/p/{slug}/highlights The signed-in reader's own highlights on a post
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagerefstringpathrequiredslugstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/n/{ref}/p/{slug}/highlights"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"quote": "string",
"note": "string",
"notePublic": true,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem206[]requiredShow child parameters
idstringrequiredquotestringrequirednotestringrequirednotePublicbooleanrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /p/n/{ref}/p/{slug}/highlights Save a highlight with an optional note (private unless the reader shares the note)
Parameters
refstringpathrequiredslugstringpathrequiredRequest body
application/json
quotestringrequirednotestringnotePublicboolean{
"quote": "string",
"note": "string",
"notePublic": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/n/{ref}/p/{slug}/highlights" \
-H "Content-Type: application/json" \
-d '{"quote":"string","note":"string","notePublic":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"quote": "string",
"note": "string",
"notePublic": true,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredquotestringrequirednotestringrequirednotePublicbooleanrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /p/n/{ref}/p/{slug}/highlights/{id} Remove one of the reader's own highlights
Parameters
refstringpathrequiredslugstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/p/n/{ref}/p/{slug}/highlights/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated