lists
POST
https://hermeticor.com /l/c/{*} Confirm list double opt-in; idempotent
Parameters
*stringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/l/c/{*}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/list-folders Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/list-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"parentId": "string",
"listCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem159[]requiredShow child parameters
idstringrequirednamestringrequiredparentIdstringrequiredlistCountintegercreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/list-folders Request body
application/json
namestringrequiredparentIdstring{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/list-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"parentId": "string",
"listCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredparentIdstringrequiredlistCountintegercreatedAtstringrequiredGET
https://hermeticor.com /v1/list-folders/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/list-folders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/list-folders/{id} Delete a folder; its lists become unfiled
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/list-folders/{id}" \
-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/list-folders/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringparentIdstring{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/list-folders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/lists/{id}/members/batch Upsert up to 500 members at once with status, tags and topic subscriptions; per-member errors are reported, the rest still apply
Parameters
idstringpathrequiredRequest body
application/json
membersobject[]requiredShow child parameters
emailstringphonestringexternalIdstringanonymousIdstringstandardobjectShow child parameters
firstNamestringlastNamestringtimezonestringlocalestringcountrystringcitystringregionstringlifecycleStagestringownerUserIdstringattributesobjectstatusstringtagsstring[]topicsobject[]Show child parameters
idstringrequiredstatusstringrequiredconsentAssertionobjectShow child parameters
channelstringrequiredpurposestringrequiredsourceTextstringrequiredattestedBystringrequiredupdateExistingboolean{
"members": [
{
"email": "string",
"phone": "string",
"externalId": "string",
"anonymousId": "string",
"standard": {
"firstName": "string",
"lastName": "string",
"timezone": "string",
"locale": "string",
"country": "string",
"city": "string",
"region": "string",
"lifecycleStage": "string",
"ownerUserId": "string"
},
"attributes": {},
"status": "subscribed",
"tags": [
"string"
],
"topics": [
{
"id": "string",
"status": "subscribed"
}
]
}
],
"consentAssertion": {
"channel": "email",
"purpose": "marketing",
"sourceText": "string",
"attestedBy": "string"
},
"updateExisting": true
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/lists/{id}/members/batch" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"members":[{"email":"string","phone":"string","externalId":"string","anonymousId":"string","standard":{"firstName":"string","lastName":"string","timezone":"string","locale":"string","country":"string","city":"string","region":"string","lifecycleStage":"string","ownerUserId":"string"},"attributes":{},"status":"subscribed","tags":["string"],"topics":[{"id":"string","status":"subscribed"}]}],"consentAssertion":{"channel":"email","purpose":"marketing","sourceText":"string","attestedBy":"string"},"updateExisting":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"created": 0,
"updated": 0,
"skipped": 0,
"errors": [
{
"index": 0,
"message": "string"
}
]
}Schema
createdintegerrequiredupdatedintegerrequiredskippedintegerrequirederrorsErrorsItem3[]requiredShow child parameters
indexintegerrequiredmessagestringrequiredPOST
https://hermeticor.com /v1/lists/{id}/members/remove Remove many members from the list in one call
Parameters
idstringpathrequiredRequest body
application/json
profileIdsstring[]requiredreasonstring{
"profileIds": [
"string"
],
"reason": "removed"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/lists/{id}/members/remove" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileIds":["string"],"reason":"removed"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"changed": [
"string"
]
}Schema
changedstring[]requiredPOST
https://hermeticor.com /v1/lists/{id}/members/clear Remove every member (the list stays)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/lists/{id}/members/clear" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/lists/{id}/members/move Move people (everyone, or the given ones) from this list to another
Parameters
idstringpathrequiredRequest body
application/json
toListIdstringrequiredprofileIdsstring[]{
"toListId": "string",
"profileIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/lists/{id}/members/move" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"toListId":"string","profileIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated