forms
GET
https://hermeticor.com /v1/public/lists/{ws} Public lists a workspace chose to show (JSON). Subscribe with POST /p/lists/{ws} or the forms ingest endpoints
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagewsstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/public/lists/{ws}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"description": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednamestringrequireddescriptionstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /p/lists/{ws} Public lists directory: pick lists and subscribe
Parameters
wsstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/lists/{ws}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/lists/{ws} Subscribe to the chosen public lists
Parameters
wsstringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/lists/{ws}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /p/me/{*} Download or delete your data
Parameters
*stringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/me/{*}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/me/{*} Export or erase your data
Parameters
*stringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/me/{*}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /ingest/v1/subscribe Subscribe an email/phone with the consent text the visitor saw
Request body
application/json
emailstringphonestringchannelsstring[]listIdstringtopicIdstringconsentTextstringrequiredconsentVersionstringpageUrlstringanonymousIdstringpropertiesobject{
"email": "string",
"phone": "string",
"channels": [
"email"
],
"listId": "string",
"topicId": "string",
"consentText": "string",
"consentVersion": "1",
"pageUrl": "string",
"anonymousId": "string",
"properties": {}
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/subscribe" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","phone":"string","channels":["email"],"listId":"string","topicId":"string","consentText":"string","consentVersion":"1","pageUrl":"string","anonymousId":"string","properties":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /ingest/v1/back-in-stock Ask to be notified when a catalog product is back in stock or drops in price
Request body
application/json
emailstringphonestringexternalIdstringrequiredkindstringvariantIdstringchannelstring{
"email": "string",
"phone": "string",
"externalId": "string",
"kind": "back_in_stock",
"variantId": "string",
"channel": "email"
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/back-in-stock" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","phone":"string","externalId":"string","kind":"back_in_stock","variantId":"string","channel":"email"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/profiles/subscribe Subscribe a contact through a published form: consent starts as pending and the form double opt-in email goes out. `data` is the form field map including its consent checkbox.
Request body
application/json
dataobjectrequiredpageUrlstringformIdstringrequired{
"data": {},
"pageUrl": "string",
"formId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/subscribe" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"data":{},"pageUrl":"string","formId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true,
"success": {
"type": "message",
"text": "string",
"title": "string"
},
"pendingConfirmation": true,
"outcome": "success",
"spin": {
"index": 0
},
"stepToken": "string"
}Schema
okbooleanrequiredsuccessSuccessVariant4 | SuccessVariant5 | SuccessVariant6 | SuccessVariant7requiredpendingConfirmationbooleanrequiredoutcomestringspinobjectShow child parameters
indexintegerrequiredstepTokenstringPOST
https://hermeticor.com /v1/forms/query Filter forms with a typed where / orderBy / limit / offset (fields are an allowlist; read "fields" in the result)
Request body
application/json
whereWhereItem[]Show child parameters
fieldstringrequiredopstringrequiredvaluestring | number | boolean | string | number[]orderByobject[]Show child parameters
fieldstringrequireddirstringlimitintegeroffsetinteger{
"where": [],
"orderBy": [],
"limit": 50,
"offset": 0
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/query" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"where":[],"orderBy":[],"limit":50,"offset":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{}
],
"fields": [
"string"
],
"hasMore": true
}Schema
itemsobject[]requiredfieldsstring[]requiredhasMorebooleanrequiredGET
https://hermeticor.com /ingest/v1/forms/visitor Audience flags for on-site targeting: booleans only (known, subscriber, membership of each targeted list/segment, targeted countries)
Parameters
aidstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/forms/visitor" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"known": true,
"subscriber": true,
"lists": {},
"segments": {},
"countries": {}
}Schema
knownbooleanrequiredsubscriberbooleanrequiredlistsobjectrequiredsegmentsobjectrequiredcountriesobjectrequiredGET
https://hermeticor.com /ingest/v1/forms/{id}/companies Company name suggestions for a form company field (names only)
Parameters
qstringqueryrequiredlimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/forms/{id}/companies?q=<q>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
"string"
],
"nextCursor": "string"
}Schema
itemsstring[]requirednextCursorstringrequiredUpdated