bulk
POST
https://hermeticor.com /v1/profiles/bulk Tag, untag, add/remove list, subscribe, unsubscribe, suppress, unsuppress or delete many profiles as a background job
Request body
application/json
Example
{
"op": "tag",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"tags": [
"string"
]
}Option 1
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstringtagsstring[]required{
"op": "tag",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"tags": [
"string"
]
}Option 2
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstringtagsstring[]required{
"op": "untag",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"tags": [
"string"
]
}Option 3
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstringlistIdstringrequired{
"op": "add_list",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"listId": "string"
}Option 4
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstringlistIdstringrequired{
"op": "remove_list",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"listId": "string"
}Option 5
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstring{
"op": "suppress",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
}
}Option 6
opstringrequiredselectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstring{
"op": "delete",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
}
}Option 7
{
"op": "archive",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
}
}Option 8
{
"op": "restore",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
}
}Option 9
{
"op": "set_frequency",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"emailFrequency": "all",
"smsFrequency": "all"
}Option 10
{
"op": "set_tracking_opt_out",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"optOut": true
}Option 11
{
"op": "subscribe",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"consentAssertion": {
"channel": "email",
"purpose": "marketing",
"sourceText": "string",
"attestedBy": "string"
},
"topicId": "string"
}Option 12
{
"op": "unsubscribe",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"channel": "email",
"purpose": "marketing",
"topicId": "string"
}Option 13
{
"op": "unsuppress",
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"channel": "email",
"reason": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/bulk" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"op":"tag","selector":{"profileIds":["string"],"listId":"string","segmentId":"string","all":true,"filter":{"q":"string","tag":"string","tagsAny":"string","tagsAll":"string","listId":"string","email":"string","phone":"string","createdSince":"2024-01-01T00:00:00Z","createdBefore":"2024-01-01T00:00:00Z","updatedSince":"2024-01-01T00:00:00Z","updatedBefore":"2024-01-01T00:00:00Z","attrKey":"string","attrValue":"string","vip":"true","consentStatus":"granted","consentChannel":"email","consentSince":"2024-01-01T00:00:00Z","topicId":"string","country":"string","region":"string","city":"string","segmentId":"string","eventName":"string","eventSince":"2024-01-01T00:00:00Z","eventBefore":"2024-01-01T00:00:00Z","source":"string","archived":"only","attrOp":"eq"}},"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
{
"id": "string",
"kind": "bulk",
"op": "string",
"status": "queued",
"progress": {
"total": 0,
"processed": 0,
"failed": 0
},
"error": "string",
"downloadUrl": "string",
"failures": [
{
"profileId": "string",
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}4XX Default Response
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}5XX Default Response
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Updated