Other endpoints
GET
https://hermeticor.com /v1/compliance/retention Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/compliance/retention" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"dataClass": "string",
"retainDays": 0,
"isDefault": true
}
],
"nextCursor": "string"
}Schema
itemsItemsItem100[]requiredShow child parameters
dataClassstringrequiredretainDaysnumberrequiredisDefaultbooleanrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/compliance/retention/{dataClass} Parameters
dataClassstringpathrequiredRequest body
application/json
retainDaysinteger | stringrequired{
"retainDays": 0
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/compliance/retention/{dataClass}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"retainDays":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"dataClass": "string",
"retainDays": 0,
"isDefault": true
}
]
}Schema
itemsItemsItem100[]requiredShow child parameters
dataClassstringrequiredretainDaysnumberrequiredisDefaultbooleanrequiredGET
https://hermeticor.com /v1/compliance/unsubscribe-purge Days after which an unsubscribed contact is erased (null = never)
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/compliance/unsubscribe-purge" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"days": 0,
"seconds": 0
}Schema
daysintegerrequiredsecondsintegerPUT
https://hermeticor.com /v1/compliance/unsubscribe-purge GDPR auto-purge: erase contacts N days after they unsubscribed (their address stays suppressed)
Request body
application/json
daysintegersecondsinteger{
"days": 0,
"seconds": 0
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/compliance/unsubscribe-purge" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"days":0,"seconds":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/compliance/orphan-purge Days after which a contact with no list, message or consent history is erased (null = never)
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/compliance/orphan-purge" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"days": 0
}Schema
daysintegerrequiredPUT
https://hermeticor.com /v1/compliance/orphan-purge Clean up contacts that never joined a list, got a message or gave consent
Request body
application/json
daysintegerrequired{
"days": 0
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/compliance/orphan-purge" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"days":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/profiles/{id}/dsar/export Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/dsar/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"requestId": "string",
"exportedAt": "string"
}Schema
requestIdstringrequiredexportedAtstringrequiredPOST
https://hermeticor.com /v1/profiles/{id}/dsar/erase Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/dsar/erase" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"requestId": "string",
"tombstones": 0,
"counts": {}
}Schema
requestIdstringrequiredtombstonesnumberrequiredcountsobjectrequiredPOST
https://hermeticor.com /v1/workspaces/current/reset Owner only: delete the chosen data (contacts, events, messages, campaigns, journeys) and keep settings, members, keys, connections, templates and suppressions. Audited.
Request body
application/json
confirmNamestringrequireddatasetsstring[]required{
"confirmName": "string",
"datasets": [
"contacts"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workspaces/current/reset" \
-H "Content-Type: application/json" \
-d '{"confirmName":"string","datasets":["contacts"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"datasets": [
"string"
],
"status": "queued",
"counts": {},
"error": "string",
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequireddatasetsstring[]requiredstatusstringrequiredcountsobjectrequirederrorstringrequiredcreatedAtstringrequiredfinishedAtstringrequiredGET
https://hermeticor.com /v1/workspaces/current/resets Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workspaces/current/resets" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"datasets": [
"string"
],
"status": "queued",
"counts": {},
"error": "string",
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsPostV1WorkspacesCurrentResetResponse[]requiredShow child parameters
idstringrequireddatasetsstring[]requiredstatusstringrequiredcountsobjectrequirederrorstringrequiredcreatedAtstringrequiredfinishedAtstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/workspaces/current/resets/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workspaces/current/resets/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated