segments
GET
https://hermeticor.com /v1/segments/{id}/diff Who joined and who left between two dates, from membership history
Parameters
fromstringqueryrequiredtostringqueryrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segments/{id}/diff?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"segmentId": "string",
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T00:00:00Z",
"joined": {
"count": 0,
"sample": [
{
"profileId": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"at": "2024-01-01T00:00:00Z"
}
]
},
"left": {
"count": 0,
"sample": [
{
"profileId": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"at": "2024-01-01T00:00:00Z"
}
]
}
}Schema
segmentIdstringrequiredfromstringrequiredtostringrequiredjoinedobjectrequiredShow child parameters
countintegerrequiredsampleSampleItem[]requiredShow child parameters
profileIdstringrequiredemailstringrequiredfirstNamestringrequiredlastNamestringrequiredatstringrequiredleftobjectrequiredShow child parameters
countintegerrequiredsampleSampleItem[]requiredShow child parameters
profileIdstringrequiredemailstringrequiredfirstNamestringrequiredlastNamestringrequiredatstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/attributes Attribute catalogue for the segment builder: standard fields, observed custom attribute keys + inferred types, event names with property keys (sampled, cached 5 min)
Parameters
refreshstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/attributes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"standard": [
{
"key": "string",
"type": "string"
}
],
"custom": [
{
"key": "string",
"type": "string",
"mixed": true,
"count": 0
}
],
"events": [
{
"name": "string",
"category": "standard",
"lastSeenAt": "2024-01-01T00:00:00Z",
"properties": [
{
"key": "string",
"type": "string",
"mixed": true,
"count": 0,
"declared": true
}
]
}
],
"sample": {
"profiles": 0,
"eventsPerName": 0
},
"declared": [
{
"id": "string",
"key": "string",
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": null,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [],
"createdAt": "2024-01-01T00:00:00Z"
}
],
"generatedAt": "2024-01-01T00:00:00Z",
"cached": true
}Schema
standardobject[]requiredShow child parameters
keystringrequiredtypestringrequiredcustomobject[]requiredShow child parameters
keystringrequiredtypestringrequiredmixedbooleanrequiredcountintegerrequiredeventsobject[]requiredShow child parameters
namestringrequiredcategorystringrequiredlastSeenAtstringrequiredpropertiesobject[]requiredShow child parameters
keystringrequiredtypestringrequiredmixedbooleanrequiredcountintegerrequireddeclaredbooleanrequiredsampleobjectrequiredShow child parameters
profilesintegerrequiredeventsPerNameintegerrequireddeclaredItemsItem9[]Show child parameters
idstringrequiredkeystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredhiddenbooleanrequireddefaultValuerequireduniquebooleanrequiredselfServebooleanrequiredprecisionintegerrequiredchoicesstring[]requiredpositionintegerrequiredgroupKeystringrequiredlistIdsstring[]requiredcreatedAtstringrequiredgeneratedAtstringrequiredcachedbooleanrequiredDELETE
https://hermeticor.com /v1/attributes/fields/{key}/choices/{option} Remove one choice from an enum / multi_enum field and from every profile that holds it
Parameters
keystringpathrequiredoptionstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/attributes/fields/{key}/choices/{option}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"key": "string",
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": null,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [],
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkeystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredhiddenbooleanrequireddefaultValuerequireduniquebooleanrequiredselfServebooleanrequiredprecisionintegerrequiredchoicesstring[]requiredpositionintegerrequiredgroupKeystringrequiredlistIdsstring[]requiredcreatedAtstringrequiredGET
https://hermeticor.com /v1/fields/{object} Fields of one object: "contact" for contact fields, or a custom object type key
Parameters
objectstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/fields/{object}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"object": "string",
"items": [
{
"key": "string",
"type": "string"
}
]
}Schema
objectstringrequireditemsobject[]requiredShow child parameters
keystringrequiredtypestringrequiredGET
https://hermeticor.com /v1/segment-snapshots/{id}/contacts The people frozen in a snapshot
Parameters
limitintegerqueryafterstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segment-snapshots/{id}/contacts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"email": "string",
"phone": "string",
"firstName": "string",
"lastName": "string"
}
],
"nextAfter": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredemailstringrequiredphonestringrequiredfirstNamestringrequiredlastNamestringrequirednextAfterstringrequiredGET
https://hermeticor.com /v1/segment-snapshots/{id}/export CSV of the people frozen in a snapshot
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segment-snapshots/{id}/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}POST
https://hermeticor.com /v1/segments/manual Create a hand-picked segment from people or email addresses (a list plus a segment that follows it). Adding someone to a list grants no consent.
Request body
application/json
namestringrequireddescriptionstringprofileIdsstring[]emailsstring[]{
"name": "string",
"description": "string",
"profileIds": [],
"emails": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/segments/manual" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","profileIds":[],"emails":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"listId": "string",
"added": 0,
"notFound": [
"string"
]
}Schema
idstringrequirednamestringrequiredlistIdstringrequiredaddedintegerrequirednotFoundstring[]requiredUpdated