segments
GET
https://hermeticor.com /v1/segments/{id}/match/{profileId} Does this contact match the segment right now?
Parameters
idstringpathrequiredprofileIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segments/{id}/match/{profileId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"segmentId": "string",
"profileId": "string",
"matched": true,
"member": true
}Schema
segmentIdstringrequiredprofileIdstringrequiredmatchedbooleanrequiredmemberbooleanrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/segments/{id}/match-runs Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segments/{id}/match-runs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"segmentId": "string",
"status": "complete",
"count": 0,
"takenAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsPostV1SegmentsByIdMatchRunsResponse[]requiredShow child parameters
idstringrequiredsegmentIdstringrequiredstatusstringrequiredcountintegerrequiredtakenAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/segments/{id}/match-runs Match everyone against the segment now and keep the result as a run
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/segments/{id}/match-runs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"segmentId": "string",
"status": "complete",
"count": 0,
"takenAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredsegmentIdstringrequiredstatusstringrequiredcountintegerrequiredtakenAtstringrequiredGET
https://hermeticor.com /v1/segment-match-runs/{id} A run; its people are at GET /v1/segment-snapshots/{id}/contacts
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/segment-match-runs/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/segment-match-runs Run up to 20 segments at once
Request body
application/json
segmentIdsstring[]required{
"segmentIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/segment-match-runs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"segmentIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"items": [
{
"id": "string",
"segmentId": "string",
"status": "complete",
"count": 0,
"takenAt": "2024-01-01T00:00:00Z"
}
]
}Schema
itemsPostV1SegmentsByIdMatchRunsResponse[]requiredShow child parameters
idstringrequiredsegmentIdstringrequiredstatusstringrequiredcountintegerrequiredtakenAtstringrequiredGET
https://hermeticor.com /v1/attributes/fields/{key}/lists Parameters
keystringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/attributes/fields/{key}/lists" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"key": "string",
"listIds": [
"string"
]
}Schema
keystringrequiredlistIdsstring[]requiredPUT
https://hermeticor.com /v1/attributes/fields/{key}/lists/{listId} Show this field for people on this list
Parameters
keystringpathrequiredlistIdstringpathrequiredCode samples
cURL
curl -X PUT "https://hermeticor.com/v1/attributes/fields/{key}/lists/{listId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/attributes/fields/{key}/lists/{listId} Parameters
keystringpathrequiredlistIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/attributes/fields/{key}/lists/{listId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated