campaigns
GET
https://hermeticor.com /v1/campaigns/{id}/audiences Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/audiences" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"campaignId": "string",
"name": "string",
"priority": 0,
"definition": {
"includeSegmentIds": [],
"includeListIds": [],
"excludeSegmentIds": [],
"excludeListIds": [],
"onePerCompany": true,
"everyone": true,
"includeTags": [
"string"
],
"excludeTags": [
"string"
]
},
"messageIds": [
"string"
],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem223[]requiredShow child parameters
idstringrequiredcampaignIdstringrequirednamestringrequiredpriorityintegerrequireddefinitionobjectrequiredShow child parameters
includeSegmentIdsstring[]requiredincludeListIdsstring[]requiredexcludeSegmentIdsstring[]requiredexcludeListIdsstring[]requiredonePerCompanybooleaneveryonebooleanincludeTagsstring[]excludeTagsstring[]messageIdsstring[]requiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/campaigns/{id}/audiences Parameters
idstringpathrequiredRequest body
application/json
namestringrequiredpriorityintegerdefinitionobjectrequiredShow child parameters
includeSegmentIdsstring[]includeListIdsstring[]excludeSegmentIdsstring[]excludeListIdsstring[]onePerCompanybooleaneveryonebooleanincludeTagsstring[]excludeTagsstring[]messageIdsstring[]{
"name": "string",
"priority": 0,
"definition": {
"includeSegmentIds": [],
"includeListIds": [],
"excludeSegmentIds": [],
"excludeListIds": [],
"onePerCompany": true,
"everyone": true,
"includeTags": [
"string"
],
"excludeTags": [
"string"
]
},
"messageIds": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/audiences" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","priority":0,"definition":{"includeSegmentIds":[],"includeListIds":[],"excludeSegmentIds":[],"excludeListIds":[],"onePerCompany":true,"everyone":true,"includeTags":["string"],"excludeTags":["string"]},"messageIds":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"campaignId": "string",
"name": "string",
"priority": 0,
"definition": {
"includeSegmentIds": [],
"includeListIds": [],
"excludeSegmentIds": [],
"excludeListIds": [],
"onePerCompany": true,
"everyone": true,
"includeTags": [
"string"
],
"excludeTags": [
"string"
]
},
"messageIds": [
"string"
],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredcampaignIdstringrequirednamestringrequiredpriorityintegerrequireddefinitionobjectrequiredShow child parameters
includeSegmentIdsstring[]requiredincludeListIdsstring[]requiredexcludeSegmentIdsstring[]requiredexcludeListIdsstring[]requiredonePerCompanybooleaneveryonebooleanincludeTagsstring[]excludeTagsstring[]messageIdsstring[]requiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/campaigns/{id}/audiences/{audienceId} Parameters
idstringpathrequiredaudienceIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/audiences/{audienceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/campaigns/{id}/audiences/{audienceId} Parameters
idstringpathrequiredaudienceIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/campaigns/{id}/audiences/{audienceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/campaigns/{id}/audiences/{audienceId} Parameters
idstringpathrequiredaudienceIdstringpathrequiredRequest body
application/json
namestringpriorityintegerdefinitionobjectShow child parameters
includeSegmentIdsstring[]includeListIdsstring[]excludeSegmentIdsstring[]excludeListIdsstring[]onePerCompanybooleaneveryonebooleanincludeTagsstring[]excludeTagsstring[]messageIdsstring[]{
"name": "string",
"priority": 0,
"definition": {
"includeSegmentIds": [],
"includeListIds": [],
"excludeSegmentIds": [],
"excludeListIds": [],
"onePerCompany": true,
"everyone": true,
"includeTags": [
"string"
],
"excludeTags": [
"string"
]
},
"messageIds": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/campaigns/{id}/audiences/{audienceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","priority":0,"definition":{"includeSegmentIds":[],"includeListIds":[],"excludeSegmentIds":[],"excludeListIds":[],"onePerCompany":true,"everyone":true,"includeTags":["string"],"excludeTags":["string"]},"messageIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/campaigns/{id}/audiences/{audienceId}/clone Parameters
idstringpathrequiredaudienceIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/audiences/{audienceId}/clone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/campaigns/{id}/recipient-estimations/latest The most recent recipient estimation of this campaign
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/campaigns/{id}/recipient-estimations/latest" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"campaignId": "string",
"status": "queued",
"createdAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z",
"result": {
"audience": 0,
"suppressed": 0,
"unconsented": 0,
"estimated": 0,
"included": 0,
"excludedBy": [
{
"kind": "segment",
"id": "string",
"removed": 0
}
],
"reasons": {}
}
}Schema
idstringrequiredcampaignIdstringrequiredstatusstringrequiredcreatedAtstringrequiredcompletedAtstringrequiredresultobjectrequiredShow child parameters
audiencenumberrequiredsuppressednumberrequiredunconsentednumberrequiredestimatednumberrequiredincludednumberexcludedByExcludedByItem[]Show child parameters
kindstringrequiredidstringrequiredremovednumberrequiredreasonsobjectUpdated